Qt Virtual Chart Table (QVCT)
|
[UI] Application main window More...
#include <CMainWindow.hpp>
Public Member Functions | |
CMainWindow () | |
virtual | ~CMainWindow () |
void | warningMessage (const QString &_rqsMessage) |
Display a warning message. More... | |
void | errorMessage (const QString &_rqsMessage) |
Display an error message. More... | |
bool | deleteConfirm (const QString &_rqsName) |
Displays a generic confirmation request before deleting content. More... | |
QString | fileDialog (QVCT::EFileOperation _eFileOperation, const QString &_rqsTitle, const QString &_rqsFilter) |
Displays a generic dialog to pick a file for the given operation (open/save) More... | |
bool | fileCheck (QVCT::EFileOperation _eFileOperation, const QString &_rqsFilename, const QStringList *_pqsListExtensions=0) |
Checks the validity of the given file name for the given file operation (open/save) More... | |
void | fileError (QVCT::EFileOperation _eFileOperation, const QString &_rqsFilename) |
Displays a generic error message for an invalid file name and operation (open/save) More... | |
void | parseError (const QString &_rqsString) |
Displays a generic error message for an invalid parsing operation. More... | |
bool | symbolExists (const QString &_rqsSymbol) |
Returns whether the given symbol exists (in the application's symbol directory) More... | |
QPixmap | symbolPixmap (const QString &_rqsSymbol) |
Returns pixmap matching the given symbol (loaded from the application's symbol directory) More... | |
Private Slots | |
void | slotExit () |
Slot to exit this application. More... | |
void | slotAbout () |
Slot to display this application's "About" details. More... | |
void | slotShowSettings () |
Slot to display the application's settings edit dialog. More... | |
void | slotShowOverlayListView () |
Slot to display the application's overlay list (dock widget) More... | |
void | slotShowOverlayDetailView () |
Slot to display the application's overlay detail (dock widget) More... | |
void | slotShowTimeView () |
Slot to display the application's system time (dock widget) More... | |
void | slotShowVesselTarget () |
Slot to display the application's vessel target widget (dock widget) More... | |
void | slotShowVesselPosition () |
Slot to display the application's vessel position widget (dock widget) More... | |
void | slotShowVesselCourse () |
Slot to display the application's vessel course widget (dock widget) More... | |
void | slotShowVesselCockpit () |
Slot to display the application's vessel cockpit view (window) More... | |
void | slotToggleFullscreen () |
Slot to toggle full-screen. More... | |
void | slotTimerRefresh () |
Slot to periodically refresh the user interface. More... | |
void | slotWarning (const QString &_rqsMessage) |
Slot to display a warning message. More... | |
void | slotError (const QString &_rqsMessage) |
Slot to display an error message. More... | |
Private Member Functions | |
void | constructLayout () |
Constructs the layout of the application. More... | |
void | constructMenus () |
Constructs the menus of the application. More... | |
Private Attributes | |
double | fdTimeLastRedraw |
Content last redraw time. More... | |
[UI] Application main window
This class provides the the application's main window.
Definition at line 35 of file CMainWindow.hpp.
CMainWindow::CMainWindow | ( | ) |
Definition at line 51 of file CMainWindow.cpp.
|
virtual |
Definition at line 63 of file CMainWindow.cpp.
|
private |
Constructs the layout of the application.
Definition at line 82 of file CMainWindow.cpp.
|
private |
Constructs the menus of the application.
Definition at line 137 of file CMainWindow.cpp.
|
privateslot |
Slot to exit this application.
Definition at line 232 of file CMainWindow.cpp.
|
privateslot |
Slot to display this application's "About" details.
Definition at line 238 of file CMainWindow.cpp.
|
privateslot |
Slot to display the application's settings edit dialog.
Definition at line 255 of file CMainWindow.cpp.
|
privateslot |
Slot to display the application's overlay list (dock widget)
Definition at line 267 of file CMainWindow.cpp.
|
privateslot |
Slot to display the application's overlay detail (dock widget)
Definition at line 272 of file CMainWindow.cpp.
|
privateslot |
Slot to display the application's system time (dock widget)
Definition at line 277 of file CMainWindow.cpp.
|
privateslot |
Slot to display the application's vessel target widget (dock widget)
Definition at line 282 of file CMainWindow.cpp.
|
privateslot |
Slot to display the application's vessel position widget (dock widget)
Definition at line 287 of file CMainWindow.cpp.
|
privateslot |
Slot to display the application's vessel course widget (dock widget)
Definition at line 292 of file CMainWindow.cpp.
|
privateslot |
Slot to display the application's vessel cockpit view (window)
Definition at line 297 of file CMainWindow.cpp.
|
privateslot |
Slot to toggle full-screen.
Definition at line 302 of file CMainWindow.cpp.
|
privateslot |
Slot to periodically refresh the user interface.
Definition at line 307 of file CMainWindow.cpp.
|
privateslot |
Slot to display a warning message.
Definition at line 331 of file CMainWindow.cpp.
|
privateslot |
Slot to display an error message.
Definition at line 336 of file CMainWindow.cpp.
void CMainWindow::warningMessage | ( | const QString & | _rqsMessage | ) |
Display a warning message.
Definition at line 345 of file CMainWindow.cpp.
void CMainWindow::errorMessage | ( | const QString & | _rqsMessage | ) |
Display an error message.
Definition at line 350 of file CMainWindow.cpp.
bool CMainWindow::deleteConfirm | ( | const QString & | _rqsName | ) |
Displays a generic confirmation request before deleting content.
[in] | _rqsName | Content's name |
Definition at line 355 of file CMainWindow.cpp.
QString CMainWindow::fileDialog | ( | QVCT::EFileOperation | _eFileOperation, |
const QString & | _rqsTitle, | ||
const QString & | _rqsFilter | ||
) |
Displays a generic dialog to pick a file for the given operation (open/save)
This method displays a generic dialog to pick a file for open/save operation. It will automatically update the application's current working directory accordingly.
[in] | _eFileOperation | File operation (open/save) |
[in] | _rqsTitle | Window title |
[in] | _rqsFilter | File (extensions) filter) |
Definition at line 360 of file CMainWindow.cpp.
bool CMainWindow::fileCheck | ( | QVCT::EFileOperation | _eFileOperation, |
const QString & | _rqsFilename, | ||
const QStringList * | _pqsListExtensions = 0 |
||
) |
Checks the validity of the given file name for the given file operation (open/save)
[in] | _eFileOperation | File operation (open/save) |
[in] | _rqsFilename | Filename |
[in] | _pqsListExtensions | List of allowed file extensions |
Definition at line 380 of file CMainWindow.cpp.
void CMainWindow::fileError | ( | QVCT::EFileOperation | _eFileOperation, |
const QString & | _rqsFilename | ||
) |
Displays a generic error message for an invalid file name and operation (open/save)
[in] | _eFileOperation | File operation (open/save) |
[in] | _rqsFilename | Filename |
Definition at line 430 of file CMainWindow.cpp.
void CMainWindow::parseError | ( | const QString & | _rqsString | ) |
Displays a generic error message for an invalid parsing operation.
[in] | _rqsString | Source string (which failed to be parsed) |
Definition at line 444 of file CMainWindow.cpp.
bool CMainWindow::symbolExists | ( | const QString & | _rqsSymbol | ) |
Returns whether the given symbol exists (in the application's symbol directory)
Definition at line 449 of file CMainWindow.cpp.
QPixmap CMainWindow::symbolPixmap | ( | const QString & | _rqsSymbol | ) |
Returns pixmap matching the given symbol (loaded from the application's symbol directory)
Definition at line 457 of file CMainWindow.cpp.
|
private |
Content last redraw time.
Definition at line 60 of file CMainWindow.hpp.