#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 () |
void | reloadStatusOfPasteAction () |
Private Attributes | |
QPointer< stationlistWidget > | m_streamlistwidget |
KAction * | pasteAction |
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 32 of file mainwindow.h.
MainWindow::MainWindow | ( | QWidget * | parent = 0 |
) |
The constructor.
KXmlGuiWindow
documentation). Definition at line 38 of file mainwindow.cpp.
References actualize_bandwidth_in_statusBar(), actualize_numberOfActiveStreams_in_statusBar(), display_global_settings_dialog(), displayTipOfDay(), m_streamlistwidget, pasteAction, reloadStatusOfPasteAction(), and streamDirectoryProxyModel::setSourceModel().
MainWindow::~MainWindow | ( | ) | [virtual] |
The destructor.
Definition at line 242 of file mainwindow.cpp.
void MainWindow::actualize_bandwidth_in_statusBar | ( | ) | [private, slot] |
Actualizes the bandwidth in the status bar.
Definition at line 256 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 246 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 282 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 295 of file mainwindow.cpp.
Referenced by MainWindow().
bool MainWindow::queryClose | ( | ) | [protected, virtual] |
Reimplemented from KMainWindow. Saves some settings before the application closes.
Definition at line 267 of file mainwindow.cpp.
References m_streamlistwidget.
void MainWindow::readProperties | ( | const KConfigGroup & | m_configGroup | ) | [protected, virtual] |
Reimplemented from KMainWindow to restore the last session.
Definition at line 277 of file mainwindow.cpp.
References m_streamlistwidget.
void MainWindow::reloadStatusOfPasteAction | ( | ) | [private, slot] |
Actualized the status of pasteAction.
Definition at line 300 of file mainwindow.cpp.
References m_streamlistwidget, and pasteAction.
Referenced by MainWindow().
void MainWindow::saveProperties | ( | KConfigGroup & | m_configGroup | ) | [protected, virtual] |
Reimplemented from KMainWindow to save this session for restoring.
Definition at line 272 of file mainwindow.cpp.
References m_streamlistwidget.
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 75 of file mainwindow.h.
Referenced by actualize_bandwidth_in_statusBar(), actualize_numberOfActiveStreams_in_statusBar(), MainWindow(), queryClose(), readProperties(), reloadStatusOfPasteAction(), and saveProperties().
KAction* MainWindow::pasteAction [private] |
The action that pastes content of the clipboard.
Definition at line 78 of file mainwindow.h.
Referenced by MainWindow(), and reloadStatusOfPasteAction().