@@ -1,5 +1,5 | |||
|
1 | 1 | cmake_minimum_required(VERSION 3.6) |
|
2 |
set(SCIQLOP_VERSION 1. |
|
|
2 | set(SCIQLOP_VERSION 1.1.0) | |
|
3 | 3 | project(SciQLOP |
|
4 | 4 | VERSION ${SCIQLOP_VERSION} |
|
5 | 5 | DESCRIPTION "SciQLOP (SCIentific Qt application for Learning from Observations of Plasmas) is an ergonomic and powerful tool enabling visualization and analysis of in situ spacecraft plasma data." |
@@ -23,7 +23,7 | |||
|
23 | 23 | #include "ui_MainWindow.h" |
|
24 | 24 | |
|
25 | 25 | #include <Catalogue/CatalogueController.h> |
|
26 |
|
|
|
26 | #include <Catalogue2/browser.h> | |
|
27 | 27 | #include <DataSource/DataSourceController.h> |
|
28 | 28 | #include <DataSource/DataSourceWidget.h> |
|
29 | 29 | #include <Settings/SqpSettingsDialog.h> |
@@ -64,7 +64,7 public: | |||
|
64 | 64 | , m_LastOpenRightInspectorSize {} |
|
65 | 65 | , m_GeneralSettingsWidget { new SqpSettingsGeneralWidget { mainWindow } } |
|
66 | 66 | , m_SettingsDialog { new SqpSettingsDialog { mainWindow } } |
|
67 |
|
|
|
67 | , m_CatalogExplorer { new CataloguesBrowser { mainWindow } } | |
|
68 | 68 | { |
|
69 | 69 | } |
|
70 | 70 | |
@@ -75,7 +75,7 public: | |||
|
75 | 75 | /// Settings dialog. MainWindow has the ownership |
|
76 | 76 | SqpSettingsDialog* m_SettingsDialog; |
|
77 | 77 | /// Catalogue dialog. MainWindow has the ownership |
|
78 |
|
|
|
78 | CataloguesBrowser* m_CatalogExplorer; | |
|
79 | 79 | |
|
80 | 80 | bool checkDataToSave(QWidget* parentWidget); |
|
81 | 81 | }; |
@@ -272,8 +272,8 MainWindow::MainWindow(QWidget* parent) | |||
|
272 | 272 | |
|
273 | 273 | // Catalog |
|
274 | 274 | mainToolBar->addSeparator(); |
|
275 |
|
|
|
276 |
|
|
|
275 | mainToolBar->addAction(QIcon(":/icones/catalogue.png"), "Catalogues", | |
|
276 | [this]() { impl->m_CatalogExplorer->show(); }); | |
|
277 | 277 | |
|
278 | 278 | // //////// // |
|
279 | 279 | // Settings // |
@@ -1,1 +1,1 | |||
|
1 | Subproject commit 854c0145877d96f95e0fb6ba08e32cb15cd49cf9 | |
|
1 | Subproject commit 39bf3ff40b41fc01170241f3e471c708c866118b |
@@ -1,25 +1,28 | |||
|
1 | 1 | #ifndef BROWSER_H |
|
2 | 2 | #define BROWSER_H |
|
3 | 3 | |
|
4 | #include <QWidget> | |
|
5 | 4 | #include <Catalogue/CatalogueController.h> |
|
5 | #include <QWidget> | |
|
6 | 6 | |
|
7 |
namespace Ui |
|
|
7 | namespace Ui | |
|
8 | { | |
|
8 | 9 | class Browser; |
|
9 | 10 | } |
|
10 | 11 | |
|
11 | class Browser : public QWidget | |
|
12 | class CataloguesBrowser : public QWidget | |
|
12 | 13 | { |
|
13 | 14 | Q_OBJECT |
|
14 | 15 | |
|
15 | 16 | public: |
|
16 |
explicit Browser(QWidget |
|
|
17 | ~Browser(); | |
|
17 | explicit CataloguesBrowser(QWidget* parent = nullptr); | |
|
18 | ~CataloguesBrowser(); | |
|
18 | 19 | private slots: |
|
19 | 20 | void repositorySelected(const QString& repo); |
|
20 | 21 | void catalogueSelected(const CatalogueController::Catalogue_ptr& catalogue); |
|
21 | 22 | void eventSelected(const CatalogueController::Event_ptr& event); |
|
22 | void productSelected(const CatalogueController::Product_t& product, const CatalogueController::Event_ptr& event); | |
|
23 | void productSelected( | |
|
24 | const CatalogueController::Product_t& product, const CatalogueController::Event_ptr& event); | |
|
25 | ||
|
23 | 26 | private: |
|
24 | 27 |
Ui::Browser |
|
25 | 28 | }; |
@@ -2,23 +2,25 | |||
|
2 | 2 | #include "ui_browser.h" |
|
3 | 3 | #include <SqpApplication.h> |
|
4 | 4 | |
|
5 | Browser::Browser(QWidget* parent) : QWidget(parent), ui(new Ui::Browser) | |
|
5 | CataloguesBrowser::CataloguesBrowser(QWidget* parent) | |
|
6 | : QWidget(parent, Qt::Window), ui(new Ui::Browser) | |
|
6 | 7 | { |
|
7 | 8 | ui->setupUi(this); |
|
8 | 9 | connect(ui->repositories, &RepositoriesTreeView::repositorySelected, this, |
|
9 | &Browser::repositorySelected); | |
|
10 | &CataloguesBrowser::repositorySelected); | |
|
10 | 11 | connect(ui->repositories, &RepositoriesTreeView::catalogueSelected, this, |
|
11 | &Browser::catalogueSelected); | |
|
12 | connect(ui->events, &EventsTreeView::eventSelected, this, &Browser::eventSelected); | |
|
13 | connect(ui->events, &EventsTreeView::productSelected, this, &Browser::productSelected); | |
|
12 | &CataloguesBrowser::catalogueSelected); | |
|
13 | connect(ui->events, &EventsTreeView::eventSelected, this, &CataloguesBrowser::eventSelected); | |
|
14 | connect( | |
|
15 | ui->events, &EventsTreeView::productSelected, this, &CataloguesBrowser::productSelected); | |
|
14 | 16 | } |
|
15 | 17 | |
|
16 | Browser::~Browser() | |
|
18 | CataloguesBrowser::~CataloguesBrowser() | |
|
17 | 19 | { |
|
18 | 20 | delete ui; |
|
19 | 21 | } |
|
20 | 22 | |
|
21 | void Browser::repositorySelected(const QString& repo) | |
|
23 | void CataloguesBrowser::repositorySelected(const QString& repo) | |
|
22 | 24 | { |
|
23 | 25 | this->ui->Infos->setCurrentIndex(0); |
|
24 | 26 | this->ui->events->setEvents(sqpApp->catalogueController().events(repo)); |
@@ -29,7 +31,7 void Browser::repositorySelected(const QString& repo) | |||
|
29 | 31 | QString::number(sqpApp->catalogueController().events(repo).size())); |
|
30 | 32 | } |
|
31 | 33 | |
|
32 | void Browser::catalogueSelected(const CatalogueController::Catalogue_ptr& catalogue) | |
|
34 | void CataloguesBrowser::catalogueSelected(const CatalogueController::Catalogue_ptr& catalogue) | |
|
33 | 35 | { |
|
34 | 36 | this->ui->Infos->setCurrentIndex(1); |
|
35 | 37 | this->ui->events->setEvents(sqpApp->catalogueController().events(catalogue)); |
@@ -37,13 +39,14 void Browser::catalogueSelected(const CatalogueController::Catalogue_ptr& catalo | |||
|
37 | 39 | QString::number(sqpApp->catalogueController().events(catalogue).size())); |
|
38 | 40 | } |
|
39 | 41 | |
|
40 | void Browser::eventSelected(const CatalogueController::Event_ptr& event) | |
|
42 | void CataloguesBrowser::eventSelected(const CatalogueController::Event_ptr& event) | |
|
41 | 43 | { |
|
42 | 44 | this->ui->Infos->setCurrentIndex(2); |
|
43 | 45 | this->ui->Event->setEvent(event); |
|
44 | 46 | } |
|
45 | 47 | |
|
46 | void Browser::productSelected(const CatalogueController::Product_t& product, const CatalogueController::Event_ptr& event) | |
|
48 | void CataloguesBrowser::productSelected( | |
|
49 | const CatalogueController::Product_t& product, const CatalogueController::Event_ptr& event) | |
|
47 | 50 | { |
|
48 | 51 | this->ui->Infos->setCurrentIndex(2); |
|
49 | 52 | this->ui->Event->setProduct(product,event); |
@@ -48,7 +48,7 int main(int argc, char* argv[]) | |||
|
48 | 48 | QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); |
|
49 | 49 | |
|
50 | 50 | SqpApplication a { argc, argv }; |
|
51 | Browser w; | |
|
51 | CataloguesBrowser w; | |
|
52 | 52 | sqpApp->catalogueController().add("test"); |
|
53 | 53 | sqpApp->catalogueController().add("stuff"); |
|
54 | 54 | sqpApp->catalogueController().add("default"); |
@@ -1,5 +1,5 | |||
|
1 | 1 | project('SciQLOP', 'cpp',default_options : ['cpp_std=c++17'], meson_version:'>=0.47.0') |
|
2 |
add_global_arguments('-DSCIQLOP_VERSION="1. |
|
|
2 | add_global_arguments('-DSCIQLOP_VERSION="1.1.0"', language : 'cpp') | |
|
3 | 3 | |
|
4 | 4 | qt5 = import('qt5') |
|
5 | 5 | qt5core = dependency('qt5', modules : 'Core') |
General Comments 0
You need to be logged in to leave comments.
Login now