~quadrispro/codelite/trunk

« back to all changes in this revision

Viewing changes to Plugin/optionsconfig.cpp

  • Committer: eranif
  • Date: 2009-12-04 14:16:12 UTC
  • Revision ID: svn-v4:9da81c78-c036-0410-9e1f-a2b0375e4b5a:trunk:3437
- Added new option to the 'global editor prefrences': disable smart indentation, when this option is checked it will disable the smart indentation in addition, it will also disable the 'Auto Complete Braces' *even* if it is set

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
                , m_showQuickFinder(true)
67
67
                , m_TrimLine(true)
68
68
                , m_AppendLF(true)
 
69
                , m_disableSmartIndent(false)
69
70
{
70
71
        //set the default font name to be UTF8
71
72
        SetFileFontEncoding(wxFontMapper::GetEncodingName(wxFONTENCODING_UTF8));
106
107
                m_hideOutpuPaneOnUserClick = XmlUtils::ReadBool(node, wxT("HideOutputPaneOnUserClick"));
107
108
                m_hideOutputPaneNotIfDebug = XmlUtils::ReadBool(node, wxT("HideOutputPaneNotIfDebug"));
108
109
                m_showQuickFinder = XmlUtils::ReadBool(node, wxT("ShowQuickFinder"), m_showQuickFinder);
 
110
                m_disableSmartIndent = XmlUtils::ReadBool(node, wxT("DisableSmartIndent"), m_disableSmartIndent);
 
111
 
109
112
                // These hacks will likely be changed in the future. If so, we'll be able to remove the #include "editor_config.h" too
110
113
                long trim(0); long appendLf(0);
111
114
                EditorConfigST::Get()->GetLongValue(wxT("EditorTrimEmptyLines"), trim);
145
148
        n->AddProperty(wxT("HideOutputPaneOnUserClick"), BoolToString(m_hideOutpuPaneOnUserClick));
146
149
        n->AddProperty(wxT("HideOutputPaneNotIfDebug"),  BoolToString(m_hideOutputPaneNotIfDebug));
147
150
        n->AddProperty(wxT("ShowQuickFinder"),           BoolToString(m_showQuickFinder));
 
151
        n->AddProperty(wxT("DisableSmartIndent"),        BoolToString(m_disableSmartIndent));
148
152
        n->AddProperty(wxT("ConsoleCommand"),            m_programConsoleCommand);
149
153
        n->AddProperty(wxT("EOLMode"),                   m_eolMode);
150
154