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