6 #ifndef SWIFT_GUI_COMPONENTS_SIMULATORSELECTOR_H
7 #define SWIFT_GUI_COMPONENTS_SIMULATORSELECTOR_H
11 #include <QScopedPointer>
20 class CSimulatorSelector;
47 void setMode(Mode mode,
bool forced =
false);
62 void setToLastSelection();
65 void setToConnectedSimulator(
bool makeReadOnly =
true);
68 void setToConnectedSimulator(
int deferredMs,
bool makeReadOnly =
true);
74 void enableFG(
bool enabled);
83 bool isUnselected()
const;
86 bool areAllSelected()
const;
89 void setLeftMargin(
int margin);
95 void setRememberSelectionAndSetToLastSelection();
104 bool isSingleSelection()
const;
107 void setReadOnly(
bool readOnly);
115 void radioButtonChanged(
bool checked);
118 void checkBoxChanged(
bool checked);
121 void comboBoxChanged(
const QString &value);
124 void rememberSelection();
127 void changedLastSelection();
130 void changedLastSelectionRb();
133 void changedLastSelectionCb();
136 void triggerSetToLastSelection();
139 void emitChangedSignal();
142 void addComboxBoxValues();
144 QScopedPointer<Ui::CSimulatorSelector> ui;
145 Mode m_mode = CheckBoxes;
146 bool m_noSelectionMeansAll =
false;
147 bool m_rememberSelection =
false;
149 std::chrono::milliseconds(250), 3 };
151 this, &CSimulatorSelector::changedLastSelectionRb
154 this, &CSimulatorSelector::changedLastSelectionCb
Select simulator (as radio buttons or checkboxes)
@ CheckBoxes
multiple selections
bool isRememberingSelection() const
Is rembering selection?
void setRememberSelection(bool remember)
Remember selection.
void changed(const swift::misc::simulation::CSimulatorInfo &simulator)
Value has been changed.
void setNoSelectionMeansAll(bool v)
No selection treated same as all selected (filters)
Receive 1..n signals, collect them over time, and resend afer n milliseconds.
Simple hardcoded info about the corresponding simulator.
High level reusable GUI components.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.