]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/wx-console/wxbconfigpanel.h
added win32 unicode support for wx-console (compile with _UNICODE)
[bacula/bacula] / bacula / src / wx-console / wxbconfigpanel.h
index baaead91fdb49030d3bd9beadfce3b83d15de639..bcbe1d39a779cf76d78966e1eca338fbf8a24d67 100644 (file)
@@ -4,6 +4,7 @@
  *
  *    Nicolas Boichat, April 2004
  *
+ *    Version $Id$
  */
 /*
    Copyright (C) 2004 Kern Sibbald and John Walker
@@ -41,36 +42,36 @@ enum wxbConfigType {
 };
 
 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;
@@ -83,14 +84,14 @@ public:
    /* Creates a new config panel, config must be allocated with new */
        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);
@@ -103,8 +104,8 @@ private:
    wxButton* cfgOk;
    wxButton* cfgCancel;
    wxButton* cfgApply;
-   
-   int FindRow(const char* title);
+
+   int FindRow(const wxChar* title);
 };
 
 #endif