we now send iconize events

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-05-31 14:32:06 +00:00
parent bf7945cef1
commit 3dd9b88ac2
13 changed files with 320 additions and 157 deletions

View File

@@ -1043,10 +1043,7 @@ protected:
class WXDLLEXPORT wxShowEvent : public wxEvent
{
DECLARE_DYNAMIC_CLASS(wxShowEvent)
public:
wxShowEvent(int id = 0, bool show = FALSE)
{ m_eventType = wxEVT_SHOW; m_id = id; m_show = show; }
@@ -1057,6 +1054,8 @@ public:
protected:
bool m_show;
DECLARE_DYNAMIC_CLASS(wxShowEvent)
};
/*
@@ -1065,11 +1064,17 @@ protected:
class WXDLLEXPORT wxIconizeEvent : public wxEvent
{
DECLARE_DYNAMIC_CLASS(wxIconizeEvent)
public:
wxIconizeEvent(int id = 0)
{ m_eventType = wxEVT_ICONIZE; m_id = id; }
wxIconizeEvent(int id = 0, bool iconized = TRUE)
{ m_eventType = wxEVT_ICONIZE; m_id = id; m_iconized = iconized; }
// return true if the frame was iconized, false if restored
bool Iconized() const { return m_iconized; }
protected:
bool m_iconized;
DECLARE_DYNAMIC_CLASS(wxIconizeEvent)
};
/*
@@ -1078,11 +1083,11 @@ public:
class WXDLLEXPORT wxMaximizeEvent : public wxEvent
{
DECLARE_DYNAMIC_CLASS(wxMaximizeEvent)
public:
wxMaximizeEvent(int id = 0)
{ m_eventType = wxEVT_MAXIMIZE; m_id = id; }
wxMaximizeEvent(int id = 0)
{ m_eventType = wxEVT_MAXIMIZE; m_id = id; }
DECLARE_DYNAMIC_CLASS(wxMaximizeEvent)
};
// Joystick event class

View File

@@ -215,6 +215,9 @@ protected:
virtual void DoClientToScreen(int *x, int *y) const;
virtual void DoScreenToClient(int *x, int *y) const;
// send the iconize event, return TRUE if processed
bool SendIconizeEvent(bool iconized = TRUE);
// the frame icon
wxIcon m_icon;

View File

@@ -99,13 +99,16 @@ public:
// --------------------------
// move the window to the specified location and resize it: this is called
// from both DoSetSize() and DoSetClientSize()
// from both DoSetSize() and DoSetClientSize()
virtual void DoMoveWindow(int x, int y, int width, int height);
// GTK callbacks
virtual void GtkOnSize( int x, int y, int width, int height );
virtual void OnInternalIdle();
// do *not* call this to iconize the frame, this is a private function!
void SetIconizeState(bool iconic);
wxString m_title;
int m_miniEdge,
m_miniTitle;
@@ -114,8 +117,6 @@ public:
bool m_toolBarDetached;
bool m_insertInClientArea; /* not from within OnCreateXXX */
bool m_isIconized;
bool m_fsIsShowing; /* full screen */
long m_fsSaveStyle;
long m_fsSaveFlag;
@@ -133,6 +134,9 @@ protected:
virtual void DoSetClientSize(int width, int height);
virtual void DoGetClientSize( int *width, int *height ) const;
// is the frame currently iconized?
bool m_isIconized;
private:
DECLARE_DYNAMIC_CLASS(wxFrame)
};

View File

@@ -99,13 +99,16 @@ public:
// --------------------------
// move the window to the specified location and resize it: this is called
// from both DoSetSize() and DoSetClientSize()
// from both DoSetSize() and DoSetClientSize()
virtual void DoMoveWindow(int x, int y, int width, int height);
// GTK callbacks
virtual void GtkOnSize( int x, int y, int width, int height );
virtual void OnInternalIdle();
// do *not* call this to iconize the frame, this is a private function!
void SetIconizeState(bool iconic);
wxString m_title;
int m_miniEdge,
m_miniTitle;
@@ -114,8 +117,6 @@ public:
bool m_toolBarDetached;
bool m_insertInClientArea; /* not from within OnCreateXXX */
bool m_isIconized;
bool m_fsIsShowing; /* full screen */
long m_fsSaveStyle;
long m_fsSaveFlag;
@@ -133,6 +134,9 @@ protected:
virtual void DoSetClientSize(int width, int height);
virtual void DoGetClientSize( int *width, int *height ) const;
// is the frame currently iconized?
bool m_isIconized;
private:
DECLARE_DYNAMIC_CLASS(wxFrame)
};