source: eviacam/trunk/fuentes/src/clickwindowvertical.h @ 29

Last change on this file since 29 was 29, checked in by mabarracus, 4 years ago

added eviacam content

File size: 5.1 KB
Line 
1/////////////////////////////////////////////////////////////////////////////
2// Name:        clickwindowtext.h
3// Purpose: 
4// Author:      Cesar Mauri Loba (cesar at crea-si dot com)
5// Modified by:
6// Created:     
7// Copyright:   (C) 2008-09 Cesar Mauri Loba - CREA Software Systems
8//
9//  This program is free software: you can redistribute it and/or modify
10//  it under the terms of the GNU General Public License as published by
11//  the Free Software Foundation, either version 3 of the License, or
12//  (at your option) any later version.
13//
14//  This program is distributed in the hope that it will be useful,
15//  but WITHOUT ANY WARRANTY; without even the implied warranty of
16//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17//  GNU General Public License for more details.
18//
19//  You should have received a copy of the GNU General Public License
20//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
21/////////////////////////////////////////////////////////////////////////////
22
23#ifndef _CLICKWINDOWVERTICAL_H_
24#define _CLICKWINDOWVERTICAL_H_
25
26
27/*!
28 * Includes
29 */
30
31#include "clickwindow.h"
32////@begin includes
33#include "wx/tglbtn.h"
34////@end includes
35#include "clickwindowcontroller.h"
36
37/*!
38 * Forward declarations
39 */
40
41////@begin forward declarations
42class wxToggleButton;
43////@end forward declarations
44class wxButton;
45
46/*!
47 * Control identifiers
48 */
49
50////@begin control identifiers
51#define ID_CLICKWINDOW_TEXT_VERTICAL 10112
52#define ID_BUTTON_NOCLICK 10004
53#define ID_BTN_LEFT 10007
54#define ID_BTN_MIDDLE 10126
55#define ID_BTN_RIGHT 10008
56#define ID_BTN_DRAG 10009
57#define ID_BTN_DBLCLICK 10010
58#define ID_BUTTON_SHOW_FRAME 10013
59#define SYMBOL_CCLICKWINDOWTEXTVERTICAL_STYLE wxCAPTION|wxSYSTEM_MENU|wxSTAY_ON_TOP
60#define SYMBOL_CCLICKWINDOWTEXTVERTICAL_TITLE _("eViacam")
61#define SYMBOL_CCLICKWINDOWTEXTVERTICAL_IDNAME ID_CLICKWINDOW_TEXT_VERTICAL
62#define SYMBOL_CCLICKWINDOWTEXTVERTICAL_SIZE wxDefaultSize
63#define SYMBOL_CCLICKWINDOWTEXTVERTICAL_POSITION wxPoint(0, 0)
64////@end control identifiers
65
66#undef SYMBOL_CCLICKWINDOWTEXTVERTICAL_STYLE
67#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__)
68#define SYMBOL_CCLICKWINDOWTEXTVERTICAL_STYLE wxCAPTION|wxSYSTEM_MENU|wxSTAY_ON_TOP
69#else
70#define SYMBOL_CCLICKWINDOWTEXTVERTICAL_STYLE wxSYSTEM_MENU|wxSTAY_ON_TOP
71#endif
72
73/*!
74 * CClickWindowTextVertical class declaration
75 */
76
77class CClickWindowTextVertical: public CClickWindow
78{   
79    DECLARE_DYNAMIC_CLASS( CClickWindowTextVertical )
80    DECLARE_EVENT_TABLE()
81
82public:
83    /// Constructors
84    CClickWindowTextVertical();
85    CClickWindowTextVertical( wxWindow* parent, wxWindowID id = SYMBOL_CCLICKWINDOWTEXTVERTICAL_IDNAME, const wxString& caption = SYMBOL_CCLICKWINDOWTEXTVERTICAL_TITLE, const wxPoint& pos = SYMBOL_CCLICKWINDOWTEXTVERTICAL_POSITION, const wxSize& size = SYMBOL_CCLICKWINDOWTEXTVERTICAL_SIZE, long style = SYMBOL_CCLICKWINDOWTEXTVERTICAL_STYLE );
86
87    /// Creation
88    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CCLICKWINDOWTEXTVERTICAL_IDNAME, const wxString& caption = SYMBOL_CCLICKWINDOWTEXTVERTICAL_TITLE, const wxPoint& pos = SYMBOL_CCLICKWINDOWTEXTVERTICAL_POSITION, const wxSize& size = SYMBOL_CCLICKWINDOWTEXTVERTICAL_SIZE, long style = SYMBOL_CCLICKWINDOWTEXTVERTICAL_STYLE );
89
90    /// Destructor
91    ~CClickWindowTextVertical();
92
93    /// Initialises member variables
94    void Init();
95
96    /// Creates the controls and sizers
97    void CreateControls();
98
99////@begin CClickWindowTextVertical event handler declarations
100
101////@end CClickWindowTextVertical event handler declarations
102
103////@begin CClickWindowTextVertical member function declarations
104
105    /// Retrieves bitmap resources
106    wxBitmap GetBitmapResource( const wxString& name );
107
108    /// Retrieves icon resources
109    wxIcon GetIconResource( const wxString& name );
110////@end CClickWindowTextVertical member function declarations
111
112    /// Should we show tooltips?
113    static bool ShowToolTips();
114
115virtual void UpdateButtons (bool noClickStatus, CClickWindowController::EButton selected, CClickWindowController::EButton locked);
116protected:
117
118        virtual void OnMainWindowShow ( wxShowEvent& event );
119
120        virtual wxControl* GetNoClickButton();
121    virtual wxControl* GetLeftButton();
122    virtual wxControl* GetMiddleButton();
123    virtual wxControl* GetRightButton();
124    virtual wxControl* GetDragButton();
125    virtual wxControl* GetDblClickButton();
126    virtual wxControl* GetShowFrame();
127
128        void UpdateSelectedButtons ( wxControl* btnSelected, wxControl* btnNoSelected1, 
129                                                                 wxControl* btnNoSelected2,wxControl* btnNoSelected3, wxControl* btnNoSelected4);
130
131        void UpdateLockedButtons ( wxControl* btnLocked, wxControl* btnNoLocked1, 
132                                                           wxControl* btnNoLocked2, wxControl* btnNoLocked3, wxControl* btnNoLocked4);
133                                                           
134////@begin CClickWindowTextVertical member variables
135    wxToggleButton* m_noClickButton;
136    wxToggleButton* m_leftButton;
137    wxToggleButton* m_middleButton;
138    wxToggleButton* m_rightButton;
139    wxToggleButton* m_dragButton;
140    wxToggleButton* m_dblClickButton;
141    wxButton* m_btnShowFrame;
142////@end CClickWindowTextVertical member variables
143};
144
145#endif
146    // _CLICKWINDOWVERTICAL_H_
Note: See TracBrowser for help on using the repository browser.