Patch #2624 2009-01-03 01:44
sbezgodov
Code completion improvement.- Download
- 2624-Code_completio.patch (83.1 KB)
Index: src/plugins/codecompletion/ccdebuginfo.cpp
===================================================================
--- src/plugins/codecompletion/ccdebuginfo.cpp (revision 5367)
+++ src/plugins/codecompletion/ccdebuginfo.cpp (working copy)
@@ -14,19 +14,11 @@
#include <wx/choicdlg.h> // wxGetSingleChoiceIndex
//(*InternalHeaders(CCDebugInfo)
-#include <wx/bitmap.h>
-#include <wx/font.h>
-#include <wx/fontenum.h>
-#include <wx/fontmap.h>
-#include <wx/image.h>
#include <wx/intl.h>
-#include <wx/settings.h>
#include <wx/string.h>
//*)
//(*IdInit(CCDebugInfo)
-const long CCDebugInfo::ID_NOTEBOOK1 = wxNewId();
-const long CCDebugInfo::ID_PANEL1 = wxNewId();
const long CCDebugInfo::ID_STATICTEXT29 = wxNewId();
const long CCDebugInfo::ID_TEXTCTRL1 = wxNewId();
const long CCDebugInfo::ID_BUTTON1 = wxNewId();
@@ -71,10 +63,12 @@
const long CCDebugInfo::ID_STATICTEXT28 = wxNewId();
const long CCDebugInfo::ID_STATICTEXT34 = wxNewId();
const long CCDebugInfo::ID_STATICTEXT35 = wxNewId();
-const long CCDebugInfo::ID_PANEL2 = wxNewId();
+const long CCDebugInfo::ID_PANEL1 = wxNewId();
const long CCDebugInfo::ID_LISTBOX1 = wxNewId();
-const long CCDebugInfo::ID_PANEL3 = wxNewId();
+const long CCDebugInfo::ID_PANEL2 = wxNewId();
const long CCDebugInfo::ID_LISTBOX2 = wxNewId();
+const long CCDebugInfo::ID_PANEL3 = wxNewId();
+const long CCDebugInfo::ID_NOTEBOOK1 = wxNewId();
const long CCDebugInfo::ID_STATICTEXT31 = wxNewId();
const long CCDebugInfo::ID_STATICLINE2 = wxNewId();
//*)
@@ -90,156 +84,157 @@
{
int id = -1;
//(*Initialize(CCDebugInfo)
- wxBoxSizer* BoxSizer1;
wxBoxSizer* BoxSizer2;
wxPanel* Panel3;
+ wxBoxSizer* BoxSizer1;
- Create(parent,id,_("Code-completion debug tool"),wxDefaultPosition,wxDefaultSize,wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxTAB_TRAVERSAL,_T("wxDialog"));
+ Create(parent, id, _("Code-completion debug tool"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxTAB_TRAVERSAL, _T("id"));
BoxSizer1 = new wxBoxSizer(wxVERTICAL);
- Notebook1 = new wxNotebook(this,ID_NOTEBOOK1,wxDefaultPosition,wxDefaultSize,0,_T("ID_NOTEBOOK1"));
- Panel1 = new wxPanel(Notebook1,ID_PANEL1,wxDefaultPosition,wxDefaultSize,wxTAB_TRAVERSAL,_T("ID_PANEL1"));
+ Notebook1 = new wxNotebook(this, ID_NOTEBOOK1, wxDefaultPosition, wxDefaultSize, 0, _T("ID_NOTEBOOK1"));
+ Panel1 = new wxPanel(Notebook1, ID_PANEL1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _T("ID_PANEL1"));
BoxSizer2 = new wxBoxSizer(wxVERTICAL);
BoxSizer4 = new wxBoxSizer(wxHORIZONTAL);
- StaticText29 = new wxStaticText(Panel1,ID_STATICTEXT29,_("Find:"),wxDefaultPosition,wxDefaultSize,0,_T("ID_STATICTEXT29"));
- BoxSizer4->Add(StaticText29,0,wxRIGHT|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL,6);
- txtFilter = new wxTextCtrl(Panel1,ID_TEXTCTRL1,_("*"),wxDefaultPosition,wxSize(401,21),0,wxDefaultValidator,_T("ID_TEXTCTRL1"));
- BoxSizer4->Add(txtFilter,1,wxALL|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL,0);
- btnFind = new wxButton(Panel1,ID_BUTTON1,_("Find"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,_T("ID_BUTTON1"));
+ StaticText29 = new wxStaticText(Panel1, ID_STATICTEXT29, _("Find:"), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT29"));
+ BoxSizer4->Add(StaticText29, 0, wxRIGHT|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL, 6);
+ txtFilter = new wxTextCtrl(Panel1, ID_TEXTCTRL1, _("*"), wxDefaultPosition, wxSize(401,21), 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
+ BoxSizer4->Add(txtFilter, 1, wxALL|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL, 0);
+ btnFind = new wxButton(Panel1, ID_BUTTON1, _("Find"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
btnFind->SetDefault();
- BoxSizer4->Add(btnFind,0,wxLEFT|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL,5);
- BoxSizer2->Add(BoxSizer4,0,wxTOP|wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP,5);
- StaticLine1 = new wxStaticLine(Panel1,ID_STATICLINE1,wxDefaultPosition,wxSize(10,-1),wxLI_HORIZONTAL,_T("ID_STATICLINE1"));
- BoxSizer2->Add(StaticLine1,0,wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP,5);
- FlexGridSizer1 = new wxFlexGridSizer(0,2,5,5);
+ BoxSizer4->Add(btnFind, 0, wxLEFT|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL, 5);
+ BoxSizer2->Add(BoxSizer4, 0, wxTOP|wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP, 5);
+ StaticLine1 = new wxStaticLine(Panel1, ID_STATICLINE1, wxDefaultPosition, wxSize(10,-1), wxLI_HORIZONTAL, _T("ID_STATICLINE1"));
+ BoxSizer2->Add(StaticLine1, 0, wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP, 5);
+ FlexGridSizer1 = new wxFlexGridSizer(0, 2, 5, 5);
FlexGridSizer1->AddGrowableCol(1);
- StaticText17 = new wxStaticText(Panel1,ID_STATICTEXT17,_("ID:"),wxDefaultPosition,wxDefaultSize,0,_T("ID_STATICTEXT17"));
- FlexGridSizer1->Add(StaticText17,0,wxALL|wxALIGN_LEFT|wxALIGN_TOP,0);
- txtID = new wxStaticText(Panel1,ID_STATICTEXT18,wxEmptyString,wxDefaultPosition,wxDefaultSize,0,_T("ID_STATICTEX
download for full patch...
History
Added: Switch on/off class browser bottom tree.
Added: Sort class browser items alphabetically, by kind or by access.
Fixed: Now SmartSence works fine with typedefs and typedefed variables. Example:
#include <string>
typedef std::string String;
String s;
s.| <-- SmartSence works here.
Fixed: Enumerators which starts with '_' symbol now are parsed.
Fixed: If function has arguments with default values, now it's added only once in class browser.
Fixed: Tokens with same names, but under different namespaces now are displayed correctly in class browser.
Fixed: SmartSense now doesn't display inappropriate images for include files.
Question: how to submit new images for class browser, compiler and debugger toolbars?
Please post the images in a new thread in a forum (as a zipped attachment). Thanks!
@sbezgodov
Very interesting patch, but I haven't see any forum thread that add some images...
Me not, too. Seems sbezgodov does not get the messages of the patch tracker. I don't know how to contact him otherwise unfortunately. Seems we have to create our own images... the patch works very nice for several weeks on my box now...
@mortenmacfly
The berlios.be can't send a notify email to the author when his post was replied, So, if he never log to berliso.be and check on this thread, no body will tell him. By the way, sbezgodov didn't leave any email address, so, we can't contact with him.
I suggest that you could apply this patch with your own image.
Thank you very much!
Great!, I can build the plugin, and only missing some images.
Hello. Sorry please, that i didn't post a forum thread and didn't answer to your emails last month. I have replied to last emails and have attached images.
Please notify me what should i do next time, because now its not nessesary to post a forum thread and all of images i had emailed
Please don't reply to the emails coming from BerliOS - these answers get lost unfortunately. Please send the images to:
mac-fly@gmx.net
That'd be great - I'll take care of the rest then...