swift
Loading...
Searching...
No Matches
dbdistributorcomponent.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 SWIFT_GUI_COMPONENTS_DBDISTRIBUTORCOMPONENT_H
7#define SWIFT_GUI_COMPONENTS_DBDISTRIBUTORCOMPONENT_H
8
9#include <QFrame>
10#include <QObject>
11#include <QScopedPointer>
12
15#include "gui/swiftguiexport.h"
18
19namespace Ui
20{
21 class CDbDistributorComponent;
22}
23namespace swift::misc::simulation
24{
25 class CSimulatorInfo;
26}
27namespace swift::gui
28{
29 namespace views
30 {
31 class CDistributorView;
32 }
33 namespace components
34 {
39 public QFrame,
42 {
44
45 public:
47 explicit CDbDistributorComponent(QWidget *parent = nullptr);
48
51
54
57
60
63
65 bool hasSelectedDistributors() const;
66
67 private:
69
71 void onDistributorsRead(swift::misc::network::CEntityFlags::Entity entity,
73
75 void selectStandardModels();
76
78 void reload();
79 };
80 } // namespace components
81} // namespace swift::gui
82
83#endif // SWIFT_GUI_COMPONENTS_DBDISTRIBUTORCOMPONENT_H
CEnableForDockWidgetInfoArea(CDockWidgetInfoArea *parentInfoArea=nullptr)
Constructor.
CEnableForViewBasedIndicator(views::CViewBaseNonTemplate *viewWithIndicator=nullptr)
Constructor.
swift::gui::views::CDistributorView * view() const
Get the view.
bool selectDistributor(const swift::misc::simulation::CDistributor &distributor)
Select the given distributor.
CDbDistributorComponent(QWidget *parent=nullptr)
Constructor.
bool hasSelectedDistributors() const
Having selected distributors.
void filterBySimulator(const swift::misc::simulation::CSimulatorInfo &simulator)
Filter by simulator.
swift::misc::simulation::CDistributorList getSelectedDistributors() const
The selected distributors.
Value object encapsulating information of software distributor.
Definition distributor.h:33
Value object encapsulating a list of distributors.
Simple hardcoded info about the corresponding simulator.
High level reusable GUI components.
Views, mainly QTableView.
GUI related classes.
QFrame(QWidget *parent, Qt::WindowFlags f)
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
#define SWIFT_GUI_EXPORT
Export a class or function from the library.