1998-12-04 02:43:56 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: minifram.h
|
|
|
|
// Purpose: wxMiniFrame class
|
|
|
|
// Author: Robert Roebling
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Robert Roebling
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-12-04 02:43:56 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2007-10-24 14:07:24 -04:00
|
|
|
#ifndef _WX_GTK_MINIFRAME_H_
|
|
|
|
#define _WX_GTK_MINIFRAME_H_
|
1998-12-04 02:43:56 -05:00
|
|
|
|
2006-08-23 17:07:33 -04:00
|
|
|
#include "wx/bitmap.h"
|
1998-12-04 02:43:56 -05:00
|
|
|
#include "wx/frame.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxMiniFrame
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame
|
1998-12-04 02:43:56 -05:00
|
|
|
{
|
1999-02-05 09:26:48 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxMiniFrame)
|
1998-12-04 02:43:56 -05:00
|
|
|
|
|
|
|
public:
|
1999-02-05 09:26:48 -05:00
|
|
|
wxMiniFrame() {}
|
|
|
|
wxMiniFrame(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
2006-10-29 15:15:26 -05:00
|
|
|
long style = wxCAPTION | wxRESIZE_BORDER,
|
1999-02-05 09:26:48 -05:00
|
|
|
const wxString& name = wxFrameNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, id, title, pos, size, style, name);
|
|
|
|
}
|
1998-12-04 02:43:56 -05:00
|
|
|
|
1999-02-05 09:26:48 -05:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
2006-10-29 15:15:26 -05:00
|
|
|
long style = wxCAPTION | wxRESIZE_BORDER,
|
1999-02-05 09:26:48 -05:00
|
|
|
const wxString& name = wxFrameNameStr);
|
|
|
|
|
2004-11-03 15:47:05 -05:00
|
|
|
virtual void SetTitle( const wxString &title );
|
2007-10-24 14:07:24 -04:00
|
|
|
|
2007-11-22 01:12:56 -05:00
|
|
|
protected:
|
2007-11-22 00:15:13 -05:00
|
|
|
virtual void DoSetSizeHints( int minW, int minH,
|
|
|
|
int maxW, int maxH,
|
|
|
|
int incW, int incH );
|
2007-10-24 14:07:24 -04:00
|
|
|
virtual void DoGetClientSize(int* width, int* height) const;
|
|
|
|
|
1999-04-14 10:55:56 -04:00
|
|
|
// implementation
|
2007-10-24 14:07:24 -04:00
|
|
|
public:
|
1999-02-05 09:26:48 -05:00
|
|
|
bool m_isDragging;
|
|
|
|
int m_oldX,m_oldY;
|
|
|
|
int m_diffX,m_diffY;
|
2006-08-23 17:07:33 -04:00
|
|
|
wxBitmap m_closeButton;
|
2007-10-24 14:07:24 -04:00
|
|
|
int m_miniEdge;
|
|
|
|
int m_miniTitle;
|
1998-12-04 02:43:56 -05:00
|
|
|
};
|
|
|
|
|
2007-10-24 14:07:24 -04:00
|
|
|
#endif // _WX_GTK_MINIFRAME_H_
|