Code::Blocks
SVN r11506
|
#include <sdk.h>
#include <wx/tokenzr.h>
#include <wx/html/htmlwin.h>
#include <cbstyledtextctrl.h>
#include <editor_hooks.h>
#include <filegroupsandmasks.h>
#include <multiselectdlg.h>
#include "codecompletion.h"
#include "ccoptionsdlg.h"
#include "ccoptionsprjdlg.h"
#include "insertclassmethoddlg.h"
#include "selectincludefile.h"
#include "parser/ccdebuginfo.h"
#include "parser/cclogger.h"
#include "parser/parser.h"
#include "parser/tokenizer.h"
#include "doxygen_parser.h"
#include "gotofunctiondlg.h"
Go to the source code of this file.
Classes | |
struct | CodeCompletionHelper::GotoDeclarationItem |
used to record the position of a token when user click find declaration or implementation More... | |
Namespaces | |
CodeCompletionHelper | |
Macros | |
#define | CC_CODECOMPLETION_DEBUG_OUTPUT 0 |
#define | TRACE(format, args...) |
#define | TRACE2(format, args...) |
#define | REALTIME_PARSING_DELAY 500 |
#define | TOOLBAR_REFRESH_DELAY 150 |
#define | EDITOR_ACTIVATED_DELAY 300 |
Functions | |
bool | CodeCompletionHelper::LessFunctionScope (const CodeCompletion::FunctionScope &fs1, const CodeCompletion::FunctionScope &fs2) |
bool | CodeCompletionHelper::EqualFunctionScope (const CodeCompletion::FunctionScope &fs1, const CodeCompletion::FunctionScope &fs2) |
bool | CodeCompletionHelper::LessNameSpace (const NameSpace &ns1, const NameSpace &ns2) |
bool | CodeCompletionHelper::EqualNameSpace (const NameSpace &ns1, const NameSpace &ns2) |
wxChar | CodeCompletionHelper::GetLastNonWhitespaceChar (cbStyledTextCtrl *control, int position) |
for OnGotoFunction(), search backward More... | |
xxxxx **begin result *wxChar | CodeCompletionHelper::GetNextNonWhitespaceChar (cbStyledTextCtrl *control, int position) |
for OnGotoFunction(), search forward /* yyy More... | |
int | CodeCompletionHelper::CompareStringLen (const wxString &first, const wxString &second) |
Sorting in GetLocalIncludeDirs() More... | |
bool | CodeCompletionHelper::TestIncludeLine (wxString const &line) |
for CodeCompleteIncludes() a line has some pattern like below More... | |
bool | CodeCompletionHelper::EditorHasNameUnderCursor (wxString &NameUnderCursor, bool &IsInclude) |
return identifier like token string under the current cursor pointer More... | |
static wxString | CodeCompletionHelper::AutocompGetName (const wxString &selected) |
when user select one item in the suggestion list, the selected contains the full display name, for example, "function_name():function_return_type", and we only need to insert the "function_name" to the editor, so this function just get the actual inserted text. More... | |
struct CodeCompletionHelper::GotoDeclarationItem |
used to record the position of a token when user click find declaration or implementation
Definition at line 262 of file codecompletion.cpp.
Class Members | ||
---|---|---|
wxString | filename | |
unsigned | line |
#define CC_CODECOMPLETION_DEBUG_OUTPUT 0 |
Definition at line 65 of file codecompletion.cpp.
#define EDITOR_ACTIVATED_DELAY 300 |
Definition at line 439 of file codecompletion.cpp.
Referenced by CodeCompletion::EditorEventHook(), CodeCompletion::OnEditorActivated(), CodeCompletion::OnEditorSave(), and CodeCompletion::OnReparsingTimer().
#define REALTIME_PARSING_DELAY 500 |
Definition at line 428 of file codecompletion.cpp.
Referenced by CodeCompletion::EditorEventHook(), and CodeCompletion::OnRealtimeParsingTimer().
#define TOOLBAR_REFRESH_DELAY 150 |
Definition at line 434 of file codecompletion.cpp.
Referenced by CodeCompletion::EditorEventHook(), CodeCompletion::OnEditorActivatedTimer(), CodeCompletion::OnParserEnd(), CodeCompletion::OnReparsingTimer(), CodeCompletion::OnToolbarTimer(), CodeCompletion::OnWorkspaceChanged(), and CodeCompletion::RereadOptions().
#define TRACE | ( | format, | |
args... | |||
) |
Definition at line 88 of file codecompletion.cpp.
Referenced by CodeCompletion::DoCodeComplete(), CodeCompletion::EditorEventHook(), CodeCompletion::OnEditorActivated(), CodeCompletion::OnEditorActivatedTimer(), CodeCompletion::OnEditorClosed(), CodeCompletion::OnEditorSave(), CodeCompletion::OnGotoDeclaration(), CodeCompletion::OnGotoFunction(), CodeCompletion::OnOpenIncludeFile(), CodeCompletion::OnParserEnd(), CodeCompletion::OnProjectSaved(), CodeCompletion::OnProjectSavedTimer(), CodeCompletion::OnRealtimeParsingTimer(), CodeCompletion::OnReparsingTimer(), CodeCompletion::OnToolbarTimer(), CodeCompletion::OnWorkspaceChanged(), CodeCompletion::ParseFunctionsAndFillToolbar(), and CodeCompletion::RereadOptions().
#define TRACE2 | ( | format, | |
args... | |||
) |
Definition at line 89 of file codecompletion.cpp.
|
static |
Definition at line 284 of file codecompletion.cpp.
|
static |
Definition at line 307 of file codecompletion.cpp.
Scopes choice name for global functions in CC's toolbar.
Referenced by CodeCompletion::FindFunctionAndUpdate(), and CodeCompletion::ParseFunctionsAndFillToolbar().
|
static |
Definition at line 366 of file codecompletion.cpp.
int idClassMethod = wxNewId() |
Definition at line 413 of file codecompletion.cpp.
int idCurrentProjectReparse = wxNewId() |
Definition at line 409 of file codecompletion.cpp.
int idEditorActivatedTimer = wxNewId() |
Definition at line 423 of file codecompletion.cpp.
int idEditorSubMenu = wxNewId() |
Definition at line 412 of file codecompletion.cpp.
int idGotoDeclaration = wxNewId() |
Definition at line 415 of file codecompletion.cpp.
int idGotoImplementation = wxNewId() |
Definition at line 416 of file codecompletion.cpp.
Referenced by CodeCompletion::OnGotoDeclaration().
int idMenuFindReferences = wxNewId() |
Definition at line 405 of file codecompletion.cpp.
int idMenuGotoDeclaration = wxNewId() |
Definition at line 402 of file codecompletion.cpp.
Referenced by CodeCompletion::OnGotoDeclaration().
int idMenuGotoFunction = wxNewId() |
Definition at line 399 of file codecompletion.cpp.
int idMenuGotoImplementation = wxNewId() |
Definition at line 403 of file codecompletion.cpp.
Referenced by CodeCompletion::OnGotoDeclaration().
int idMenuGotoNextFunction = wxNewId() |
Definition at line 401 of file codecompletion.cpp.
int idMenuGotoPrevFunction = wxNewId() |
Definition at line 400 of file codecompletion.cpp.
int idMenuOpenIncludeFile = wxNewId() |
Definition at line 404 of file codecompletion.cpp.
int idMenuRenameSymbols = wxNewId() |
Definition at line 406 of file codecompletion.cpp.
int idOpenIncludeFile = wxNewId() |
Definition at line 417 of file codecompletion.cpp.
int idProjectSavedTimer = wxNewId() |
Definition at line 421 of file codecompletion.cpp.
int idRealtimeParsingTimer = wxNewId() |
Definition at line 419 of file codecompletion.cpp.
int idReparsingTimer = wxNewId() |
Definition at line 422 of file codecompletion.cpp.
int idSelectedFileReparse = wxNewId() |
Definition at line 411 of file codecompletion.cpp.
int idSelectedProjectReparse = wxNewId() |
Definition at line 410 of file codecompletion.cpp.
int idToolbarTimer = wxNewId() |
Definition at line 420 of file codecompletion.cpp.
int idUnimplementedClassMethods = wxNewId() |
Definition at line 414 of file codecompletion.cpp.
int idViewClassBrowser = wxNewId() |
Definition at line 407 of file codecompletion.cpp.
|
static |
Definition at line 338 of file codecompletion.cpp.