From cf8cd699e91df40c3f9070019f7c561432b4b4dd Mon Sep 17 00:00:00 2001 From: "Bocklage, Jens" Date: Fri, 30 Sep 2016 14:31:09 +0200 Subject: Implementing app launch and app surface control workflow. Using WindowManager to control layer and surfaces (ongoing). Defining three layouts. Adding combobox selection feature to popup widget. Known issue: IVI-shell is currently disabled in AGL due to issues (porting to Yocto 2.1.1). Signed-off-by: Bocklage, Jens --- HomeScreenSimulator/src/main.cpp | 3 +-- HomeScreenSimulator/src/mainwindow.cpp | 10 ++++++++++ HomeScreenSimulator/src/mainwindow.h | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) (limited to 'HomeScreenSimulator/src') diff --git a/HomeScreenSimulator/src/main.cpp b/HomeScreenSimulator/src/main.cpp index 5a165f8..00c7ac2 100644 --- a/HomeScreenSimulator/src/main.cpp +++ b/HomeScreenSimulator/src/main.cpp @@ -36,12 +36,11 @@ int main(int argc, char *argv[]) QCoreApplication::setOrganizationDomain("LinuxFoundation"); QCoreApplication::setOrganizationName("AutomotiveGradeLinux"); QCoreApplication::setApplicationName("HomeScreenSimulator"); - QCoreApplication::setApplicationVersion("0.2.0"); + QCoreApplication::setApplicationVersion("0.3.0"); MainWindow w; w.show(); - // start input and system settings simulator on developer PCs #ifdef __arm__ qDebug("Running on ARM architecture"); #endif diff --git a/HomeScreenSimulator/src/mainwindow.cpp b/HomeScreenSimulator/src/mainwindow.cpp index 74c02d7..d670154 100644 --- a/HomeScreenSimulator/src/mainwindow.cpp +++ b/HomeScreenSimulator/src/mainwindow.cpp @@ -149,3 +149,13 @@ void MainWindow::on_pushButton_PopupExample_clicked() { mp_dBusPopupProxy->showPopup(0, "Hello Popup!\nNice to see you!"); } + +void MainWindow::on_pushButton_comboBoxExample_clicked() +{ + QStringList choices; + choices.append("Item1"); + choices.append("Item2"); + choices.append("Item3"); + choices.append("Item4"); + mp_dBusPopupProxy->showPopupComboBox("Make your choice!", choices); +} diff --git a/HomeScreenSimulator/src/mainwindow.h b/HomeScreenSimulator/src/mainwindow.h index 7c2f19b..dd412a3 100644 --- a/HomeScreenSimulator/src/mainwindow.h +++ b/HomeScreenSimulator/src/mainwindow.h @@ -57,6 +57,8 @@ private slots: void on_pushButton_PopupExample_clicked(); + void on_pushButton_comboBoxExample_clicked(); + private: Ui::MainWindow *mp_ui; DaynightmodeAdaptor *mp_dBusDayNightModeAdapter; -- cgit 1.2.3-korg