~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/include/editpathdlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
 
3
 * http://www.gnu.org/licenses/lgpl-3.0.html
 
4
 */
 
5
 
 
6
#ifndef EDITPATHDLG_H
 
7
#define EDITPATHDLG_H
 
8
 
 
9
#include <wx/dialog.h>
 
10
#include <wx/intl.h>
 
11
 
 
12
class EditPathDlg : public wxDialog
 
13
{
 
14
        public:
 
15
                EditPathDlg(wxWindow* parent,
 
16
                const wxString& path,       // initial path
 
17
                const wxString& basepath,   // for relative pathes
 
18
                const wxString& title = _("Edit Path"),      // title of the dialog
 
19
                const wxString& message = _T(""),    // message displayed in the dialogs
 
20
                const bool wantDir = true,  // whether to open a dir or a file dialog
 
21
                const bool allowMultiSel = false,  // whether to allow for multiple files selection
 
22
                const wxString& filter = _("All files(*)|*"));  // wildcard for files
 
23
 
 
24
                virtual ~EditPathDlg();
 
25
                EditPathDlg& operator=(const EditPathDlg&){ return *this; } // just to satisfy script bindings (never used)
 
26
 
 
27
                const wxString& GetPath(){ return m_Path; }
 
28
        void EndModal(int retCode);
 
29
 
 
30
        protected:
 
31
        void OnBrowse(wxCommandEvent& event);
 
32
        void OnUpdateUI(wxUpdateUIEvent& event);
 
33
 
 
34
        wxString m_Path;
 
35
        wxString m_Message, m_Basepath, m_Filter;
 
36
        bool     m_WantDir, m_AllowMultiSel, m_AskMakeRelative, m_ShowCreateDirButton;
 
37
 
 
38
        private:
 
39
        DECLARE_EVENT_TABLE();
 
40
};
 
41
 
 
42
#endif // EDITPATHDLG_H