~efargaspro/+junk/codeblocks-16.01-release

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/***************************************************************
 * Name:      pluginxray
 * Purpose:   Code::Blocks plugin
 * Author:    Damien Moore ()
 * Created:   2006-09-28
 * Copyright: Damien Moore
 * License:   GPL
 **************************************************************/

#ifndef PYTHONPLUGIN_H_INCLUDED
#define PYTHONPLUGIN_H_INCLUDED

// For compilers that support precompilation, includes <wx/wx.h>
#include <wx/wxprec.h>

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#endif

#include <sdk.h>
#include <cbplugin.h> // for "class cbPlugin"

#include "ShellCtrlBase.h"

class PythonInterpreter : public cbPlugin
{
    public:
		/** Constructor. */
        PythonInterpreter();
		/** Destructor. */
        virtual ~PythonInterpreter();

// Misc Plugin Virtuals
        virtual int Configure(); /** Invoke configuration dialog. */
        virtual int GetConfigurationPriority() const { return 50; }
        virtual int GetConfigurationGroup() const { return cgUnknown; }
        virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent); /** Return plugin's configuration panel.*/
        virtual cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow* parent, cbProject* project){ return 0; } /** Return plugin's configuration panel for projects.*/
        virtual void BuildMenu(wxMenuBar* menuBar); /** add plugin items to the main menu bar*/
        virtual void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0); /** add context menu items for the plugin*/
        virtual bool BuildToolBar(wxToolBar* toolBar); /** register and add plugin toolbars*/
        virtual int Execute();
    protected:
        virtual void OnAttach();
        virtual void OnRelease(bool appShutDown);

/// Non-boiler plate methods
    public:

    private:
        void AddNewInterpreter(wxCommandEvent &event);
        void OnToggleInterpreterWindow(wxCommandEvent &event);
        void OnUpdateUI(wxUpdateUIEvent& event);
        wxMenu *m_ViewMenu;
#ifndef TOOLSPLUSLINK
        ShellManager *m_shellmgr;
#endif

        DECLARE_EVENT_TABLE();
};

#endif // PYTHONPLUGIN_H_INCLUDED