Frapper  1.0a
Public Slots | Public Member Functions | Private Attributes | List of all members
Frapper::WindowsDialog Class Reference

Dialog for displaying the list of the application's windows. More...

#include <WindowsDialog.h>

Inheritance diagram for Frapper::WindowsDialog:
Inheritance graph
[legend]
Collaboration diagram for Frapper::WindowsDialog:
Collaboration graph
[legend]

Public Slots

void currentWindowChanged (const QModelIndex &current, const QModelIndex &previous)
 Enables the close button according to the current selection in the list of windows.
 
void activateSelectedWindow ()
 Activates the currently selected window.
 
void closeSelectedWindow ()
 Closes the currently selected window.
 

Public Member Functions

 WindowsDialog (QStandardItemModel *windowListModel, QWidget *parent=0)
 Constructor of the WindowsDialog class.
 
virtual ~WindowsDialog ()
 Destructor of the WindowsDialog class.
 

Private Attributes

QStandardItemModel * m_windowListModel
 The model that contains the list of the application's windows.
 
QItemSelectionModel * m_selectionModel
 The selection model that works on the list of the application's windows.
 

Detailed Description

Dialog for displaying the list of the application's windows.

Inheritance Diagram
dot_inline_dotgraph_22.png
[legend]

Constructor & Destructor Documentation

Frapper::WindowsDialog::WindowsDialog ( QStandardItemModel *  windowListModel,
QWidget *  parent = 0 
)

Constructor of the WindowsDialog class.

Parameters
windowListModelThe model that contains the list of the application's windows.
parentA parent widget the created instance will be child of.
Frapper::WindowsDialog::~WindowsDialog ( )
virtual

Destructor of the WindowsDialog class.

Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.

Member Function Documentation

void Frapper::WindowsDialog::currentWindowChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
slot

Enables the close button according to the current selection in the list of windows.

Private Slots.

Parameters
currentThe index of the currently selected item.
previousThe index of the previously selected item.

Enables the close button according to the current selection in the list of windows.

Parameters
currentThe index of the currently selected item.
previousThe index of the previously selected item.
void Frapper::WindowsDialog::activateSelectedWindow ( )
slot

Activates the currently selected window.

void Frapper::WindowsDialog::closeSelectedWindow ( )
slot

Closes the currently selected window.

Member Data Documentation

QStandardItemModel* Frapper::WindowsDialog::m_windowListModel
private

The model that contains the list of the application's windows.

QItemSelectionModel* Frapper::WindowsDialog::m_selectionModel
private

The selection model that works on the list of the application's windows.


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