VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
window.h
Go to the documentation of this file.
1 /*
2  * window.h
3  *
4  * Defines the implementation of the Window interface for the components
5  * that share its use.
6  *
7  * Copyright 2012 - 2014 Brenton Ross
8  *
9  * This file is part of VICI.
10  *
11  * VICI is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation, either version 3 of the License, or
14  * (at your option) any later version.
15  *
16  * VICI is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with VICI. If not, see <http://www.gnu.org/licenses/>.
23  */
24 
30 #ifndef VICI_WINDOW_H
31 #define VICI_WINDOW_H
32 
33 #include "vici.h"
34 
35 class QWidget;
36 
37 namespace VICI
38 {
40 
48 class VWindow : public Window
49 {
50 protected:
51  QWidget *widget;
52 public:
54 
57  VWindow( QWidget *w ) : widget(w) {}
58 
60  operator QWidget *() const { return widget; }
61 
63  QWidget * operator -> () { return widget; }
64 };
65 
66 
67 
68 }
69 
70 
71 
72 #endif /* WINDOW_H_ */
A wrapper class for windows.
Definition: vici.h:190
QWidget * widget
the window being passed
Definition: window.h:51
An implementation of Window for holding Qt&#39;s QWidget objects.
Definition: window.h:48
VWindow(QWidget *w)
Constructor.
Definition: window.h:57
QWidget * operator->()
pointer operator
Definition: window.h:63
Project wide declarations and definitions.