]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: minifram.h | |
3 | // Purpose: wxMiniFrame class | |
4 | // Author: Robert Roebling | |
5 | // RCS-ID: $Id$ | |
6 | // Copyright: (c) Robert Roebling | |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef __GTKMINIFRAMEH__ | |
11 | #define __GTKMINIFRAMEH__ | |
12 | ||
13 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) | |
14 | #pragma interface | |
15 | #endif | |
16 | ||
17 | #include "wx/defs.h" | |
18 | ||
19 | #if wxUSE_MINIFRAME | |
20 | ||
21 | #include "wx/object.h" | |
22 | #include "wx/frame.h" | |
23 | ||
24 | //----------------------------------------------------------------------------- | |
25 | // classes | |
26 | //----------------------------------------------------------------------------- | |
27 | ||
28 | class WXDLLIMPEXP_CORE wxMiniFrame; | |
29 | ||
30 | //----------------------------------------------------------------------------- | |
31 | // wxMiniFrame | |
32 | //----------------------------------------------------------------------------- | |
33 | ||
34 | class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame | |
35 | { | |
36 | DECLARE_DYNAMIC_CLASS(wxMiniFrame) | |
37 | ||
38 | public: | |
39 | wxMiniFrame() {} | |
40 | wxMiniFrame(wxWindow *parent, | |
41 | wxWindowID id, | |
42 | const wxString& title, | |
43 | const wxPoint& pos = wxDefaultPosition, | |
44 | const wxSize& size = wxDefaultSize, | |
45 | long style = wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION_HORIZ, | |
46 | const wxString& name = wxFrameNameStr) | |
47 | { | |
48 | Create(parent, id, title, pos, size, style, name); | |
49 | } | |
50 | ||
51 | bool Create(wxWindow *parent, | |
52 | wxWindowID id, | |
53 | const wxString& title, | |
54 | const wxPoint& pos = wxDefaultPosition, | |
55 | const wxSize& size = wxDefaultSize, | |
56 | long style = wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION_HORIZ, | |
57 | const wxString& name = wxFrameNameStr); | |
58 | ||
59 | virtual void SetTitle( const wxString &title ); | |
60 | // implementation | |
61 | ||
62 | bool m_isDragging; | |
63 | int m_oldX,m_oldY; | |
64 | int m_diffX,m_diffY; | |
65 | }; | |
66 | ||
67 | #endif | |
68 | ||
69 | #endif | |
70 | // __GTKMINIFRAMEH__ |