Navigator2Go  2.0
Manage your local Ocean Navigator installation.
DialogDatasetView Class Reference

Dialog window to show dataset attributes (THREDDS URL, variables, etc). More...

#include <dialogdatasetview.h>

Inheritance diagram for DialogDatasetView:
Collaboration diagram for DialogDatasetView:

Public Member Functions

 DialogDatasetView (QWidget *parent=nullptr)
 
void SetData (const QString &datasetKey, const QJsonObject &object)
 Parse data from loaded config file.
 
void SetData (const QJsonObject &datasetObj, QNetworkAccessManager &nam)
 Queries the remove server for dataset attributes.
 
void SetData (const DataDownloadDesc &data)
 Fill the UI elements from attributes in DataDownloadDesc.
 
NODISCARD std::pair< QString, QJsonObject > GetData () const
 Serializes values from the UI into a JSON object. More...
 
NODISCARD DataDownloadDesc GetDownloadData () const
 Constructs a DataDownloadDesc from values in UI fields.
 

Private Slots

void on_pushButtonAddVariable_clicked ()
 
void on_pushButtonDeleteVariable_clicked ()
 
void on_lineEditKey_editingFinished ()
 
void on_lineEditName_editingFinished ()
 
void on_lineEditURL_editingFinished ()
 
void keyPressEvent (QKeyEvent *e) override
 
void on_pushButtonMagicScan_clicked ()
 

Private Member Functions

int addEmptyVariable ()
 Adds a new variable row with empty values. Returns new row index.
 
void checkInputEmpty (const QString &inputLabel, const QString &inputText)
 
void setReadOnlyUI ()
 

Private Attributes

Ui::DatasetView * m_ui {nullptr}
 
HTMLHighlighterm_highlighter {nullptr}
 
QHash< QString, QString > m_variableMap
 

Detailed Description

Dialog window to show dataset attributes (THREDDS URL, variables, etc).

Member Function Documentation

std::pair< QString, QJsonObject > DialogDatasetView::GetData ( ) const

Serializes values from the UI into a JSON object.

Returns the dataset key, and JSON object.


The documentation for this class was generated from the following files: