diff options
author | Bocklage, Jens <Jens_Bocklage@mentor.com> | 2016-08-05 19:42:52 +0200 |
---|---|---|
committer | Bocklage, Jens <Jens_Bocklage@mentor.com> | 2016-08-05 19:42:52 +0200 |
commit | 0a468d9b5ae7b3e5ba106facf17698d89b1ce200 (patch) | |
tree | 4b4b2a336802816522ef7bafd8d49cb6d6a6e67f /HomeScreenSimulator/src | |
parent | 3478f65b39560b333ba189e7d86e2c2cebfc9c7a (diff) |
Using the Tizen application manager to receive information about installed apps and to launch apps.v0.2.0
This acts as a template for other app framework adoptions.
Using the weston ivi shell to control surfaces.
Using the input event manager to dispatch hard key inputs.
This is a bigger update, so I increased the version number from 0.1.1 to 0.2.0.
Some parts are under development.
I created the components "WindowsManager" and "InputEventManager" because they are not defined in AGL right now.
As soon as they are defined, we should switch to them.
Find more information on the official wiki page:
https://wiki.automotivelinux.org/homescreen
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'HomeScreenSimulator/src')
-rw-r--r-- | HomeScreenSimulator/src/main.cpp | 7 | ||||
-rw-r--r-- | HomeScreenSimulator/src/mainwindow.cpp | 5 | ||||
-rw-r--r-- | HomeScreenSimulator/src/mainwindow.h | 4 |
3 files changed, 9 insertions, 7 deletions
diff --git a/HomeScreenSimulator/src/main.cpp b/HomeScreenSimulator/src/main.cpp index 921c4eb..5a165f8 100644 --- a/HomeScreenSimulator/src/main.cpp +++ b/HomeScreenSimulator/src/main.cpp @@ -36,16 +36,11 @@ int main(int argc, char *argv[]) QCoreApplication::setOrganizationDomain("LinuxFoundation"); QCoreApplication::setOrganizationName("AutomotiveGradeLinux"); QCoreApplication::setApplicationName("HomeScreenSimulator"); - QCoreApplication::setApplicationVersion("0.1.1"); + QCoreApplication::setApplicationVersion("0.2.0"); MainWindow w; w.show(); - // TODO: input handling not defined right now... - /*InputEventDistributor *mp_inputEventDistributor; - mp_inputEventDistributor = new InputEventDistributor();*/ - - // start input and system settings simulator on developer PCs #ifdef __arm__ qDebug("Running on ARM architecture"); diff --git a/HomeScreenSimulator/src/mainwindow.cpp b/HomeScreenSimulator/src/mainwindow.cpp index ffc5170..74c02d7 100644 --- a/HomeScreenSimulator/src/mainwindow.cpp +++ b/HomeScreenSimulator/src/mainwindow.cpp @@ -144,3 +144,8 @@ void MainWindow::on_pushButton_IconExample_clicked() // Home Screen app resources... mp_ui->tableWidget_Status->setItem(0, 2, new QTableWidgetItem(":/icons/home_day.png")); } + +void MainWindow::on_pushButton_PopupExample_clicked() +{ + mp_dBusPopupProxy->showPopup(0, "Hello Popup!\nNice to see you!"); +} diff --git a/HomeScreenSimulator/src/mainwindow.h b/HomeScreenSimulator/src/mainwindow.h index 2eb6e11..7c2f19b 100644 --- a/HomeScreenSimulator/src/mainwindow.h +++ b/HomeScreenSimulator/src/mainwindow.h @@ -18,7 +18,7 @@ #define MAINWINDOW_H #include <QMainWindow> -#include "../interfaces/daynightmode.h" +#include <include/daynightmode.hpp> #include "daynightmode_adapter.h" #include "statusbar_proxy.h" @@ -55,6 +55,8 @@ private slots: void on_pushButton_IconExample_clicked(); + void on_pushButton_PopupExample_clicked(); + private: Ui::MainWindow *mp_ui; DaynightmodeAdaptor *mp_dBusDayNightModeAdapter; |