2002-02-10 18:21:44 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: popupwin.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
|
|
|
// Created:
|
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 2001 Robert Roebling
|
2002-02-05 11:34:33 -05:00
|
|
|
// Licence: wxWindows licence
|
2002-02-10 18:21:44 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2002-02-10 18:21:44 -05:00
|
|
|
#ifndef __GTKPOPUPWINH__
|
|
|
|
#define __GTKPOPUPWINH__
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2003-05-11 14:08:58 -04:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
2002-02-10 18:21:44 -05:00
|
|
|
#pragma interface "popupwin.h"
|
|
|
|
#endif
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2002-02-10 18:21:44 -05:00
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/panel.h"
|
|
|
|
#include "wx/icon.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxPopUpWindow
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxPopupWindow: public wxPopupWindowBase
|
2002-02-05 11:34:33 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPopupWindow() { }
|
2002-02-10 18:21:44 -05:00
|
|
|
virtual ~wxPopupWindow() { }
|
2002-02-05 11:34:33 -05:00
|
|
|
|
|
|
|
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
|
|
|
|
{ (void)Create(parent, flags); }
|
2002-02-10 18:31:24 -05:00
|
|
|
|
2002-02-10 18:21:44 -05:00
|
|
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2002-02-10 18:21:44 -05:00
|
|
|
virtual bool Show( bool show = TRUE );
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2002-02-10 18:21:44 -05:00
|
|
|
protected:
|
|
|
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
|
|
|
virtual void DoSetSize(int x, int y,
|
|
|
|
int width, int height,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
2002-02-10 18:31:24 -05:00
|
|
|
|
2002-02-10 18:21:44 -05:00
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
2002-02-05 11:34:33 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
|
|
|
|
};
|
|
|
|
|
2002-02-10 18:21:44 -05:00
|
|
|
#endif // __GTKPOPUPWINDOWH__
|