IOT dashboard: Add more dummy pages
This commit is contained in:
parent
39d75edda0
commit
c904f33cf1
|
@ -0,0 +1,21 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#include "DevicesPage.h"
|
||||||
|
|
||||||
|
#include <QskSkin.h>
|
||||||
|
#include <QskTextLabel.h>
|
||||||
|
|
||||||
|
QSK_SUBCONTROL( DevicesPage, Panel )
|
||||||
|
|
||||||
|
DevicesPage::DevicesPage( QQuickItem* parent )
|
||||||
|
: QskLinearBox( Qt::Vertical, parent )
|
||||||
|
{
|
||||||
|
auto* const textLabel = new QskTextLabel( "devices page", this );
|
||||||
|
textLabel->setAlignmentHint( QskTextLabel::Text, Qt::AlignCenter );
|
||||||
|
textLabel->setFontRole( QskSkin::HugeFont );
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "moc_DevicesPage.cpp"
|
|
@ -0,0 +1,19 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QskGridBox.h>
|
||||||
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
class DevicesPage : public QskLinearBox
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
QSK_SUBCONTROLS( Panel )
|
||||||
|
|
||||||
|
DevicesPage( QQuickItem* parent );
|
||||||
|
};
|
|
@ -1,8 +1,12 @@
|
||||||
#include "MainItem.h"
|
#include "MainItem.h"
|
||||||
|
|
||||||
#include "DashboardPage.h"
|
#include "DashboardPage.h"
|
||||||
|
#include "DevicesPage.h"
|
||||||
#include "MenuBar.h"
|
#include "MenuBar.h"
|
||||||
|
#include "MembersPage.h"
|
||||||
#include "RoomsPage.h"
|
#include "RoomsPage.h"
|
||||||
|
#include "StatisticsPage.h"
|
||||||
|
#include "StoragePage.h"
|
||||||
|
|
||||||
#include <QskGesture.h>
|
#include <QskGesture.h>
|
||||||
#include <QskEvent.h>
|
#include <QskEvent.h>
|
||||||
|
@ -108,9 +112,17 @@ MainItem::MainItem( QQuickItem* parent )
|
||||||
|
|
||||||
auto* const dashboardPage = new DashboardPage( m_cube );
|
auto* const dashboardPage = new DashboardPage( m_cube );
|
||||||
auto* const roomsPage = new RoomsPage( m_cube );
|
auto* const roomsPage = new RoomsPage( m_cube );
|
||||||
|
auto* const devicesPage = new DevicesPage( m_cube );
|
||||||
|
auto* const statisticsPage = new StatisticsPage( m_cube );
|
||||||
|
auto* const storagePage = new StoragePage( m_cube );
|
||||||
|
auto* const membersPage = new MembersPage( m_cube );
|
||||||
|
|
||||||
m_cube->addItem( dashboardPage );
|
m_cube->addItem( dashboardPage );
|
||||||
m_cube->addItem( roomsPage );
|
m_cube->addItem( roomsPage );
|
||||||
|
m_cube->addItem( devicesPage );
|
||||||
|
m_cube->addItem( statisticsPage );
|
||||||
|
m_cube->addItem( storagePage );
|
||||||
|
m_cube->addItem( membersPage );
|
||||||
|
|
||||||
m_cube->setCurrentItem( dashboardPage );
|
m_cube->setCurrentItem( dashboardPage );
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#include "MembersPage.h"
|
||||||
|
|
||||||
|
#include <QskSkin.h>
|
||||||
|
#include <QskTextLabel.h>
|
||||||
|
|
||||||
|
QSK_SUBCONTROL( MembersPage, Panel )
|
||||||
|
|
||||||
|
MembersPage::MembersPage( QQuickItem* parent )
|
||||||
|
: QskLinearBox( Qt::Vertical, parent )
|
||||||
|
{
|
||||||
|
auto* const textLabel = new QskTextLabel( "members page", this );
|
||||||
|
textLabel->setAlignmentHint( QskTextLabel::Text, Qt::AlignCenter );
|
||||||
|
textLabel->setFontRole( QskSkin::HugeFont );
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "moc_MembersPage.cpp"
|
|
@ -0,0 +1,19 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QskGridBox.h>
|
||||||
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
class MembersPage : public QskLinearBox
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
QSK_SUBCONTROLS( Panel )
|
||||||
|
|
||||||
|
MembersPage( QQuickItem* parent );
|
||||||
|
};
|
|
@ -65,7 +65,6 @@ void MenuBar::setActivePage( const int index )
|
||||||
{
|
{
|
||||||
m_entries.at( m_currentIndex )->setChecked( false );
|
m_entries.at( m_currentIndex )->setChecked( false );
|
||||||
m_currentIndex = index;
|
m_currentIndex = index;
|
||||||
m_entries.at( m_currentIndex )->setChecked( true );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "moc_MenuBar.cpp"
|
#include "moc_MenuBar.cpp"
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#include "StatisticsPage.h"
|
||||||
|
|
||||||
|
#include <QskSkin.h>
|
||||||
|
#include <QskTextLabel.h>
|
||||||
|
|
||||||
|
QSK_SUBCONTROL( StatisticsPage, Panel )
|
||||||
|
|
||||||
|
StatisticsPage::StatisticsPage( QQuickItem* parent )
|
||||||
|
: QskLinearBox( Qt::Vertical, parent )
|
||||||
|
{
|
||||||
|
auto* const textLabel = new QskTextLabel( "statistics page", this );
|
||||||
|
textLabel->setAlignmentHint( QskTextLabel::Text, Qt::AlignCenter );
|
||||||
|
textLabel->setFontRole( QskSkin::HugeFont );
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "moc_StatisticsPage.cpp"
|
|
@ -0,0 +1,19 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QskGridBox.h>
|
||||||
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
class StatisticsPage : public QskLinearBox
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
QSK_SUBCONTROLS( Panel )
|
||||||
|
|
||||||
|
StatisticsPage( QQuickItem* parent );
|
||||||
|
};
|
|
@ -0,0 +1,21 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#include "StoragePage.h"
|
||||||
|
|
||||||
|
#include <QskSkin.h>
|
||||||
|
#include <QskTextLabel.h>
|
||||||
|
|
||||||
|
QSK_SUBCONTROL( StoragePage, Panel )
|
||||||
|
|
||||||
|
StoragePage::StoragePage( QQuickItem* parent )
|
||||||
|
: QskLinearBox( Qt::Vertical, parent )
|
||||||
|
{
|
||||||
|
auto* const textLabel = new QskTextLabel( "storage page", this );
|
||||||
|
textLabel->setAlignmentHint( QskTextLabel::Text, Qt::AlignCenter );
|
||||||
|
textLabel->setFontRole( QskSkin::HugeFont );
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "moc_StoragePage.cpp"
|
|
@ -0,0 +1,19 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QskGridBox.h>
|
||||||
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
class StoragePage : public QskLinearBox
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
QSK_SUBCONTROLS( Panel )
|
||||||
|
|
||||||
|
StoragePage( QQuickItem* parent );
|
||||||
|
};
|
|
@ -6,6 +6,7 @@ SOURCES += \
|
||||||
CircularProgressBar.cpp \
|
CircularProgressBar.cpp \
|
||||||
CircularProgressBarSkinlet.cpp \
|
CircularProgressBarSkinlet.cpp \
|
||||||
DashboardPage.cpp \
|
DashboardPage.cpp \
|
||||||
|
DevicesPage.cpp \
|
||||||
Diagram.cpp \
|
Diagram.cpp \
|
||||||
DiagramSkinlet.cpp \
|
DiagramSkinlet.cpp \
|
||||||
EnergyMeter.cpp \
|
EnergyMeter.cpp \
|
||||||
|
@ -14,16 +15,19 @@ SOURCES += \
|
||||||
LightDisplaySkinlet.cpp \
|
LightDisplaySkinlet.cpp \
|
||||||
LightDisplay.cpp \
|
LightDisplay.cpp \
|
||||||
MainItem.cpp \
|
MainItem.cpp \
|
||||||
|
MainWindow.cpp \
|
||||||
MenuBar.cpp \
|
MenuBar.cpp \
|
||||||
|
MembersPage.cpp \
|
||||||
MyDevices.cpp \
|
MyDevices.cpp \
|
||||||
RoomsPage.cpp \
|
RoomsPage.cpp \
|
||||||
RoundedIcon.cpp \
|
RoundedIcon.cpp \
|
||||||
Skin.cpp \
|
Skin.cpp \
|
||||||
|
StatisticsPage.cpp \
|
||||||
|
StoragePage.cpp \
|
||||||
TopBar.cpp \
|
TopBar.cpp \
|
||||||
RoundButton.cpp \
|
RoundButton.cpp \
|
||||||
UsageBox.cpp \
|
UsageBox.cpp \
|
||||||
UsageDiagram.cpp \
|
UsageDiagram.cpp \
|
||||||
MainWindow.cpp \
|
|
||||||
main.cpp \
|
main.cpp \
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
|
@ -44,13 +48,17 @@ HEADERS += \
|
||||||
LightDisplaySkinlet.h \
|
LightDisplaySkinlet.h \
|
||||||
LightDisplay.h \
|
LightDisplay.h \
|
||||||
DashboardPage.h \
|
DashboardPage.h \
|
||||||
|
DevicesPage.h \
|
||||||
MainItem.h \
|
MainItem.h \
|
||||||
MainWindow.h \
|
MainWindow.h \
|
||||||
|
MembersPage.h \
|
||||||
MenuBar.h \
|
MenuBar.h \
|
||||||
MyDevices.h \
|
MyDevices.h \
|
||||||
RoomsPage.h \
|
RoomsPage.h \
|
||||||
RoundedIcon.h \
|
RoundedIcon.h \
|
||||||
Skin.h \
|
Skin.h \
|
||||||
|
StatisticsPage.h \
|
||||||
|
StoragePage.h \
|
||||||
TopBar.h \
|
TopBar.h \
|
||||||
RoundButton.h \
|
RoundButton.h \
|
||||||
UsageBox.h \
|
UsageBox.h \
|
||||||
|
|
Loading…
Reference in New Issue