Navigator2Go
2.0
Manage your local Ocean Navigator installation.
|
Dataset config editor widget in the Config Editor tab. More...
#include <widgetconfigeditor.h>
Signals | |
void | showStatusBarMessage (const char *message) |
Signal emitted to MainWindow to show a given message in the window status bar. | |
Public Member Functions | |
WidgetConfigEditor (QWidget *parent, const Preferences *prefs) | |
void | addDatasetToConfigList () |
void | saveConfigFile () |
void | updateDatasetListWidget () |
NODISCARD auto | hasUnsavedData () const noexcept |
Private Slots | |
void | on_pushButtonAddDataset_clicked () |
Add Dataset button. | |
void | on_pushButtonDeleteDataset_clicked () |
Delete Dataset button. | |
void | on_pushButtonSaveConfigFile_clicked () |
Save button. | |
void | on_pushButtonLoadCustomConfig_clicked () |
Load custom dataset config. | |
void | on_pushButtonLoadDefaultConfig_clicked () |
Load default dataset config. | |
void | on_listWidgetActiveDatasets_itemDoubleClicked (QListWidgetItem *item) |
Double-click on list item. | |
Private Member Functions | |
void | setDefaultConfigFile () |
Load the default datasetconfigOFFLINE.json into the UI. | |
int | showUnsavedDataMessageBox () |
Private Attributes | |
Ui::WidgetConfigEditor * | m_ui {nullptr} |
Pointer to UI widgets. | |
const Preferences *const | m_prefs {nullptr} |
Pointer to m_prefs in MainWindow. | |
QString | m_activeConfigFile |
Path to the currently loaded config file. | |
QJsonObject | m_documentRootObject |
Root JSON object of active config file. | |
bool | m_hasUnsavedData {false} |
Does the current config file have unsaved data? | |
Dataset config editor widget in the Config Editor tab.