|
Code::Blocks
SVN r11506
|
#include "sdk_precomp.h"#include "cbstyledtextctrl.h"#include "cbcolourmanager.h"#include <stack>#include <wx/fontutil.h>#include <wx/splitter.h>#include "cbeditorprintout.h"#include "cbdebugger_interfaces.h"#include "editor_hooks.h"#include "encodingdetector.h"#include "filefilters.h"#include "projectfileoptionsdlg.h"Go to the source code of this file.
Classes | |
| struct | cbEditorInternalData |
Macros | |
| #define | ERROR_STYLE wxSCI_MARK_SMALLRECT |
| #define | BOOKMARK_STYLE wxSCI_MARK_ARROW |
| #define | BREAKPOINT_STYLE wxSCI_MARK_CIRCLE |
| #define | DEBUG_STYLE wxSCI_MARK_ARROW |
| #define | DEBUG_STYLE_HIGHLIGHT wxSCI_MARK_BACKGROUND |
| #define | BREAKPOINT_OTHER_MARKER 1 |
| #define | BREAKPOINT_DISABLED_MARKER 2 |
| #define | BREAKPOINT_MARKER 3 |
| #define | BOOKMARK_MARKER 4 |
| #define | ERROR_MARKER 5 |
| #define | DEBUG_MARKER 6 |
| #define | DEBUG_MARKER_HIGHLIGHT 7 |
| #define | C_LINE_MARGIN 0 |
| #define | C_MARKER_MARGIN 1 |
| #define | C_CHANGEBAR_MARGIN 2 |
| #define | C_FOLDING_MARGIN 3 |
Functions | |
| static void | CountLineEnds (cbStyledTextCtrl *control, int &linesCR, int &linesLF, int &linesCRLF) |
| static int | DetectLineEnds (cbStyledTextCtrl *control) |
| void | OverrideUseTabsPerLanguage (cbStyledTextCtrl *control) |
| #define BOOKMARK_MARKER 4 |
Definition at line 66 of file cbeditor.cpp.
Referenced by cbEditor::ClearAllBookmarks(), cbEditor::GotoNextBookmark(), cbEditor::GotoPreviousBookmark(), cbEditor::HasBookmark(), cbEditor::InternalSetEditorStyleBeforeFileOpen(), cbEditor::OnBeforeBuildContextMenu(), cbEditor::OnContextMenuEntry(), and cbEditor::ToggleBookmark().
| #define BOOKMARK_STYLE wxSCI_MARK_ARROW |
Definition at line 58 of file cbeditor.cpp.
Referenced by cbEditor::InternalSetEditorStyleBeforeFileOpen().
| #define BREAKPOINT_DISABLED_MARKER 2 |
Definition at line 64 of file cbeditor.cpp.
Referenced by cbEditor::BreakpointMarkerToggle(), cbEditor::HasBreakpoint(), cbEditor::InternalSetEditorStyleBeforeFileOpen(), cbEditor::OnBeforeBuildContextMenu(), and cbEditor::RefreshBreakpointMarkers().
| #define BREAKPOINT_MARKER 3 |
Definition at line 65 of file cbeditor.cpp.
Referenced by cbEditor::BreakpointMarkerToggle(), cbEditor::GotoNextBreakpoint(), cbEditor::GotoPreviousBreakpoint(), cbEditor::HasBreakpoint(), cbEditor::InternalSetEditorStyleBeforeFileOpen(), cbEditor::OnBeforeBuildContextMenu(), and cbEditor::RefreshBreakpointMarkers().
| #define BREAKPOINT_OTHER_MARKER 1 |
Definition at line 63 of file cbeditor.cpp.
Referenced by cbEditor::InternalSetEditorStyleBeforeFileOpen(), and cbEditor::RefreshBreakpointMarkers().
| #define BREAKPOINT_STYLE wxSCI_MARK_CIRCLE |
Definition at line 59 of file cbeditor.cpp.
Referenced by cbEditor::InternalSetEditorStyleBeforeFileOpen().
| #define C_CHANGEBAR_MARGIN 2 |
Definition at line 73 of file cbeditor.cpp.
Referenced by cbEditor::DoInitializations(), cbEditor::InternalSetEditorStyleBeforeFileOpen(), and cbEditor::OnBeforeBuildContextMenu().
| #define C_FOLDING_MARGIN 3 |
Definition at line 74 of file cbeditor.cpp.
Referenced by cbEditor::DoInitializations(), cbEditor::InternalSetEditorStyleAfterFileOpen(), cbEditor::OnBeforeBuildContextMenu(), cbEditor::OnMarginClick(), and cbEditorInternalData::SetFoldingColWidth().
| #define C_LINE_MARGIN 0 |
Definition at line 71 of file cbeditor.cpp.
Referenced by cbEditor::DoInitializations(), cbEditor::InternalSetEditorStyleAfterFileOpen(), cbEditor::OnBeforeBuildContextMenu(), cbEditor::Print(), cbEditorInternalData::SetLineNumberColWidth(), and cbEditor::Split().
| #define C_MARKER_MARGIN 1 |
Definition at line 72 of file cbeditor.cpp.
Referenced by cbEditor::DoInitializations(), cbEditor::InternalSetEditorStyleBeforeFileOpen(), cbEditor::OnBeforeBuildContextMenu(), and cbEditor::OnMarginClick().
| #define DEBUG_MARKER 6 |
Definition at line 68 of file cbeditor.cpp.
Referenced by cbEditor::InternalSetEditorStyleBeforeFileOpen(), and cbEditor::SetDebugLine().
| #define DEBUG_MARKER_HIGHLIGHT 7 |
Definition at line 69 of file cbeditor.cpp.
Referenced by cbEditor::InternalSetEditorStyleBeforeFileOpen(), cbEditor::SetDebugLine(), and cbEditor::SetLanguageDependentColours().
| #define DEBUG_STYLE wxSCI_MARK_ARROW |
Definition at line 60 of file cbeditor.cpp.
Referenced by cbEditor::InternalSetEditorStyleBeforeFileOpen().
| #define DEBUG_STYLE_HIGHLIGHT wxSCI_MARK_BACKGROUND |
Definition at line 61 of file cbeditor.cpp.
Referenced by cbEditor::InternalSetEditorStyleBeforeFileOpen().
| #define ERROR_MARKER 5 |
Definition at line 67 of file cbeditor.cpp.
Referenced by cbEditor::InternalSetEditorStyleBeforeFileOpen(), and cbEditor::SetErrorLine().
| #define ERROR_STYLE wxSCI_MARK_SMALLRECT |
Definition at line 57 of file cbeditor.cpp.
Referenced by cbEditor::InternalSetEditorStyleBeforeFileOpen().
|
static |
Definition at line 600 of file cbeditor.cpp.
Referenced by DetectLineEnds().
|
static |
Definition at line 635 of file cbeditor.cpp.
References _(), _T, CountLineEnds(), InfoWindow::Display(), wxBell(), wxSCI_EOL_CR, wxSCI_EOL_CRLF, and wxSCI_EOL_LF.
Referenced by cbEditor::InternalSetEditorStyleAfterFileOpen().
|
inline |
Definition at line 1236 of file cbeditor.cpp.
References wxScintilla::GetLexer(), wxScintilla::SetUseTabs(), wxSCI_LEX_MAKEFILE, wxSCI_LEX_PYTHON, and wxSCI_LEX_YAML.
Referenced by cbEditor::SaveAs(), and cbEditor::SetEditorStyleBeforeFileOpen().
Definition at line 55 of file cbeditor.cpp.
Referenced by EditorManager::IsOpen().
| const int idAddFileToProject = wxNewId() |
Definition at line 536 of file cbeditor.cpp.
Referenced by cbEditor::OnContextMenuEntry().
| const int idBookmarkAdd = wxNewId() |
Definition at line 541 of file cbeditor.cpp.
Referenced by cbEditor::OnBeforeBuildContextMenu(), and cbEditor::OnContextMenuEntry().
| const int idBookmarkRemove = wxNewId() |
Definition at line 542 of file cbeditor.cpp.
Referenced by cbEditor::OnBeforeBuildContextMenu(), and cbEditor::OnContextMenuEntry().
| const int idBookmarkRemoveAll = wxNewId() |
Definition at line 543 of file cbeditor.cpp.
Referenced by cbEditor::OnBeforeBuildContextMenu(), and cbEditor::OnContextMenuEntry().
| const int idBookmarks = wxNewId() |
Definition at line 518 of file cbeditor.cpp.
Referenced by cbEditor::AddToContextMenu(), and cbEditor::CreateContextSubMenu().
| const int idBookmarksClearAll = wxNewId() |
Definition at line 522 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idBookmarksNext = wxNewId() |
Definition at line 521 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idBookmarksPrevious = wxNewId() |
Definition at line 520 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idBookmarksToggle = wxNewId() |
Definition at line 519 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idBreakpointAdd = wxNewId() |
Definition at line 545 of file cbeditor.cpp.
Referenced by cbEditor::OnBeforeBuildContextMenu(), and cbEditor::OnContextMenuEntry().
| const long idBreakpointDisable = wxNewId() |
Definition at line 549 of file cbeditor.cpp.
Referenced by cbEditor::OnBeforeBuildContextMenu(), and cbEditor::OnContextMenuEntry().
| const int idBreakpointEdit = wxNewId() |
Definition at line 546 of file cbeditor.cpp.
Referenced by cbEditor::OnBeforeBuildContextMenu(), and cbEditor::OnContextMenuEntry().
| const long idBreakpointEnable = wxNewId() |
Definition at line 548 of file cbeditor.cpp.
Referenced by cbEditor::OnBeforeBuildContextMenu(), and cbEditor::OnContextMenuEntry().
| const int idBreakpointRemove = wxNewId() |
Definition at line 547 of file cbeditor.cpp.
Referenced by cbEditor::OnBeforeBuildContextMenu(), and cbEditor::OnContextMenuEntry().
| const int idClearHistory = wxNewId() |
Definition at line 508 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idCopy = wxNewId() |
Definition at line 510 of file cbeditor.cpp.
Referenced by cbEditor::AddToContextMenu(), and cbEditor::OnContextMenuEntry().
| const int idCut = wxNewId() |
Definition at line 509 of file cbeditor.cpp.
Referenced by cbEditor::AddToContextMenu(), and cbEditor::OnContextMenuEntry().
| const int idDelete = wxNewId() |
Definition at line 512 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idEdit = wxNewId() |
Definition at line 505 of file cbeditor.cpp.
Referenced by cbEditor::AddToContextMenu(), and cbEditor::CreateContextSubMenu().
| const int idEmptyMenu = wxNewId() |
Definition at line 504 of file cbeditor.cpp.
Referenced by cbEditor::AddToContextMenu(), and cbEditor::CreateContextSubMenu().
| const int idFolding = wxNewId() |
Definition at line 523 of file cbeditor.cpp.
Referenced by cbEditor::AddToContextMenu(), and cbEditor::CreateContextSubMenu().
| const int idFoldingFoldAll = wxNewId() |
Definition at line 524 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idFoldingFoldCurrent = wxNewId() |
Definition at line 527 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idFoldingToggleAll = wxNewId() |
Definition at line 526 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idFoldingToggleCurrent = wxNewId() |
Definition at line 529 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idFoldingUnfoldAll = wxNewId() |
Definition at line 525 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idFoldingUnfoldCurrent = wxNewId() |
Definition at line 528 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idInsert = wxNewId() |
Definition at line 530 of file cbeditor.cpp.
Referenced by cbEditor::AddToContextMenu(), and cbEditor::CreateContextSubMenu().
| const int idLowerCase = wxNewId() |
Definition at line 514 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idOpenContainingFolder = wxNewId() |
Definition at line 517 of file cbeditor.cpp.
Referenced by cbEditor::OnContextMenuEntry().
| const int idOpenUrl = wxNewId() |
Definition at line 539 of file cbeditor.cpp.
Referenced by cbEditor::AddToContextMenu(), and cbEditor::OnContextMenuEntry().
| const int idPaste = wxNewId() |
Definition at line 511 of file cbeditor.cpp.
Referenced by cbEditor::AddToContextMenu(), and cbEditor::OnContextMenuEntry().
| const int idProperties = wxNewId() |
Definition at line 535 of file cbeditor.cpp.
Referenced by cbEditor::OnContextMenuEntry(), and BreakpointsDlg::OnRightClick().
| const int idRedo = wxNewId() |
Definition at line 507 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idRemoveFileFromProject = wxNewId() |
Definition at line 537 of file cbeditor.cpp.
Referenced by cbEditor::OnContextMenuEntry().
| const int idSelectAll = wxNewId() |
Definition at line 515 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idShowFileInProject = wxNewId() |
Definition at line 538 of file cbeditor.cpp.
Referenced by cbEditor::OnContextMenuEntry().
| const int idSplit = wxNewId() |
Definition at line 531 of file cbeditor.cpp.
| const int idSplitHorz = wxNewId() |
Definition at line 532 of file cbeditor.cpp.
Referenced by cbEditor::OnContextMenuEntry().
| const int idSplitVert = wxNewId() |
Definition at line 533 of file cbeditor.cpp.
Referenced by cbEditor::OnContextMenuEntry().
| const int idSwapHeaderSource = wxNewId() |
Definition at line 516 of file cbeditor.cpp.
Referenced by cbEditor::OnContextMenuEntry().
| const int idUndo = wxNewId() |
Definition at line 506 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
| const int idUnsplit = wxNewId() |
Definition at line 534 of file cbeditor.cpp.
Referenced by cbEditor::OnContextMenuEntry().
| const int idUpperCase = wxNewId() |
Definition at line 513 of file cbeditor.cpp.
Referenced by cbEditor::CreateContextSubMenu(), and cbEditor::OnContextMenuEntry().
1.8.13