UniversalIndentGUI 1.2.0
UniversalIndentGUI_NPPDialog.h
Go to the documentation of this file.
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 
00022 #ifndef UNIVERSALINDENTGUI_NPPDIALOG_H
00023 #define UNIVERSALINDENTGUI_NPPDIALOG_H
00024 
00025 #include "UniversalIndentGUI_NPP.h"
00026 #include "DockingDlgInterface.h"
00027 #include "Toolbar.h"
00028 
00029 #include "indenthandler.h"
00030 
00031 class UniversalIndentGUI_NPPDialog : public DockingDlgInterface
00032 {
00033 public:
00034     UniversalIndentGUI_NPPDialog(void);
00035     ~UniversalIndentGUI_NPPDialog(void);
00036 
00037     void init(HINSTANCE hInst, NppData nppData, tPluginProp *pMgrProp);
00038 
00039     void destroy(void) {
00040     };
00041 
00042     void doDialog(bool willBeShown = true);
00043 
00044 protected:
00045 
00046     /* get toolbar tooltips */
00047     void GetNameStrFromCmd(UINT resID, LPTSTR tip);
00048 
00049     virtual BOOL CALLBACK run_dlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
00050 
00051     /* initial dialog here */
00052     void InitialDialog(void);
00053 
00054     /* toolbar commands */
00055     void tb_cmd(UINT message);
00056 
00057 private:
00058     /* Handles */
00059     NppData                 _nppData;
00060     HWND                    _hEdit;
00061 
00062     /* classes */
00063     ToolBar                 _ToolBar;
00064     ReBar                   _Rebar;
00065 
00066     /* settings */
00067     tTbData                 _data;
00068     tPluginProp*            _pPluginProp;
00069 
00070     IndentHandler *indentHandler;
00071 };
00072 
00073 
00074 #endif // UNIVERSALINDENTGUI_NPPDIALOG_H
00075 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines