Speed fix for wxGenericDirCtrl, starting to add text input control;
added wxWS_EX_NO_AUTOFOCUS for wxMSW so we can stop wxToolBar accepting the focus; UI update improvement to send commands to current focus window; split tree control horiz. scrollbar problem fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
// classes
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class wxDirItemData;
|
||||
//class wxDirItemData;
|
||||
class wxDirCtrl;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -224,9 +224,14 @@ public:
|
||||
wxGenericDirDialog(wxWindow* parent, const wxString& title,
|
||||
const wxString& defaultPath = wxEmptyString, long style = wxDEFAULT_DIALOG_STYLE, const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxSize(450, 550), const wxString& name = "dialog");
|
||||
|
||||
//// Event handlers
|
||||
void OnCloseWindow(wxCloseEvent& event);
|
||||
void OnOK(wxCommandEvent& event);
|
||||
void OnTreeSelected( wxTreeEvent &event );
|
||||
void OnTreeKeyDown( wxTreeEvent &event );
|
||||
void OnNew(wxCommandEvent& event);
|
||||
|
||||
//// Accessors
|
||||
inline void SetMessage(const wxString& message) { m_message = message; }
|
||||
void SetPath(const wxString& path) ;
|
||||
inline void SetStyle(long style) { m_dialogStyle = style; }
|
||||
@@ -235,11 +240,17 @@ public:
|
||||
wxString GetPath(void) const ;
|
||||
inline long GetStyle(void) const { return m_dialogStyle; }
|
||||
|
||||
wxTextCtrl* GetInputCtrl() const { return m_input; }
|
||||
|
||||
//// Overrides
|
||||
int ShowModal();
|
||||
|
||||
protected:
|
||||
wxString m_message;
|
||||
long m_dialogStyle;
|
||||
wxString m_path;
|
||||
wxGenericDirCtrl* m_dirCtrl;
|
||||
wxTextCtrl* m_input;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user