Qt Virtual Chart Table (QVCT)
CMainWindow Class Reference

[UI] Application main window More...

#include <CMainWindow.hpp>

Inheritance diagram for CMainWindow:

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...
 

Detailed Description

[UI] Application main window

This class provides the the application's main window.

Author
Cedric Dufour http://cedric.dufour.name

Definition at line 35 of file CMainWindow.hpp.

Constructor & Destructor Documentation

◆ CMainWindow()

CMainWindow::CMainWindow ( )

Definition at line 51 of file CMainWindow.cpp.

◆ ~CMainWindow()

CMainWindow::~CMainWindow ( )
virtual

Definition at line 63 of file CMainWindow.cpp.

Member Function Documentation

◆ constructLayout()

void CMainWindow::constructLayout ( )
private

Constructs the layout of the application.

Definition at line 82 of file CMainWindow.cpp.

◆ constructMenus()

void CMainWindow::constructMenus ( )
private

Constructs the menus of the application.

Definition at line 137 of file CMainWindow.cpp.

◆ slotExit

void CMainWindow::slotExit ( )
privateslot

Slot to exit this application.

Definition at line 232 of file CMainWindow.cpp.

◆ slotAbout

void CMainWindow::slotAbout ( )
privateslot

Slot to display this application's "About" details.

Definition at line 238 of file CMainWindow.cpp.

◆ slotShowSettings

void CMainWindow::slotShowSettings ( )
privateslot

Slot to display the application's settings edit dialog.

Definition at line 255 of file CMainWindow.cpp.

◆ slotShowOverlayListView

void CMainWindow::slotShowOverlayListView ( )
privateslot

Slot to display the application's overlay list (dock widget)

Definition at line 267 of file CMainWindow.cpp.

◆ slotShowOverlayDetailView

void CMainWindow::slotShowOverlayDetailView ( )
privateslot

Slot to display the application's overlay detail (dock widget)

Definition at line 272 of file CMainWindow.cpp.

◆ slotShowTimeView

void CMainWindow::slotShowTimeView ( )
privateslot

Slot to display the application's system time (dock widget)

Definition at line 277 of file CMainWindow.cpp.

◆ slotShowVesselTarget

void CMainWindow::slotShowVesselTarget ( )
privateslot

Slot to display the application's vessel target widget (dock widget)

Definition at line 282 of file CMainWindow.cpp.

◆ slotShowVesselPosition

void CMainWindow::slotShowVesselPosition ( )
privateslot

Slot to display the application's vessel position widget (dock widget)

Definition at line 287 of file CMainWindow.cpp.

◆ slotShowVesselCourse

void CMainWindow::slotShowVesselCourse ( )
privateslot

Slot to display the application's vessel course widget (dock widget)

Definition at line 292 of file CMainWindow.cpp.

◆ slotShowVesselCockpit

void CMainWindow::slotShowVesselCockpit ( )
privateslot

Slot to display the application's vessel cockpit view (window)

Definition at line 297 of file CMainWindow.cpp.

◆ slotToggleFullscreen

void CMainWindow::slotToggleFullscreen ( )
privateslot

Slot to toggle full-screen.

Definition at line 302 of file CMainWindow.cpp.

◆ slotTimerRefresh

void CMainWindow::slotTimerRefresh ( )
privateslot

Slot to periodically refresh the user interface.

Definition at line 307 of file CMainWindow.cpp.

◆ slotWarning

void CMainWindow::slotWarning ( const QString &  _rqsMessage)
privateslot

Slot to display a warning message.

Definition at line 331 of file CMainWindow.cpp.

◆ slotError

void CMainWindow::slotError ( const QString &  _rqsMessage)
privateslot

Slot to display an error message.

Definition at line 336 of file CMainWindow.cpp.

◆ warningMessage()

void CMainWindow::warningMessage ( const QString &  _rqsMessage)

Display a warning message.

Definition at line 345 of file CMainWindow.cpp.

◆ errorMessage()

void CMainWindow::errorMessage ( const QString &  _rqsMessage)

Display an error message.

Definition at line 350 of file CMainWindow.cpp.

◆ deleteConfirm()

bool CMainWindow::deleteConfirm ( const QString &  _rqsName)

Displays a generic confirmation request before deleting content.

Parameters
[in]_rqsNameContent's name
Returns
Confirmation status (TRUE if deletion is accepted, FALSE otherwise)

Definition at line 355 of file CMainWindow.cpp.

◆ fileDialog()

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.

See also
QFileDialog::getOpenFileName, QFileDialog::getSaveFileName
Parameters
[in]_eFileOperationFile operation (open/save)
[in]_rqsTitleWindow title
[in]_rqsFilterFile (extensions) filter)
Returns
The chosen file name

Definition at line 360 of file CMainWindow.cpp.

◆ fileCheck()

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)

Parameters
[in]_eFileOperationFile operation (open/save)
[in]_rqsFilenameFilename
[in]_pqsListExtensionsList of allowed file extensions
Returns
The check status (TRUE if successful, FALSE otherwise)

Definition at line 380 of file CMainWindow.cpp.

◆ fileError()

void CMainWindow::fileError ( QVCT::EFileOperation  _eFileOperation,
const QString &  _rqsFilename 
)

Displays a generic error message for an invalid file name and operation (open/save)

Parameters
[in]_eFileOperationFile operation (open/save)
[in]_rqsFilenameFilename

Definition at line 430 of file CMainWindow.cpp.

◆ parseError()

void CMainWindow::parseError ( const QString &  _rqsString)

Displays a generic error message for an invalid parsing operation.

Parameters
[in]_rqsStringSource string (which failed to be parsed)

Definition at line 444 of file CMainWindow.cpp.

◆ symbolExists()

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.

◆ symbolPixmap()

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.

Member Data Documentation

◆ fdTimeLastRedraw

double CMainWindow::fdTimeLastRedraw
private

Content last redraw time.

Definition at line 60 of file CMainWindow.hpp.


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