<widget class="QPushButton" name="pushButton_nav">
<property name="geometry">
<rect>
- <x>110</x>
+ <x>160</x>
<y>10</y>
<width>40</width>
<height>40</height>
</size>
</property>
</widget>
+ <widget class="QPushButton" name="pushButton_empty">
+ <property name="geometry">
+ <rect>
+ <x>110</x>
+ <y>10</y>
+ <width>40</width>
+ <height>40</height>
+ </rect>
+ </property>
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">background-image: url(:/images/transparency.png);
+border-image: url(:/images/transparency.png);</string>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pushButton_media">
+ <property name="geometry">
+ <rect>
+ <x>210</x>
+ <y>10</y>
+ <width>40</width>
+ <height>40</height>
+ </rect>
+ </property>
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">background-image: url(:/images/transparency.png);
+border-image: url(:/images/transparency.png);</string>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="homescreen.qrc">
+ <normaloff>:/icons/media_day.png</normaloff>:/icons/media_day.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>40</width>
+ <height>40</height>
+ </size>
+ </property>
+ </widget>
</widget>
</widget>
<resources>
<file alias="icons/settings_night.png">images/icons/Black/45.Settings.png</file>
<file alias="icons/explore_day.png">images/icons/White/47.Explore.png</file>
<file alias="icons/explore_night.png">images/icons/Black/47.Explore.png</file>
+ <file alias="icons/media_day.png">images/icons/White/21.Music.png</file>
+ <file alias="icons/media_night.png">images/icons/Black/21.Music.png</file>
<file>translations/homescreen_de_DE.qm</file>
<file>translations/homescreen_en_US.qm</file>
<file>translations/homescreen_ja_JP.qm</file>
{
mp_dBusInputEventProxy->hardKeyPressed(InputEvent::HARDKEY_NAV);
}
+
+void ControlBarWidget::on_pushButton_media_clicked()
+{
+ mp_dBusInputEventProxy->hardKeyPressed(InputEvent::HARDKEY_MEDIA);
+}
void on_pushButton_settings_clicked();
void on_pushButton_nav_clicked();
+ void on_pushButton_media_clicked();
+
private:
Ui::ControlBarWidget *mp_ui;
org::agl::inputevent *mp_dBusInputEventProxy;
{
case InputEvent::HARDKEY_NAV:
qDebug("hardKeyPressed NAV key pressed!");
- pid = mp_dBusAppFrameworkProxy->launchApp("demoapp");
+ pid = mp_dBusAppFrameworkProxy->launchApp("nav@0.1");
+ qDebug("pid: %d", pid);
+ newRequestsToBeVisibleApp(pid);
+ break;
+ case InputEvent::HARDKEY_MEDIA:
+ qDebug("hardKeyPressed MEDIA key pressed!");
+ pid = mp_dBusAppFrameworkProxy->launchApp("media@0.1");
qDebug("pid: %d", pid);
newRequestsToBeVisibleApp(pid);
break;
mp_dBusHomeScreenProxy->hardKeyPressed(key);
qDebug("hardKeyPressed NAV key pressed!");
break;
+ case InputEvent::HARDKEY_MEDIA:
+ mp_dBusHomeScreenProxy->hardKeyPressed(key);
+ qDebug("hardKeyPressed MEDIA key pressed!");
+ break;
default:
qDebug("hardKeyPressed %d", key);
break;
if (ILM_NOTIFICATION_VISIBILITY & mask)
{
qDebug("ILM_NOTIFICATION_VISIBILITY");
- surfaceVisibilityChanged(surface, surfaceProperties.visibility);
+ surfaceVisibilityChanged(surface, surfaceProperties->visibility);
}
if (ILM_NOTIFICATION_OPACITY & mask)
{
typedef enum HardKey
{
HARDKEY_UNDEFINED,
- HARDKEY_NAV
+ HARDKEY_NAV,
+ HARDKEY_MEDIA
} eHardKey;
}