2007-09-07 23:17:30 +02:00
|
|
|
#ifndef ASSOCIATE_DIALOG_H
|
|
|
|
#define ASSOCIATE_DIALOG_H
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/tipwin.h>
|
|
|
|
|
|
|
|
class AssociateDialog : public wxDialog
|
|
|
|
{
|
2007-09-08 00:25:30 +02:00
|
|
|
public:
|
|
|
|
AssociateDialog (
|
|
|
|
wxWindow *parent,
|
|
|
|
const wxString& titleParameter = wxEmptyString,
|
|
|
|
const wxString& labelParameter = wxEmptyString,
|
|
|
|
const wxString& typeParameter = _T ( "All" ),
|
|
|
|
const wxString& extensionParameter = _T ( "*.*" ),
|
|
|
|
const wxString& urlParameter = wxEmptyString,
|
|
|
|
bool auxNeededParameter = false,
|
|
|
|
const wxString& auxLabelTextParameter = wxEmptyString,
|
|
|
|
const wxString& auxParameter = wxEmptyString );
|
2007-09-07 23:17:30 +02:00
|
|
|
~AssociateDialog();
|
2007-09-08 00:25:30 +02:00
|
|
|
void OnOk ( wxCommandEvent& e );
|
|
|
|
void OnBrowse ( wxCommandEvent& e );
|
|
|
|
void OnContextHelp ( wxHelpEvent& e );
|
|
|
|
void OnUpdateOk ( wxUpdateUIEvent& event );
|
2007-09-07 23:17:30 +02:00
|
|
|
wxString getUrl();
|
|
|
|
wxString getAux();
|
2007-09-08 00:25:30 +02:00
|
|
|
enum constants
|
|
|
|
{
|
|
|
|
ID_URL,
|
|
|
|
ID_BROWSE,
|
|
|
|
ID_AUX
|
2007-09-07 23:17:30 +02:00
|
|
|
};
|
2007-09-08 00:25:30 +02:00
|
|
|
private:
|
2007-09-07 23:17:30 +02:00
|
|
|
wxTextCtrl *urlCtrl, *auxCtrl;
|
|
|
|
wxButton *browseButton;
|
|
|
|
wxStaticText *urlLabel, *auxLabel;
|
|
|
|
wxString title, label, type, extension, url;
|
|
|
|
bool auxNeeded;
|
|
|
|
wxString auxLabelText, aux;
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|