UniversalIndentGUI 1.2.0
|
00001 /*************************************************************************** 00002 * Copyright (C) 2006-2012 by Thomas Schweitzer * 00003 * thomas-schweitzer(at)arcor.de * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License version 2.0 as * 00007 * published by the Free Software Foundation. * 00008 * * 00009 * This program is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00012 * GNU General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU General Public License * 00015 * along with this program in the file LICENSE.GPL; if not, write to the * 00016 * Free Software Foundation, Inc., * 00017 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00018 ***************************************************************************/ 00019 00020 00021 #ifndef UNIVERSALINDENTGUI_NPP_H 00022 #define UNIVERSALINDENTGUI_NPP_H 00023 00024 #define WIN32_LEAN_AND_MEAN 00025 #include "PluginInterface.h" 00026 #include "Scintilla.h" 00027 #include <tchar.h> 00028 #include <shlwapi.h> 00029 00030 #include "IndentHandler.h" 00031 #include "SettingsPaths.h" 00032 00033 /* menu position in funcItem */ 00034 #define TOGGLE_SHOW_UIGUI_INDEX 0 00035 #define EXECUTE_TEXT_INDENT_INDEX 1 00036 #define TOGGLE_AUTO_UPDATE_INDEX 2 00037 00038 00039 /* ini file name */ 00040 CONST TCHAR PLUGINTEMP_INI[] = _T("\\UniversalIndentGUI.ini"); 00041 00042 /* param names of ini file */ 00043 /* section */ 00044 CONST TCHAR dlgTemp[] = _T("UniversalIndentGUI"); 00045 /* keys of section */ 00046 CONST TCHAR Value1[] = _T("Value1"); 00047 CONST TCHAR Value2[] = _T("Value2"); 00048 00049 00050 /* define here your plugin properties (stored in an ini file) */ 00051 typedef struct tPluginProp { 00052 INT iValue1; 00053 INT iValue2; 00054 } tPluginProp; 00055 00056 00057 /* load and save properties from/into ini file */ 00058 void loadSettings(void); 00059 void saveSettings(void); 00060 00061 /* menu functions */ 00062 void showUiGUI(void); 00063 void toggleAutoUpdate(void); 00064 void indentText(void); 00065 00066 00067 00068 #endif // UNIVERSALINDENTGUI_NPP_H 00069