UniversalIndentGUI 1.2.0
|
#include "PluginInterface.h"
#include "Scintilla.h"
#include <tchar.h>
#include <shlwapi.h>
#include "IndentHandler.h"
#include "SettingsPaths.h"
Go to the source code of this file.
Classes | |
struct | tPluginProp |
Defines | |
#define | EXECUTE_TEXT_INDENT_INDEX 1 |
#define | TOGGLE_AUTO_UPDATE_INDEX 2 |
#define | TOGGLE_SHOW_UIGUI_INDEX 0 |
#define | WIN32_LEAN_AND_MEAN |
Typedefs | |
typedef struct tPluginProp | tPluginProp |
Functions | |
void | indentText (void) |
void | loadSettings (void) |
void | saveSettings (void) |
void | showUiGUI (void) |
void | toggleAutoUpdate (void) |
Variables | |
CONST TCHAR | dlgTemp [] = _T("UniversalIndentGUI") |
CONST TCHAR | PLUGINTEMP_INI [] = _T("\\UniversalIndentGUI.ini") |
CONST TCHAR | Value1 [] = _T("Value1") |
CONST TCHAR | Value2 [] = _T("Value2") |
#define EXECUTE_TEXT_INDENT_INDEX 1 |
Definition at line 35 of file UniversalIndentGUI_NPP.h.
Referenced by DllMain().
#define TOGGLE_AUTO_UPDATE_INDEX 2 |
Definition at line 36 of file UniversalIndentGUI_NPP.h.
Referenced by DllMain(), and toggleAutoUpdate().
#define TOGGLE_SHOW_UIGUI_INDEX 0 |
Definition at line 34 of file UniversalIndentGUI_NPP.h.
Referenced by DllMain(), and showUiGUI().
#define WIN32_LEAN_AND_MEAN |
Definition at line 24 of file UniversalIndentGUI_NPP.h.
typedef struct tPluginProp tPluginProp |
void indentText | ( | void | ) |
Definition at line 282 of file UniversalIndentGUI_NPP.cpp.
References IndentHandler::callIndenter(), getCurrentHScintilla(), SCI_GETFIRSTVISIBLELINE, SCI_GETSELECTIONSTART, SCI_GETSELTEXT, SCI_GETTEXT, SCI_GETTEXTLENGTH, SCI_GOTOLINE, SCI_LINESONSCREEN, SCI_REPLACESEL, SCI_SETSEL, and SCI_SETTEXT.
Referenced by DllMain(), and toggleAutoUpdate().
void loadSettings | ( | void | ) |
Definition at line 190 of file UniversalIndentGUI_NPP.cpp.
References NppData::_nppHandle, configPath, dlgTemp, iniFilePath, tPluginProp::iValue1, tPluginProp::iValue2, NPPM_GETPLUGINSCONFIGDIR, PLUGINTEMP_INI, Value1, and Value2.
Referenced by __declspec().
void saveSettings | ( | void | ) |
Definition at line 221 of file UniversalIndentGUI_NPP.cpp.
References dlgTemp, iniFilePath, tPluginProp::iValue1, tPluginProp::iValue2, Value1, and Value2.
Referenced by DllMain().
void showUiGUI | ( | void | ) |
Definition at line 257 of file UniversalIndentGUI_NPP.cpp.
References FuncItem::_cmdID, NppData::_nppHandle, and TOGGLE_SHOW_UIGUI_INDEX.
Referenced by DllMain(), and toggleAutoUpdate().
void toggleAutoUpdate | ( | void | ) |
Definition at line 237 of file UniversalIndentGUI_NPP.cpp.
References FuncItem::_cmdID, NppData::_nppHandle, indentText(), IndentHandler::setParameterChangedCallback(), showUiGUI(), and TOGGLE_AUTO_UPDATE_INDEX.
Referenced by DllMain().
CONST TCHAR dlgTemp[] = _T("UniversalIndentGUI") |
Definition at line 44 of file UniversalIndentGUI_NPP.h.
Referenced by loadSettings(), and saveSettings().
CONST TCHAR PLUGINTEMP_INI[] = _T("\\UniversalIndentGUI.ini") |
Definition at line 40 of file UniversalIndentGUI_NPP.h.
Referenced by loadSettings().
CONST TCHAR Value1[] = _T("Value1") |
Definition at line 46 of file UniversalIndentGUI_NPP.h.
Referenced by loadSettings(), and saveSettings().
CONST TCHAR Value2[] = _T("Value2") |
Definition at line 47 of file UniversalIndentGUI_NPP.h.
Referenced by loadSettings(), and saveSettings().