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