2001-07-07 21:42:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: popupwin.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
|
|
|
// Created:
|
|
|
|
// Id: $Id$
|
2001-07-10 12:25:46 +00:00
|
|
|
// Copyright: (c) 2001 Robert Roebling
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2001-07-07 21:42:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-08-30 05:55:56 +00:00
|
|
|
#ifndef _WX_GTK_POPUPWIN_H_
|
|
|
|
#define _WX_GTK_POPUPWIN_H_
|
2001-07-07 21:42:30 +00:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxPopUpWindow
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPopupWindow: public wxPopupWindowBase
|
2001-07-07 21:42:30 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPopupWindow() { }
|
2002-06-06 19:35:51 +00:00
|
|
|
virtual ~wxPopupWindow();
|
2001-10-12 18:11:46 +00:00
|
|
|
|
|
|
|
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
|
|
|
|
{ (void)Create(parent, flags); }
|
2001-07-07 21:42:30 +00:00
|
|
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
|
|
|
|
|
|
|
virtual bool Show( bool show = TRUE );
|
2001-10-12 18:11:46 +00:00
|
|
|
|
2001-07-07 21:42:30 +00:00
|
|
|
// implementation
|
|
|
|
// --------------
|
|
|
|
|
|
|
|
virtual void OnInternalIdle();
|
2006-02-27 09:16:28 +00:00
|
|
|
|
|
|
|
// GTK time when connecting to button_press signal
|
|
|
|
wxUint32 m_time;
|
2001-07-07 21:42:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
protected:
|
2006-09-07 16:06:47 +00:00
|
|
|
void GtkOnSize();
|
2001-07-07 21:42:30 +00:00
|
|
|
|
|
|
|
virtual void DoSetSize(int x, int y,
|
|
|
|
int width, int height,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
|
|
|
|
2006-02-08 21:47:09 +00:00
|
|
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
|
|
|
|
2001-07-07 21:42:30 +00:00
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
|
|
|
|
};
|
|
|
|
|
2006-08-30 05:55:56 +00:00
|
|
|
#endif // _WX_GTK_POPUPWIN_H_
|