swift
swiftdata.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFTDATA_H
7 #define SWIFTDATA_H
8 
9 #include <QMainWindow>
10 #include <QObject>
11 #include <QScopedPointer>
12 
14 #include "gui/mainwindowaccess.h"
15 #include "gui/managedstatusbar.h"
17 #include "misc/identifiable.h"
18 #include "misc/loghistory.h"
19 #include "misc/statusmessage.h"
20 
21 namespace Ui
22 {
23  class CSwiftData;
24 }
25 namespace swift::core
26 {
27  class CWebDataServices;
28 }
29 namespace swift::gui::components
30 {
31  class CAutoPublishDialog;
32 }
33 
37 class CSwiftData : public QMainWindow, public swift::misc::CIdentifiable, public swift::gui::IMainWindowAccess
38 {
39  Q_OBJECT
40  Q_INTERFACES(swift::gui::IMainWindowAccess)
41 
42 public:
44  CSwiftData(QWidget *parent = nullptr);
45 
47  virtual ~CSwiftData() override;
48 
49 protected:
52 
54  virtual void closeEvent(QCloseEvent *event) override;
56 
57 private:
59  void onStyleSheetsChanged();
60 
62  void onMenuClicked();
63 
66  void init();
67  void initLogDisplay();
68  void initStyleSheet();
69  void initMenu();
70  void initDynamicMenus();
72 
74  void checkAutoPublishing();
75 
77  void showAutoPublishing();
78 
79  void performGracefulShutdown();
80  void consolidationSettingChanged();
81  void displayLog();
82  void checkMinimumVersion();
83 
84  QScopedPointer<Ui::CSwiftData> ui;
86  swift::core::db::CBackgroundDataUpdater *m_updater = nullptr;
88  this, &CSwiftData::consolidationSettingChanged
89  };
90  swift::misc::CLogHistoryReplica m_logHistory { this };
91 
92  // auto update
93  swift::gui::components::CAutoPublishDialog *m_autoPublishDialog = nullptr;
94 };
95 
96 #endif // SWIFTDATA_H
swift data entry control (aka mapping tool)
Definition: swiftdata.h:38
virtual void closeEvent(QCloseEvent *event)
Definition: swiftdata.cpp:64
virtual ~CSwiftData()
Destructor.
Definition: swiftdata.cpp:62
CSwiftData(QWidget *parent=nullptr)
Constructor.
Definition: swiftdata.cpp:43
Update and consolidation of DB data.
Direct acccess to main window`s status bar, info bar and such.
CAutoPublishComponent as dialog.
Base class with a member CIdentifier to be inherited by a class which has an identity in the environm...
Definition: identifiable.h:24
Allows distributed access to the log messages of a central CLogHistory.
Definition: loghistory.h:50
Backend services of the swift project, like dealing with the network or the simulators.
Definition: actionbind.cpp:7
High level reusable GUI components.
Definition: aboutdialog.cpp:13