1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox frontends: Qt GUI ("VirtualBox"):
|
---|
4 | * VirtualBox Qt extensions: QIArrowSplitter class declaration
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2006-2009 Oracle Corporation
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | * available from http://www.virtualbox.org. This file is free software;
|
---|
12 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | * General Public License (GPL) as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | */
|
---|
18 |
|
---|
19 | #ifndef __QIArrowSplitter_h__
|
---|
20 | #define __QIArrowSplitter_h__
|
---|
21 |
|
---|
22 | /* VBox includes */
|
---|
23 | #include "QIArrowButtonPress.h"
|
---|
24 | #include "QIArrowButtonSwitch.h"
|
---|
25 |
|
---|
26 | /* Qt includes */
|
---|
27 | #include <QWidget>
|
---|
28 | #include <QHBoxLayout>
|
---|
29 |
|
---|
30 | /* VBox forwards */
|
---|
31 | class QIArrowButtonPress;
|
---|
32 | class QIArrowButtonSwitch;
|
---|
33 |
|
---|
34 | /* Qt forwards */
|
---|
35 | class QVBoxLayout;
|
---|
36 |
|
---|
37 | /** @class QIArrowSplitter
|
---|
38 | *
|
---|
39 | * The QIArrowSplitter class is a folding widget placeholder.
|
---|
40 | *
|
---|
41 | */
|
---|
42 | class QIArrowSplitter : public QWidget
|
---|
43 | {
|
---|
44 | Q_OBJECT;
|
---|
45 |
|
---|
46 | public:
|
---|
47 |
|
---|
48 | QIArrowSplitter (QWidget *aChild, QWidget *aParent = 0);
|
---|
49 |
|
---|
50 | void setMultiPaging (bool aMultiPage);
|
---|
51 |
|
---|
52 | void setButtonEnabled (bool aNext, bool aEnabled);
|
---|
53 |
|
---|
54 | void setName (const QString &aName);
|
---|
55 |
|
---|
56 | public slots:
|
---|
57 |
|
---|
58 | void toggleWidget();
|
---|
59 |
|
---|
60 | signals:
|
---|
61 |
|
---|
62 | void showBackDetails();
|
---|
63 | void showNextDetails();
|
---|
64 | void sigSizeChanged();
|
---|
65 |
|
---|
66 | private:
|
---|
67 |
|
---|
68 | bool eventFilter (QObject *aObject, QEvent *aEvent);
|
---|
69 |
|
---|
70 | QVBoxLayout *mMainLayout;
|
---|
71 | QIArrowButtonSwitch *mSwitchButton;
|
---|
72 | QIArrowButtonPress *mBackButton;
|
---|
73 | QIArrowButtonPress *mNextButton;
|
---|
74 | QWidget *mChild;
|
---|
75 | };
|
---|
76 |
|
---|
77 | #endif
|
---|
78 |
|
---|