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 ()
void reloadStatusOfPasteAction ()

Private Attributes

QPointer< stationlistWidgetm_streamlistwidget
KAction * pasteAction


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

Here is the call graph for this function:

MainWindow::~MainWindow (  )  [virtual]

The destructor.

Definition at line 242 of file mainwindow.cpp.


Member Function Documentation

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void MainWindow::display_global_settings_dialog (  )  [private, slot]

Displays the settings_general_dialog.

Definition at line 282 of file mainwindow.cpp.

Referenced by MainWindow().

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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.


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

See also:
reloadStatusOfPasteAction()

Definition at line 78 of file mainwindow.h.

Referenced by MainWindow(), and reloadStatusOfPasteAction().


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

doxygen