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

Data order widget in the Data Order tab. More...

#include <widgetdataorder.h>

Inheritance diagram for WidgetDataOrder:
Collaboration diagram for WidgetDataOrder:

Signals

void refreshRequested ()
 Signal emitted to MainWindow to refresh the Ocean Navigator servers and cache.
 
void showStatusBarMessage (const char *message)
 Signal emitted to MainWindow to show a given message in the window status bar.
 

Public Member Functions

 WidgetDataOrder (QWidget *parent, MainWindow *mainWindow, Preferences &prefs)
 
void updateRemoteDatasetListWidget ()
 
void setNAMOnline ()
 
void setNAMOffline ()
 

Private Slots

void on_pushButtonDownload_clicked ()
 Download button callback.
 
void on_listWidgetRemoteDatasets_itemDoubleClicked (QListWidgetItem *item)
 Remote dataset item double-clicked callback: Opens new window showing metadata.
 
void on_listWidgetDownloadQueue_itemDoubleClicked (QListWidgetItem *item)
 Download queue item double-clicked callback: Removes item from queue.
 
void on_pushButtonUpdateRemoteList_clicked ()
 Update remote dataset widget button callback.
 
void on_pushButtonDeleteSelected_clicked ()
 Delete button callback: removes selected item(s) from download queue.
 
void on_spinboxMinLat_valueChanged (double arg1)
 
void on_spinboxMinLon_valueChanged (double arg1)
 
void on_spinboxMaxLat_valueChanged (double arg1)
 
void on_spinboxMaxLon_valueChanged (double arg1)
 

Private Member Functions

void configureNetwork ()
 Setup m_downloader callbacks, and network settings.
 
void deleteQueueItem (QListWidgetItem *item)
 Remove item from download queue given corresponding UI widget.
 

Private Attributes

Ui::WidgetDataOrder * m_ui {nullptr}
 Pointer to UI widgets.
 
MainWindow *const m_mainWindow {nullptr}
 Ptr to parent MainWindow.
 
Preferencesm_prefs
 Ref to preferences object in MainWindow.
 
QHash< QString, QJsonObject > m_datasetsAPIResultCache
 Cache API results by dataset ID.
 
QHash< QString, DataDownloadDescm_downloadQueue
 Download queue maps dataset ID to download description.
 
QNetworkAccessManager m_networkAccessManager {this}
 
QEasyDownloader m_downloader {this, &m_networkAccessManager}
 

Detailed Description

Data order widget in the Data Order tab.


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