*
* Nicolas Boichat, April 2004
*
+ * Version $Id$
*/
/*
Copyright (C) 2004 Kern Sibbald and John Walker
};
class wxbConfigParam {
- public:
+ public:
/* Create a new config parameter */
wxbConfigParam(wxString title, wxWindowID id, wxbConfigType type, wxString value);
wxbConfigParam(wxString title, wxWindowID id, wxbConfigType type, int n, wxString values[]);
~wxbConfigParam();
-
+
void AddControl(wxWindow* parent, wxSizer* sizer);
-
+
wxString GetValue();
void SetValue(wxString str);
-
+
int GetIndex();
void SetIndex(int ind);
-
+
void Clear();
void Add(wxString value);
-
+
wxString GetTitle();
-
+
private:
wxString value;
wxString* values;
int nvalues;
-
+
wxString title;
-
+
wxWindowID id;
-
+
wxbConfigType type;
-
+
wxChoice* choicectrl;
wxTextCtrl* textctrl;
wxStaticText* statictext;
class wxbConfigPanel : public wxPanel {
public:
/* Creates a new config panel, config must be allocated with new */
- wxbConfigPanel(wxWindow* parent, wxbConfig* config, wxWindowID ok, wxWindowID cancel, wxWindowID apply = -1);
+ wxbConfigPanel(wxWindow* parent, wxbConfig* config, wxString title, wxWindowID ok, wxWindowID cancel, wxWindowID apply = -1);
~wxbConfigPanel();
-
- void SetRowString(const char* title, wxString value);
- wxString GetRowString(const char* title);
- int GetRowSelection(const char* title);
- void SetRowSelection(const char* title, int ind);
- void ClearRowChoices(const char* title);
- void AddRowChoice(const char* title, wxString value);
+ void SetRowString(const wxChar* title, wxString value);
+ wxString GetRowString(const wxChar* title);
+ int GetRowSelection(const wxChar* title);
+ void SetRowSelection(const wxChar* title, int ind);
+
+ void ClearRowChoices(const wxChar* title);
+ void AddRowChoice(const wxChar* title, wxString value);
/* If enable is true, enables apply button, and disables ok button */
void EnableApply(bool enable = true);
wxButton* cfgOk;
wxButton* cfgCancel;
wxButton* cfgApply;
-
- int FindRow(const char* title);
+
+ int FindRow(const wxChar* title);
};
#endif