Skip to content

Commit

Permalink
Add onboarding (signup, ...) to main app
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Dec 21, 2023
1 parent 8f313be commit 79eded8
Show file tree
Hide file tree
Showing 31 changed files with 864 additions and 279 deletions.
2 changes: 2 additions & 0 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ set(MM_SRCS
layersproxymodel.cpp
main.cpp
mapthemesmodel.cpp
notificationmodel.cpp
projectsmodel.cpp
projectsproxymodel.cpp
projectwizard.cpp
Expand Down Expand Up @@ -146,6 +147,7 @@ set(MM_HDRS
layersmodel.h
layersproxymodel.h
mapthemesmodel.h
notificationmodel.h
projectsmodel.h
projectsproxymodel.h
projectwizard.h
Expand Down
26 changes: 26 additions & 0 deletions app/icons/WarnLogoImage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/icons/icons.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<file>WaterResources.svg</file>
<file>XMark.svg</file>
<file>XTwitter.svg</file>
<file>WarnLogoImage.svg</file>
<file>Youtube.svg</file>
<file>ZoomToProject.svg</file>
<file>Minus.svg</file>
Expand Down
5 changes: 4 additions & 1 deletion app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "qgsmaplayerproxymodel.h"
#include "qgsnetworkaccessmanager.h"
#include "geodiffutils.h"

#include "merginerrortypes.h"
#include "androidutils.h"
#include "ios/iosutils.h"
#include "inpututils.h"
Expand Down Expand Up @@ -71,6 +71,7 @@
#include "qgsvectorlayer.h"
#include "qgsunittypes.h"
#include "mmstyle.h"
#include "notificationmodel.h"

#include "rememberattributescontroller.h"
#include "attributecontroller.h"
Expand Down Expand Up @@ -498,6 +499,7 @@ int main( int argc, char *argv[] )
MerginProjectStatusModel mpsm( localProjectsManager );
InputHelp help( ma.get(), &iu );
ProjectWizard pw( projectDir );
NotificationModel notificationModel;

// layer models
LayersModel lm;
Expand Down Expand Up @@ -614,6 +616,7 @@ int main( int argc, char *argv[] )


// Register to QQmlEngine
engine.rootContext()->setContextProperty( "__notificationModel", &notificationModel );
engine.rootContext()->setContextProperty( "__androidUtils", &au );
engine.rootContext()->setContextProperty( "__iosUtils", &iosUtils );
engine.rootContext()->setContextProperty( "__inputUtils", &iu );
Expand Down
2 changes: 2 additions & 0 deletions app/mmstyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class MMStyle: public QObject
Q_PROPERTY( QUrl acceptInvitationLogoImage READ acceptInvitationLogoImage CONSTANT )
Q_PROPERTY( QUrl reachedDataLimitImage READ reachedDataLimitImage CONSTANT )
Q_PROPERTY( QUrl uploadImage READ uploadImage CONSTANT )
Q_PROPERTY( QUrl warnLogoImage READ warnLogoImage CONSTANT )

// Map items
Q_PROPERTY( double mapItemHeight READ mapItemHeight CONSTANT )
Expand Down Expand Up @@ -283,6 +284,7 @@ class MMStyle: public QObject
QUrl acceptInvitationImage() {return QUrl( "qrc:/AcceptInvitationImage.svg" ); }
QUrl uploadImage() {return QUrl( "qrc:/UploadImage.svg" );}
QUrl reachedDataLimitImage() {return QUrl( "qrc:/ReachedDataLimitImage.svg" );}
QUrl warnLogoImage() {return QUrl( "qrc:/WarnLogoImage.svg" );}

double mapItemHeight() {return 50 * mDp;}

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions app/qml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,16 @@ set(MM_QML
components/MMToolbarButton.qml
components/MMToolbarLongButton.qml
components/MMToolbarMenuButton.qml
components/MMWarningBubble.qml
onboarding/MMAcceptInvitation.qml
onboarding/MMCreateWorkspace.qml
onboarding/MMHowYouFoundUs.qml
onboarding/MMLogin.qml
onboarding/MMSignUp.qml
onboarding/MMWhichIndustry.qml
onboarding/MMOnboardingController.qml
onboarding/MMCreateWorkspaceController.qml
onboarding/MMAcceptInvitationController.qml
dialogs/MigrateToMerginDialog.qml
dialogs/MissingAuthDialog.qml
dialogs/NoPermissionsDialog.qml
Expand Down
Loading

0 comments on commit 79eded8

Please sign in to comment.