///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Feb  2 2007)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#ifndef __CMDCONFIGDIALOG__
#define __CMDCONFIGDIALOG__

// Define WX_GCH in order to support precompiled headers with GCC compiler.
// You have to create the header "wx_pch.h" and include all files needed
// for compile your gui inside it.
// Then, compile it and place the file "wx_pch.h.gch" into the same
// directory that "wx_pch.h".
#ifdef WX_GCH
#include <wx_pch.h>
#else
#include <wx/wx.h>
#endif

#include <wx/button.h>
#include <wx/spinctrl.h>
#include <wx/choice.h>

///////////////////////////////////////////////////////////////////////////

#define ID_COMMANDLIST 1000
#define ID_NEW 1001
#define ID_COPY 1002
#define ID_DELETE 1003
#define ID_UP 1004
#define ID_DOWN 1005
#define ID_COMMANDNAME 1006
#define ID_COMMAND 1007
#define ID_WILDCARDS 1008
#define ID_WORKDIR 1009
#define ID_MENULOC 1010
#define ID_MENULOCPRIORITY 1011
#define ID_CMENULOC 1012
#define ID_CMENULOCPRIORITY 1013
#define ID_MODE 1014
#define ID_ENVVARS 1015
#define ID_IMPORT 1016
#define ID_EXPORT 1017


///////////////////////////////////////////////////////////////////////////////
/// Class CmdConfigDialog
///////////////////////////////////////////////////////////////////////////////

#include <sdk.h>
#include <configurationpanel.h>

class ToolsPlus;
class CommandCollection;

class CmdConfigDialog : public wxDialog
{
    public:
        CmdConfigDialog(CmdConfigDialog &/*dlg*/) : wxDialog() {}
		CmdConfigDialog( wxWindow* parent, ToolsPlus* plugin);
        virtual ~CmdConfigDialog() {}

        wxString GetTitle() const { return _("User-defined Tools"); }
        wxString GetBitmapBaseName() const { return _("ToolsPlus"); }
        void OnApply();
        void OnCancel(){}
        bool ReUseToolsPage() const;

	private:
        CommandCollection m_ic;
        CommandCollection *m_icperm;
        ToolsPlus *m_plugin;
        int m_activeinterp;
        bool m_ReUseToolsPageValue;
//        void UpdateEntry(int index);
//        void ChooseFile();

	protected:
        void New(wxCommandEvent &event);
        void Copy(wxCommandEvent &event);
        void Delete(wxCommandEvent &event);
        void ChangeSelection(wxCommandEvent &event);
        void NameChange(wxCommandEvent &event);
        void OnUp(wxCommandEvent &event);
        void OnDown(wxCommandEvent &event);
        void OnImport(wxCommandEvent &event);
        void OnExport(wxCommandEvent &event);
        void SetDialogItems();
        void GetDialogItems();
		wxStaticText* m_staticText27;
		wxListBox* m_commandlist;
		wxButton* m_butnew;
		wxButton* m_butcopy;
		wxButton* m_butdelete;
		wxButton* m_butup;
		wxButton* m_butdown;
		wxStaticText* m_staticText11;
		wxTextCtrl* m_commandname;
		wxStaticText* m_staticText12;
		wxTextCtrl* m_command;
		wxStaticText* m_staticText28;
		wxTextCtrl* m_wildcards;
		wxStaticText* m_staticText112;
		wxTextCtrl* m_workdir;
		wxStaticText* m_staticText13;
		wxTextCtrl* m_menuloc;
		wxStaticText* m_staticText16;
		wxSpinCtrl* m_menulocpriority;
		wxStaticText* m_staticText131;
		wxTextCtrl* m_cmenuloc;
		wxStaticText* m_staticText161;
		wxSpinCtrl* m_cmenulocpriority;
		wxStaticText* m_staticText111;
		wxChoice* m_mode;
		wxStaticText* m_staticText1111;
		wxChoice* m_envvars;
		wxWindow *m_prop_panel;
		wxCheckBox *m_replace_tools;
		wxCheckBox *m_ReuseToolsPage;
    DECLARE_EVENT_TABLE()

};

#endif //__CMDCONFIGDIALOG__
