Skip to content

Commit

Permalink
Better open single picture
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 committed Oct 21, 2015
1 parent eb3aded commit a44ed6f
Show file tree
Hide file tree
Showing 23 changed files with 188 additions and 422 deletions.
5 changes: 1 addition & 4 deletions Documentation/My_Skate_Map_stralciata.kml
Original file line number Diff line number Diff line change
Expand Up @@ -367,16 +367,13 @@ http://lh4.ggpht.com/_NFj9nTnRuuA/THlMnExCTOI/AAAAAAAAAN8/oyB0plBcpp0/s144/DSC00
<![CDATA[From Drop Box (http://picasaweb.google.ch/lombardi.damiano/DropBox?authkey=Gv1sRgCNLegZrLgK6TpwE&feat=embedwebsite)]]>
6.659367,46.831279

Coira - Banca
9.528907,46.851196

Coira - Bank gigante
9.508753,46.861453

Coira - Curb in salita
9.519299000000002,46.851453

Coira - Curb storto
Coira - Curb storto che non è piu storto
9.530125,46.85117400000001

Coira - Minihip
Expand Down
4 changes: 0 additions & 4 deletions MobileClient/QtProject/MobileClientQml.pro
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ SOURCES += src/cpp/main.cpp \
src/cpp/WebApi/WebApiError.cpp \
src/cpp/HelperClasses/Logger.cpp \
src/cpp/HelperClasses/StringHelper.cpp \
src/cpp/WebApi/NewsModel.cpp \
src/cpp/WebApi/PictureUploader.cpp \
src/cpp/WebApi/NearbySpotsModel.cpp \
src/cpp/HelperClasses/PlateformDetail.cpp \
src/cpp/HelperClasses/LocationManager.cpp \
src/cpp/HelperClasses/PictureCacher.cpp \
Expand Down Expand Up @@ -62,9 +60,7 @@ HEADERS += \
src/cpp/WebApi/WebApiError.h \
src/cpp/HelperClasses/Logger.h \
src/cpp/HelperClasses/StringHelper.h \
src/cpp/WebApi/NewsModel.h \
src/cpp/WebApi/PictureUploader.h \
src/cpp/WebApi/NearbySpotsModel.h \
src/cpp/HelperClasses/PlateformDetail.h \
src/cpp/HelperClasses/LocationManager.h \
src/cpp/HelperClasses/PictureCacher.h \
Expand Down
23 changes: 7 additions & 16 deletions MobileClient/QtProject/src/Panel_Home.qml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import QtQuick 2.3
import QtQuick.Controls 1.2

// Project c++ imports ---------------------
import NewsModel 1.0

// Project qml imports ---------------------
import "qrc:/"
Expand All @@ -23,17 +22,6 @@ import "qrc:/pages-spot/"

Item {

NewsModel{
id: newsModel
}

// Signals -----------------------------
Component.onCompleted:
{
newsModel.getNewestSpots();
}


// Gui ---------------------------------

Navigator{
Expand Down Expand Up @@ -67,12 +55,15 @@ Item {
}

initialItem: Page_PicturesList {
id: page_PicturesList
width : parent.width
height: parent.height

navigation_Title: qsTr("News")

model: newsModel
Component.onCompleted: {
model.getNewestSpots();
}

onUserClicked: {
stackView.push({item: Qt.resolvedUrl("qrc:/pages-user/Page_User.qml"),
Expand All @@ -88,10 +79,10 @@ Item {
stackView.push({item: Qt.resolvedUrl("qrc:/pages-spot/Page_Spot.qml"),
properties:{width : stackView.width,
height : stackView.height,
navigation_Title : spotName,
navigation_Title : spotName,
stackView : stackView,
navigator : navigator,
spotId : spotId}});
navigator : navigator}});
stackView.currentItem.model.getBy_SpotId(spotId);
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions MobileClient/QtProject/src/Panel_NearbySpots.qml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ import QtQuick 2.3
import QtQuick.Controls 1.2

// Project c++ imports ---------------------
import NearbySpotsModel 1.0
import SpotsModel 1.0

// Project qml imports ---------------------
import "qrc:/views"
import "qrc:/pages-spot"

Item {

NearbySpotsModel{
id: nearbySpotsModel
SpotsModel{
id: spotsModel
}

// Signals -----------------------------
Expand All @@ -39,7 +39,7 @@ Item {
// TODO display message cacca
}

nearbySpotsModel.setLocation(hc_LocationManager.latitude(),
spotsModel.setLocation(hc_LocationManager.latitude(),
hc_LocationManager.longitude(),
150);
}
Expand All @@ -51,7 +51,7 @@ Item {
return;

// Set current location (also if outdated)
nearbySpotsModel.setLocation(hc_LocationManager.latitude(),
spotsModel.setLocation(hc_LocationManager.latitude(),
hc_LocationManager.longitude(),
150);

Expand Down Expand Up @@ -93,16 +93,16 @@ Item {

navigation_Title: qsTr('Nearby spots')

model: nearbySpotsModel
model: spotsModel

onSpotClicked: {
stackView.push({item: Qt.resolvedUrl("qrc:/pages-spot/Page_Spot.qml"),
properties:{width : stackView.width,
height : stackView.height,
navigation_Title : spotName,
stackView : stackView,
navigator : navigator,
spotId : spotId}});
navigator : navigator}});
stackView.currentItem.model.getBy_SpotId(spotId);
}
}
}
Expand Down
98 changes: 0 additions & 98 deletions MobileClient/QtProject/src/cpp/WebApi/NearbySpotsModel.cpp

This file was deleted.

54 changes: 0 additions & 54 deletions MobileClient/QtProject/src/cpp/WebApi/NearbySpotsModel.h

This file was deleted.

90 changes: 0 additions & 90 deletions MobileClient/QtProject/src/cpp/WebApi/NewsModel.cpp

This file was deleted.

Loading

0 comments on commit a44ed6f

Please sign in to comment.