MainWindow Class Reference

The mainwindow. More...

#include <mainwindow.h>

List of all members.

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


Detailed Description

The mainwindow.

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.


Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0  ) 

The constructor.

  • Constructs the central widget (see m_streamlistwidget).
  • Sets up the actions.
    • Makes the actions availeble to the XML-GUI framework (See KXmlGuiWindow documentation).
    • Makes the actions availeble in the context menu of the central widget (see stationlistWidget).
  • Set up the XML GUI.
  • Display Tips of the Day (if not disabled by the user).

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.


Member Function Documentation

bool MainWindow::queryClose (  )  [protected, virtual]

TODO documentation!

Definition at line 194 of file mainwindow.cpp.

References m_streamlistwidget.

void MainWindow::readProperties ( const KConfigGroup &  m_configGroup  )  [protected, virtual]

TODO documentation!

Definition at line 204 of file mainwindow.cpp.

References m_streamlistwidget.

void MainWindow::saveProperties ( KConfigGroup &  m_configGroup  )  [protected, virtual]

TODO documentation!

Definition at line 199 of file mainwindow.cpp.

References m_streamlistwidget.

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


Member Data Documentation

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


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

Generated on Sat May 2 10:43:54 2009 for kradioripper by  doxygen 1.5.6