diff options
Diffstat (limited to 'weather-qml/build')
-rwxr-xr-x | weather-qml/build/build.pro | 18 | ||||
-rwxr-xr-x | weather-qml/build/main.cpp | 19 | ||||
-rwxr-xr-x | weather-qml/build/mainwindow.cpp | 49 | ||||
-rwxr-xr-x | weather-qml/build/mainwindow.h | 22 | ||||
-rw-r--r-- | weather-qml/build/resource_n900.qrc | 137 | ||||
-rw-r--r-- | weather-qml/build/resource_s60.qrc | 129 |
6 files changed, 374 insertions, 0 deletions
diff --git a/weather-qml/build/build.pro b/weather-qml/build/build.pro new file mode 100755 index 0000000..58daaab --- /dev/null +++ b/weather-qml/build/build.pro @@ -0,0 +1,18 @@ +TEMPLATE = app + +QT += network xml declarative + +maemo5 || unix { + TARGET = ../weatherqml + RESOURCES += resource_n900.qrc +} + +symbian { + TARGET = Weather + LIBS += -lesock -lconnmon -lcone -lavkon + ICON += ../icons/weatherqml.svg + RESOURCES += resource_s60.qrc +} + +HEADERS += mainwindow.h +SOURCES += main.cpp mainwindow.cpp diff --git a/weather-qml/build/main.cpp b/weather-qml/build/main.cpp new file mode 100755 index 0000000..9e3d7ad --- /dev/null +++ b/weather-qml/build/main.cpp @@ -0,0 +1,19 @@ +#include <QApplication> + +#include "mainwindow.h" + + +int main(int argc, char **argv) +{ + QApplication app(argc, argv); + + MainWindow view; + +#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) + view.showFullScreen(); +#else + view.show(); +#endif + + return app.exec(); +} diff --git a/weather-qml/build/mainwindow.cpp b/weather-qml/build/mainwindow.cpp new file mode 100755 index 0000000..9e9659c --- /dev/null +++ b/weather-qml/build/mainwindow.cpp @@ -0,0 +1,49 @@ +#include "mainwindow.h" + +#include <QApplication> +#include <QDeclarativeEngine> + +#if defined(Q_OS_SYMBIAN) +#include <QTimer> +#include <eikenv.h> +#include <coemain.h> +#include <aknappui.h> +#endif + +MainWindow::MainWindow() + : QDeclarativeView() +{ +#if defined(Q_OS_SYMBIAN) + QUrl mainqml("qrc:main_s60.qml"); +#else + QUrl mainqml("qrc:main_n900.qml"); +#endif + setSource(mainqml); + + setWindowTitle("Weather QML"); + + connect(engine(), SIGNAL(quit()), qApp, SLOT(quit())); + + m_isPortrait = true; + +#if defined(Q_OS_SYMBIAN) + QTimer::singleShot(0, this, SLOT(lockViewMode())); +#elif defined(Q_WS_MAEMO_5) + setAttribute(Qt::WA_Maemo5PortraitOrientation, true); +#endif +} + +#if defined(Q_OS_SYMBIAN) +void MainWindow::lockViewMode() +{ + CAknAppUi *aknAppUi = dynamic_cast<CAknAppUi *>(CEikonEnv::Static()->AppUi()); + + if (!aknAppUi) + return; + + if (m_isPortrait) + aknAppUi->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait); + else + aknAppUi->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape); +} +#endif diff --git a/weather-qml/build/mainwindow.h b/weather-qml/build/mainwindow.h new file mode 100755 index 0000000..8e92912 --- /dev/null +++ b/weather-qml/build/mainwindow.h @@ -0,0 +1,22 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <QDeclarativeView> + +class MainWindow : public QDeclarativeView +{ + Q_OBJECT + +public: + MainWindow(); + +protected slots: +#ifdef Q_OS_SYMBIAN + void lockViewMode(); +#endif + +private: + bool m_isPortrait; +}; + +#endif diff --git a/weather-qml/build/resource_n900.qrc b/weather-qml/build/resource_n900.qrc new file mode 100644 index 0000000..252ff93 --- /dev/null +++ b/weather-qml/build/resource_n900.qrc @@ -0,0 +1,137 @@ +<RCC> +<qresource prefix="/"> + <file>../content/Throbber.qml</file> + <file>../content/SplashScreen.qml</file> + <file>../content/CityModel.qml</file> + <file>../content/ForecastView.qml</file> + <file>../content/WeatherView.qml</file> + <file>../content/CityPanel.qml</file> + <file>../content/images/n900/cloud_tstorm_2.png</file> + <file>../content/images/n900/loading_15.png</file> + <file>../content/images/n900/title_bar.png</file> + <file>../content/images/n900/bg_night_clear.png</file> + <file>../content/images/n900/sun_line.png</file> + <file>../content/images/n900/cloud_rain_3_line.png</file> + <file>../content/images/n900/snow_flake_08.png</file> + <file>../content/images/n900/cloud_2.png</file> + <file>../content/images/n900/icon_min.png</file> + <file>../content/images/n900/snow_flake_06.png</file> + <file>../content/images/n900/cloud_3.png</file> + <file>../content/images/n900/thunder.png</file> + <file>../content/images/n900/fog.png</file> + <file>../content/images/n900/bg_day_rain.png</file> + <file>../content/images/n900/bg_loading.png</file> + <file>../content/images/n900/star_01.png</file> + <file>../content/images/n900/loading_14.png</file> + <file>../content/images/n900/moon.png</file> + <file>../content/images/n900/snow_flake_07.png</file> + <file>../content/images/n900/loading_4.png</file> + <file>../content/images/n900/loading_6.png</file> + <file>../content/images/n900/bg_bottom_options.png</file> + <file>../content/images/n900/snow_flake.png</file> + <file>../content/images/n900/cloud_rain_1.png</file> + <file>../content/images/n900/cloud_rain_3.png</file> + <file>../content/images/n900/rain_01.png</file> + <file>../content/images/n900/background_add_city.png</file> + <file>../content/images/n900/centigrades.png</file> + <file>../content/images/n900/storm_03.png</file> + <file>../content/images/n900/scroll.png</file> + <file>../content/images/n900/rain_03.png</file> + <file>../content/images/n900/snow_flake_02.png</file> + <file>../content/images/n900/loading_17.png</file> + <file>../content/images/n900/loading_22.png</file> + <file>../content/images/n900/haze.png</file> + <file>../content/images/n900/cloud_2_line.png</file> + <file>../content/images/n900/loading_8.png</file> + <file>../content/images/n900/bg_day_clear.png</file> + <file>../content/images/n900/cloud_tstorm_2_line.png</file> + <file>../content/images/n900/snow_flake_09.png</file> + <file>../content/images/n900/snow_flake_05.png</file> + <file>../content/images/n900/loading_9.png</file> + <file>../content/images/n900/list_item_selected_bg.png</file> + <file>../content/images/n900/loading_10.png</file> + <file>../content/images/n900/umbrella.png</file> + <file>../content/images/n900/list_item_bg.png</file> + <file>../content/images/n900/icon_max.png</file> + <file>../content/images/n900/list_check.png</file> + <file>../content/images/n900/scroll_knob.png</file> + <file>../content/images/n900/button_softkey_right.png</file> + <file>../content/images/n900/star_02.png</file> + <file>../content/images/n900/loading_12.png</file> + <file>../content/images/n900/division_line.png</file> + <file>../content/images/n900/cloud_rain_2.png</file> + <file>../content/images/n900/cloud_storm_3.png</file> + <file>../content/images/n900/cloud_storm_2.png</file> + <file>../content/images/n900/cloud_rain_1_line.png</file> + <file>../content/images/n900/star_03.png</file> + <file>../content/images/n900/loading_16.png</file> + <file>../content/images/n900/rain_02.png</file> + <file>../content/images/n900/sun.png</file> + <file>../content/images/n900/storm_02.png</file> + <file>../content/images/n900/cloud_tstorm_1_line.png</file> + <file>../content/images/n900/storm_05.png</file> + <file>../content/images/n900/list_top.png</file> + <file>../content/images/n900/loading_20.png</file> + <file>../content/images/n900/cloud_1_line.png</file> + <file>../content/images/n900/bg_day_heavyrain.png</file> + <file>../content/images/n900/storm_01.png</file> + <file>../content/images/n900/snow_flake_01.png</file> + <file>../content/images/n900/snow_flake_03.png</file> + <file>../content/images/n900/cloud_3_line.png</file> + <file>../content/images/n900/loading_19.png</file> + <file>../content/images/n900/loading_23.png</file> + <file>../content/images/n900/cold_sun.png</file> + <file>../content/images/n900/moon_line.png</file> + <file>../content/images/n900/city_name_background_bigger.png</file> + <file>../content/images/n900/loading_11.png</file> + <file>../content/images/n900/cloud_storm_2_line.png</file> + <file>../content/images/n900/loading_25.png</file> + <file>../content/images/n900/storm_04.png</file> + <file>../content/images/n900/textfield_add_city.png</file> + <file>../content/images/n900/cold_sun_line.png</file> + <file>../content/images/n900/loading_1.png</file> + <file>../content/images/n900/loading_21.png</file> + <file>../content/images/n900/button_softkey_left.png</file> + <file>../content/images/n900/loading_13.png</file> + <file>../content/images/n900/loading_3.png</file> + <file>../content/images/n900/button_close.png</file> + <file>../content/images/n900/loading_18.png</file> + <file>../content/images/n900/cloud_tstorm_1.png</file> + <file>../content/images/n900/city_panel_bg.png</file> + <file>../content/images/n900/cloud_storm_3_line.png</file> + <file>../content/images/n900/cloud_rain_2_line.png</file> + <file>../content/images/n900/loading_5.png</file> + <file>../content/images/n900/cloud_storm_1_line.png</file> + <file>../content/images/n900/background_error_adding.png</file> + <file>../content/images/n900/snow_flake_04.png</file> + <file>../content/images/n900/loading_2.png</file> + <file>../content/images/n900/minus_sign.png</file> + <file>../content/images/n900/button_city_send.png</file> + <file>../content/images/n900/cloud_1.png</file> + <file>../content/images/n900/loading_7.png</file> + <file>../content/images/n900/loading_24.png</file> + <file>../content/images/n900/bg_night_rain.png</file> + <file>../content/images/n900/button_list_delete.png</file> + <file>../content/images/n900/cloud_storm_1.png</file> + <file>../content/ScrollBar.qml</file> + <file>../content/forecasts/MostlySunny.qml</file> + <file>../content/forecasts/elements/MediumCloud.qml</file> + <file>../content/forecasts/elements/LargeCloud.qml</file> + <file>../content/forecasts/elements/ForecastLabel.qml</file> + <file>../content/forecasts/elements/SmallCloud.qml</file> + <file>../content/forecasts/elements/HungItem.qml</file> + <file>../content/forecasts/elements/RainItem.qml</file> + <file>../content/forecasts/Haze.qml</file> + <file>../content/forecasts/Mist.qml</file> + <file>../content/forecasts/Sunny.qml</file> + <file>../content/forecasts/UnknownForecast.qml</file> + <file>../content/forecasts/Thunderstorm.qml</file> + <file>../content/forecasts/MostlyCloudy.qml</file> + <file>../content/forecasts/Rain.qml</file> + <file>../content/forecasts/PartlyCloudy.qml</file> + <file>../content/forecasts/Cloudy.qml</file> + <file>../content/forecasts/Storm.qml</file> + <file>../content/forecasts/Fog.qml</file> + <file>../main_n900.qml</file> +</qresource> +</RCC> diff --git a/weather-qml/build/resource_s60.qrc b/weather-qml/build/resource_s60.qrc new file mode 100644 index 0000000..138eabc --- /dev/null +++ b/weather-qml/build/resource_s60.qrc @@ -0,0 +1,129 @@ +<RCC> +<qresource prefix="/"> + <file>../content/Throbber.qml</file> + <file>../content/SplashScreen.qml</file> + <file>../content/CityModel.qml</file> + <file>../content/ForecastView.qml</file> + <file>../content/WeatherView.qml</file> + <file>../content/CityPanel.qml</file> + <file>../content/images/s60/cloud_tstorm_2.png</file> + <file>../content/images/s60/loading_15.png</file> + <file>../content/images/s60/bg_night_clear.png</file> + <file>../content/images/s60/sun_line.png</file> + <file>../content/images/s60/cloud_rain_3_line.png</file> + <file>../content/images/s60/mist_03.png</file> + <file>../content/images/s60/cloud_2.png</file> + <file>../content/images/s60/icon_min.png</file> + <file>../content/images/s60/cloud_3.png</file> + <file>../content/images/s60/thunder.png</file> + <file>../content/images/s60/fog.png</file> + <file>../content/images/s60/bg_day_rain.png</file> + <file>../content/images/s60/bg_loading.png</file> + <file>../content/images/s60/star_01.png</file> + <file>../content/images/s60/loading_14.png</file> + <file>../content/images/s60/moon.png</file> + <file>../content/images/s60/loading_4.png</file> + <file>../content/images/s60/loading_6.png</file> + <file>../content/images/s60/na_icon_line.png</file> + <file>../content/images/s60/bg_bottom_options.png</file> + <file>../content/images/s60/cloud_rain_1.png</file> + <file>../content/images/s60/cloud_rain_3.png</file> + <file>../content/images/s60/rain_01.png</file> + <file>../content/images/s60/centigrades.png</file> + <file>../content/images/s60/storm_03.png</file> + <file>../content/images/s60/scroll.png</file> + <file>../content/images/s60/rain_03.png</file> + <file>../content/images/s60/loading_17.png</file> + <file>../content/images/s60/loading_22.png</file> + <file>../content/images/s60/haze.png</file> + <file>../content/images/s60/cloud_2_line.png</file> + <file>../content/images/s60/loading_8.png</file> + <file>../content/images/s60/bt_options_bg.png</file> + <file>../content/images/s60/bg_day_clear.png</file> + <file>../content/images/s60/cloud_tstorm_2_line.png</file> + <file>../content/images/s60/loading_9.png</file> + <file>../content/images/s60/list_item_selected_bg.png</file> + <file>../content/images/s60/mist_04.png</file> + <file>../content/images/s60/loading_10.png</file> + <file>../content/images/s60/umbrella.png</file> + <file>../content/images/s60/list_item_bg.png</file> + <file>../content/images/s60/icon_max.png</file> + <file>../content/images/s60/scroll_knob.png</file> + <file>../content/images/s60/na_icon.png</file> + <file>../content/images/s60/star_02.png</file> + <file>../content/images/s60/loading_12.png</file> + <file>../content/images/s60/division_line.png</file> + <file>../content/images/s60/cloud_rain_2.png</file> + <file>../content/images/s60/cloud_storm_3.png</file> + <file>../content/images/s60/cloud_storm_2.png</file> + <file>../content/images/s60/cloud_rain_1_line.png</file> + <file>../content/images/s60/star_03.png</file> + <file>../content/images/s60/loading_16.png</file> + <file>../content/images/s60/rain_02.png</file> + <file>../content/images/s60/sun.png</file> + <file>../content/images/s60/storm_02.png</file> + <file>../content/images/s60/cloud_tstorm_1_line.png</file> + <file>../content/images/s60/storm_05.png</file> + <file>../content/images/s60/list_top.png</file> + <file>../content/images/s60/loading_20.png</file> + <file>../content/images/s60/cloud_1_line.png</file> + <file>../content/images/s60/bg_day_heavyrain.png</file> + <file>../content/images/s60/storm_01.png</file> + <file>../content/images/s60/cloud_3_line.png</file> + <file>../content/images/s60/loading_19.png</file> + <file>../content/images/s60/loading_23.png</file> + <file>../content/images/s60/cold_sun.png</file> + <file>../content/images/s60/moon_line.png</file> + <file>../content/images/s60/city_name_background_bigger.png</file> + <file>../content/images/s60/list_item_pressed_bg.png</file> + <file>../content/images/s60/loading_11.png</file> + <file>../content/images/s60/cloud_storm_2_line.png</file> + <file>../content/images/s60/loading_25.png</file> + <file>../content/images/s60/storm_04.png</file> + <file>../content/images/s60/mist_05.png</file> + <file>../content/images/s60/cold_sun_line.png</file> + <file>../content/images/s60/loading_1.png</file> + <file>../content/images/s60/rain_04.png</file> + <file>../content/images/s60/loading_21.png</file> + <file>../content/images/s60/loading_13.png</file> + <file>../content/images/s60/loading_3.png</file> + <file>../content/images/s60/mist_01.png</file> + <file>../content/images/s60/loading_18.png</file> + <file>../content/images/s60/cloud_tstorm_1.png</file> + <file>../content/images/s60/city_panel_bg.png</file> + <file>../content/images/s60/cloud_storm_3_line.png</file> + <file>../content/images/s60/cloud_rain_2_line.png</file> + <file>../content/images/s60/loading_5.png</file> + <file>../content/images/s60/cloud_storm_1_line.png</file> + <file>../content/images/s60/mist_02.png</file> + <file>../content/images/s60/rain_05.png</file> + <file>../content/images/s60/loading_2.png</file> + <file>../content/images/s60/minus_sign.png</file> + <file>../content/images/s60/cloud_1.png</file> + <file>../content/images/s60/loading_7.png</file> + <file>../content/images/s60/loading_24.png</file> + <file>../content/images/s60/bg_night_rain.png</file> + <file>../content/images/s60/button_list_delete.png</file> + <file>../content/images/s60/cloud_storm_1.png</file> + <file>../content/ScrollBar.qml</file> + <file>../content/forecasts/MostlySunny.qml</file> + <file>../content/forecasts/elements/MediumCloud.qml</file> + <file>../content/forecasts/elements/LargeCloud.qml</file> + <file>../content/forecasts/elements/ForecastLabel.qml</file> + <file>../content/forecasts/elements/SmallCloud.qml</file> + <file>../content/forecasts/elements/HungItem.qml</file> + <file>../content/forecasts/elements/RainItem.qml</file> + <file>../content/forecasts/Haze.qml</file> + <file>../content/forecasts/Mist.qml</file> + <file>../content/forecasts/Sunny.qml</file> + <file>../content/forecasts/UnknownForecast.qml</file> + <file>../content/forecasts/Thunderstorm.qml</file> + <file>../content/forecasts/MostlyCloudy.qml</file> + <file>../content/forecasts/Rain.qml</file> + <file>../content/forecasts/PartlyCloudy.qml</file> + <file>../content/forecasts/Cloudy.qml</file> + <file>../content/forecasts/Storm.qml</file> + <file>../content/forecasts/Fog.qml</file> + <file>../main_s60.qml</file> +</qresource> +</RCC> |