Debian Codegraph @

HelpPlugin/helpplugin.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // Copyright : (C) 2015 Eran Ifrah
5 // File name : helpplugin.h
6 //
7 // -------------------------------------------------------------------------
8 // A
9 // _____ _ _ _ _
10 // / __ \ | | | | (_) |
11 // | / \/ ___ __| | ___| | _| |_ ___
12 // | | / _ \ / _ |/ _ \ | | | __/ _ )
13 // | \__/\ (_) | (_| | __/ |___| | || __/
14 // \____/\___/ \__,_|\___\_____/_|\__\___|
15 //
16 // F i l e
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 //////////////////////////////////////////////////////////////////////////////
24 //////////////////////////////////////////////////////////////////////////////
25
26 #ifndef __HelpPlugin__
27 #define __HelpPlugin__
28
29 #include "plugin.h"
30 #include "cl_command_event.h"
31
32 class HelpPlugin : public IPlugin
33 {
34 protected:
35 void OnEditorContextMenu(clContextMenuEvent& event);
36 void OnHelp(wxCommandEvent& event);
37 void OnHelpSettings(wxCommandEvent& event);
38
39 void DoHelp(); // A proxy method so we can call the help async
40 wxString DoBuildQueryString();
41
42 public:
43 HelpPlugin(IManager* manager);
44 ~HelpPlugin();
45
46 //--------------------------------------------
47 // Abstract methods
48 //--------------------------------------------
49 virtual void CreateToolBar(clToolBarGeneric* toolbar);
50 /**
51 * @brief Add plugin menu to the "Plugins" menu item in the menu bar
52 */
53 virtual void CreatePluginMenu(wxMenu* pluginsMenu);
54
55 /**
56 * @brief Unplug the plugin. Perform here any cleanup needed (e.g. unbind events, destroy allocated windows)
57 */
58 virtual void UnPlug();
59 };
60
61 #endif // HelpPlugin