#include <mainwindow.h>
Public Member Functions | |
MainWindow (QWidget *parent=0) | |
virtual | ~MainWindow () |
Protected Member Functions | |
virtual bool | queryClose () |
virtual void | readProperties (const KConfigGroup &m_configGroup) |
virtual void | saveProperties (KConfigGroup &m_configGroup) |
Private Slots | |
void | actualize_bandwidth_in_statusBar () |
void | actualize_numberOfActiveStreams_in_statusBar () |
void | display_global_settings_dialog () |
void | displayTipOfDay () |
Private Attributes | |
QPointer< stationlistWidget > | m_streamlistwidget |
This class provides the mainwindow and handels the actions, session management, the global setting dialog, the Tip of the day and so on.
Definition at line 31 of file mainwindow.h.
MainWindow::MainWindow | ( | QWidget * | parent = 0 |
) |
The constructor.
KXmlGuiWindow
documentation). Definition at line 34 of file mainwindow.cpp.
References actualize_bandwidth_in_statusBar(), actualize_numberOfActiveStreams_in_statusBar(), display_global_settings_dialog(), displayTipOfDay(), and m_streamlistwidget.
MainWindow::~MainWindow | ( | ) | [virtual] |
The destructor.
Definition at line 169 of file mainwindow.cpp.
bool MainWindow::queryClose | ( | ) | [protected, virtual] |
void MainWindow::readProperties | ( | const KConfigGroup & | m_configGroup | ) | [protected, virtual] |
void MainWindow::saveProperties | ( | KConfigGroup & | m_configGroup | ) | [protected, virtual] |
void MainWindow::actualize_bandwidth_in_statusBar | ( | ) | [private, slot] |
Actualizes the bandwidth in the status bar.
Definition at line 183 of file mainwindow.cpp.
References m_streamlistwidget.
Referenced by MainWindow().
void MainWindow::actualize_numberOfActiveStreams_in_statusBar | ( | ) | [private, slot] |
Actualizes the number of active streams in the status bar.
Definition at line 173 of file mainwindow.cpp.
References m_streamlistwidget.
Referenced by MainWindow().
void MainWindow::display_global_settings_dialog | ( | ) | [private, slot] |
Displays the settings_general_dialog.
Definition at line 209 of file mainwindow.cpp.
Referenced by MainWindow().
void MainWindow::displayTipOfDay | ( | ) | [private, slot] |
Displays the tip of the day (independently from if the user has disabled them or not).
Definition at line 222 of file mainwindow.cpp.
Referenced by MainWindow().
QPointer<stationlistWidget> MainWindow::m_streamlistwidget [private] |
A pointer to the central widget.
The central widget is created in the constructor of this class, and the constructor also sets this pointer.
To access the central widget, we could use QMainWindow::centralWidget() and typecast to stationlistWidget - but using this pointer, we don't have to typecast all the time!
Definition at line 74 of file mainwindow.h.
Referenced by actualize_bandwidth_in_statusBar(), actualize_numberOfActiveStreams_in_statusBar(), MainWindow(), queryClose(), readProperties(), and saveProperties().