Added AddGrab, RemoveGrab, IsGrabbed to wxTopLevelWindowGTK
and AddGrabIfNeeded to wxHtmlHelpController, to assist with showing the help window from a modal dialog. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -65,6 +65,12 @@ public:
|
||||
virtual void SetTitle( const wxString &title );
|
||||
virtual wxString GetTitle() const { return m_title; }
|
||||
|
||||
// Experimental, to allow help windows to be
|
||||
// viewable from within modal dialogs
|
||||
virtual void AddGrab();
|
||||
virtual void RemoveGrab();
|
||||
virtual bool IsGrabbed() const { return m_grabbed; }
|
||||
|
||||
// implementation from now on
|
||||
// --------------------------
|
||||
|
||||
@@ -111,6 +117,9 @@ protected:
|
||||
|
||||
// is the frame currently iconized?
|
||||
bool m_isIconized;
|
||||
// is the frame currently grabbed explicitly
|
||||
// by the application?
|
||||
bool m_grabbed;
|
||||
};
|
||||
|
||||
#endif // __GTKTOPLEVELH__
|
||||
|
@@ -65,6 +65,12 @@ public:
|
||||
virtual void SetTitle( const wxString &title );
|
||||
virtual wxString GetTitle() const { return m_title; }
|
||||
|
||||
// Experimental, to allow help windows to be
|
||||
// viewable from within modal dialogs
|
||||
virtual void AddGrab();
|
||||
virtual void RemoveGrab();
|
||||
virtual bool IsGrabbed() const { return m_grabbed; }
|
||||
|
||||
// implementation from now on
|
||||
// --------------------------
|
||||
|
||||
@@ -111,6 +117,9 @@ protected:
|
||||
|
||||
// is the frame currently iconized?
|
||||
bool m_isIconized;
|
||||
// is the frame currently grabbed explicitly
|
||||
// by the application?
|
||||
bool m_grabbed;
|
||||
};
|
||||
|
||||
#endif // __GTKTOPLEVELH__
|
||||
|
@@ -36,26 +36,13 @@ public:
|
||||
void SetTitleFormat(const wxString& format);
|
||||
void SetTempDir(const wxString& path) { m_helpData.SetTempDir(path); }
|
||||
bool AddBook(const wxString& book, bool show_wait_msg = FALSE);
|
||||
bool Display(const wxString& x)
|
||||
{
|
||||
CreateHelpWindow(); return m_helpFrame->Display(x);
|
||||
}
|
||||
bool Display(int id)
|
||||
{
|
||||
CreateHelpWindow(); return m_helpFrame->Display(id);
|
||||
}
|
||||
bool DisplayContents()
|
||||
{
|
||||
CreateHelpWindow(); return m_helpFrame->DisplayContents();
|
||||
}
|
||||
bool DisplayIndex()
|
||||
{
|
||||
CreateHelpWindow(); return m_helpFrame->DisplayIndex();
|
||||
}
|
||||
bool KeywordSearch(const wxString& keyword)
|
||||
{
|
||||
CreateHelpWindow(); return m_helpFrame->KeywordSearch(keyword);
|
||||
}
|
||||
|
||||
bool Display(const wxString& x);
|
||||
bool Display(int id);
|
||||
bool DisplayContents();
|
||||
bool DisplayIndex();
|
||||
bool KeywordSearch(const wxString& keyword);
|
||||
|
||||
wxHtmlHelpFrame* GetFrame() { return m_helpFrame; }
|
||||
void UseConfig(wxConfigBase *config, const wxString& rootpath = wxEmptyString);
|
||||
|
||||
@@ -94,6 +81,10 @@ public:
|
||||
|
||||
void OnCloseFrame(wxCloseEvent& evt);
|
||||
|
||||
// Make the help controller's frame 'modal' if
|
||||
// needed
|
||||
void AddGrabIfNeeded();
|
||||
|
||||
protected:
|
||||
virtual wxHtmlHelpFrame* CreateHelpFrame(wxHtmlHelpData *data);
|
||||
|
||||
|
Reference in New Issue
Block a user