-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
done with the page switcher for now, started creating the database
- Loading branch information
Showing
18 changed files
with
167 additions
and
104 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "PageManager.h" | ||
|
||
PageManager::~PageManager( ) { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#pragma once | ||
|
||
#include <QObject> | ||
|
||
#include "../../View/Pages/Page.h" | ||
|
||
class PageManager : public QObject { | ||
Q_OBJECT | ||
public: | ||
static PageManager& getInstance( ) { | ||
static PageManager instance; | ||
return instance; | ||
} | ||
|
||
private: | ||
PageManager( ) { } | ||
|
||
Page* activePage = nullptr; | ||
public: | ||
~PageManager( ); | ||
|
||
PageManager(PageManager const&) = delete; | ||
void operator=(PageManager const&) = delete; | ||
|
||
void SetActivePage(Page* page) { activePage = page; } | ||
Page* GetActivePage( ) { return activePage; } | ||
|
||
signals: | ||
void ActivePageChanged(Page* page); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include "LocalFolderPage.h" | ||
|
||
LocalFolderPage::LocalFolderPage(QWidget* parent) : Page(parent) { | ||
|
||
setStyleSheet(R"( | ||
background-color: #FF2828; | ||
border-radius: 12px; | ||
)"); | ||
|
||
applyShadow(this); | ||
} | ||
|
||
LocalFolderPage::~LocalFolderPage( ) { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include <QWidget> | ||
#include <QFrame> | ||
|
||
#include "../../Tools/SvgToPixmap.hpp" | ||
#include "../Page.h" | ||
|
||
class LocalFolderPage : public Page { | ||
private: | ||
|
||
public: | ||
LocalFolderPage(QWidget* parent = nullptr); | ||
~LocalFolderPage( ); | ||
|
||
std::string GetName( ) { return "localFolder"; } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include <QFrame> | ||
|
||
class Page : public QFrame { | ||
|
||
Q_OBJECT | ||
|
||
private: | ||
|
||
public: | ||
Page(QWidget* parent = nullptr) :QFrame(parent) { } | ||
virtual ~Page( ) { } | ||
|
||
virtual std::string GetName( ) = 0; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.