swift
src
swiftdata
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
13
#include "
core/db/backgrounddataupdater.h
"
14
#include "gui/mainwindowaccess.h"
15
#include "
gui/managedstatusbar.h
"
16
#include "
gui/settings/guisettings.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;
85
swift::gui::CManagedStatusBar
m_statusBar;
86
swift::core::db::CBackgroundDataUpdater
*m_updater =
nullptr
;
87
swift::misc::CSettingReadOnly<swift::gui::settings::TBackgroundConsolidation>
m_consolidationSettings {
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
backgrounddataupdater.h
CSwiftData
swift data entry control (aka mapping tool)
Definition:
swiftdata.h:38
CSwiftData::closeEvent
virtual void closeEvent(QCloseEvent *event)
Definition:
swiftdata.cpp:64
CSwiftData::~CSwiftData
virtual ~CSwiftData()
Destructor.
Definition:
swiftdata.cpp:62
CSwiftData::CSwiftData
CSwiftData(QWidget *parent=nullptr)
Constructor.
Definition:
swiftdata.cpp:43
swift::core::db::CBackgroundDataUpdater
Update and consolidation of DB data.
Definition:
backgrounddataupdater.h:25
swift::gui::CManagedStatusBar
Managed status bar.
Definition:
managedstatusbar.h:24
swift::gui::IMainWindowAccess
Direct acccess to main window`s status bar, info bar and such.
Definition:
mainwindowaccess.h:26
swift::gui::components::CAutoPublishDialog
CAutoPublishComponent as dialog.
Definition:
autopublishdialog.h:22
swift::misc::CIdentifiable
Base class with a member CIdentifier to be inherited by a class which has an identity in the environm...
Definition:
identifiable.h:24
swift::misc::CLogHistoryReplica
Allows distributed access to the log messages of a central CLogHistory.
Definition:
loghistory.h:50
swift::misc::CSettingReadOnly< swift::gui::settings::TBackgroundConsolidation >
guisettings.h
identifiable.h
loghistory.h
managedstatusbar.h
swift::core
Backend services of the swift project, like dealing with the network or the simulators.
Definition:
actionbind.cpp:7
swift::gui::components
High level reusable GUI components.
Definition:
aboutdialog.cpp:13
statusmessage.h
Generated on Mon Mar 24 2025 16:42:23 for swift by
1.9.1