Canorus
0.7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
widgets
viewportcontainer.h
Go to the documentation of this file.
1
8
#ifndef SCROLLWIDGET_H
9
#define SCROLLWIDGET_H
10
11
#include <QSplitter>
12
#include <QHash>
13
14
class
CAViewPort
;
15
class
CASheet
;
16
17
class
CAViewPortContainer
:
public
QSplitter
{
18
Q_OBJECT
19
20
public
:
21
CAViewPortContainer
(
QWidget
*p );
22
~CAViewPortContainer
();
23
24
void
addViewPort
(
CAViewPort
*v,
QSplitter
*s=0 );
25
void
removeViewPort
(
CAViewPort
*v );
26
CAViewPort
*
splitHorizontally
(
CAViewPort
*v = 0 );
27
CAViewPort
*
splitVertically
(
CAViewPort
*v = 0 );
28
29
CAViewPort
*
unsplit
(
CAViewPort
*v = 0 );
30
QList<CAViewPort*>
unsplitAll
();
31
32
inline
bool
contains
(
CAViewPort
* v) {
return
_viewPortMap
.contains(v); }
33
inline
QList<CAViewPort*>
viewPortList
() {
return
_viewPortMap
.keys(); }
34
35
inline
void
setCurrentViewPort
(
CAViewPort
*v ) {
_currentViewPort
= v; }
36
inline
CAViewPort
*
currentViewPort
() {
return
_currentViewPort
; }
37
38
private
:
39
QHash<CAViewPort*, QSplitter*>
_viewPortMap
;
40
CAViewPort
*
_currentViewPort
;
41
CASheet
*
_sheet
;
42
};
43
#endif
Generated on Fri Jan 11 2013 14:40:13 for Canorus by
1.8.3