00001
00012 #ifndef _CONNECTIONDLG
00013 #define _CONNECTIONDLG
00014
00015 #include "Definitions.h"
00016
00017 #include <wx/wxprec.h>
00018 #ifndef WX_PRECOMP
00019 #include <wx/wx.h>
00020 #endif
00021 #include <wx/dialog.h>
00022 #include <wx/config.h>
00023 #include <wx/checkbox.h>
00027 const wxString LOCATION2 = _("ConnectionPrefs");
00028
00029 class ConnectionDlg : public wxDialog
00030 {
00031 public:
00035 ConnectionDlg(wxWindow* parent = NULL,
00036 wxWindowID id = -1,
00037 const wxString& title = _("Connessione a..."),
00038 const wxPoint& pos = wxDefaultPosition,
00039 const wxSize& size = wxSize(240, 260),
00040 long style = wxDEFAULT_DIALOG_STYLE,
00041 const wxString& name = _("ConnectionDlg"));
00045 ~ConnectionDlg();
00046 private:
00050 wxTextCtrl *nick;
00054 wxTextCtrl *name;
00058 wxTextCtrl *serveraddr;
00062 wxTextCtrl *port;
00066 wxComboBox *timeout;
00070 wxCheckBox *rfcCompliant;
00071
00072 wxStaticText *nick_lab;
00073 wxStaticText *name_lab;
00074 wxStaticText *serveraddr_lab;
00075 wxStaticText *port_lab;
00076 wxStaticText *timeout_lab;
00080 wxButton *ok;
00084 wxButton *cancel;
00088 void CreateGUIControls();
00089 DECLARE_EVENT_TABLE()
00090
00094 void ConnectionDlgClose(wxCloseEvent& event);
00098 void OnOk(wxCommandEvent& event);
00102 void OnCancel(wxCommandEvent& event);
00106 void StoreCfg();
00110 wxArrayString LoadCfg();
00111
00112 };
00113 enum{
00114 NICK,
00115 NAME,
00116 SERVERADDR,
00117 PORT,
00118 TIMEOUT,
00119 RFC_COMPLIANT,
00120 OK,
00121 CANCEL
00122 };
00123 #endif