VAPOR3
3.9.4
apps
vaporgui
VRouter.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
VContainer.h
"
4
#include "
AbstractWidgetGroup.h
"
5
#include <QStackedWidget>
6
7
class
VRouter
:
public
VContainer
,
public
AbstractWidgetGroup
<VRouter, QWidget> {
8
Q_OBJECT
9
10
QStackedWidget *_stack;
11
QWidget *_emptyWidget =
nullptr
;
12
13
public
:
14
VRouter
();
15
VRouter
(
List
children);
16
VRouter
*
Add
(QWidget *w)
override
;
17
18
void
Show
(QWidget *w);
19
20
private
:
21
QWidget *emptyWidget();
22
};
AbstractWidgetGroup.h
VContainer.h
AbstractWidgetGroup
Provides an interface that standardizes widget grouping classes.
Definition:
AbstractWidgetGroup.h:10
AbstractWidgetGroup< VRouter, QWidget >::List
std::initializer_list< QWidget * > List
Definition:
AbstractWidgetGroup.h:15
VContainer
Definition:
VContainer.h:5
VRouter
Definition:
VRouter.h:7
VRouter::Add
VRouter * Add(QWidget *w) override
Adds a widget.
VRouter::Show
void Show(QWidget *w)
VRouter::VRouter
VRouter(List children)
VRouter::VRouter
VRouter()
Generated by
1.9.6