2001-07-07 21:42:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-01-23 02:28:01 +00:00
|
|
|
// Name: wx/gtk1/popupwin.h
|
2001-07-07 21:42:30 +00:00
|
|
|
// 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
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKPOPUPWINH__
|
|
|
|
#define __GTKPOPUPWINH__
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/panel.h"
|
|
|
|
#include "wx/icon.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// 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 DoMoveWindow(int x, int y, int width, int height);
|
2001-10-12 18:11:46 +00:00
|
|
|
|
2001-07-07 21:42:30 +00:00
|
|
|
virtual void OnInternalIdle();
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __GTKPOPUPWINDOWH__
|