UniversalIndentGUI 1.2.0
Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
AboutDialog Class Reference

Displays a dialog window with information about UniversalIndentGUI. More...

#include <AboutDialog.h>

Inheritance diagram for AboutDialog:
Inheritance graph
[legend]

List of all members.

Public Slots

int exec ()
 Reimplements the dialog execution function to init the credits scroller.
void show ()
 Shows the about dialog and also starts the credits scroller.

Public Member Functions

 AboutDialog (QWidget *parent=NULL, Qt::WindowFlags flags=0)
 The constructor calls the setup function for the ui created by uic and adds the GPL text to the text edit.

Private Slots

void scroll ()
 This slot is called each _timer timeout to scroll the credits textbrowser. Also changes the scroll direction and speed when reaching the start or end.

Private Member Functions

void changeEvent (QEvent *event)
 Catches language change events and retranslates all needed widgets.

Private Attributes

Ui::AboutDialog * _dialogForm
int _scrollDirection
int _scrollSpeed
QTimer * _timer

Detailed Description

Displays a dialog window with information about UniversalIndentGUI.

Definition at line 30 of file AboutDialog.h.


Constructor & Destructor Documentation

AboutDialog::AboutDialog ( QWidget parent = NULL,
Qt::WindowFlags  flags = 0 
)

The constructor calls the setup function for the ui created by uic and adds the GPL text to the text edit.

Definition at line 40 of file AboutDialog.cpp.

References _dialogForm, _scrollDirection, _scrollSpeed, _timer, UiGuiVersion::getBuildDate(), UiGuiVersion::getBuildRevision(), PROGRAM_VERSION_STRING, and scroll().

Here is the call graph for this function:


Member Function Documentation

void AboutDialog::changeEvent ( QEvent *  event) [private]

Catches language change events and retranslates all needed widgets.

Definition at line 105 of file AboutDialog.cpp.

References _dialogForm, UiGuiVersion::getBuildDate(), UiGuiVersion::getBuildRevision(), and PROGRAM_VERSION_STRING.

Here is the call graph for this function:

int AboutDialog::exec ( ) [slot]

Reimplements the dialog execution function to init the credits scroller.

Definition at line 122 of file AboutDialog.cpp.

References _scrollSpeed, and _timer.

Referenced by AboutDialogGraphicsView::showAboutDialog().

Here is the caller graph for this function:

void AboutDialog::scroll ( ) [private, slot]

This slot is called each _timer timeout to scroll the credits textbrowser. Also changes the scroll direction and speed when reaching the start or end.

Definition at line 133 of file AboutDialog.cpp.

References _dialogForm, _scrollDirection, _scrollSpeed, and _timer.

Referenced by AboutDialog().

Here is the caller graph for this function:

void AboutDialog::show ( ) [slot]

Shows the about dialog and also starts the credits scroller.

Definition at line 159 of file AboutDialog.cpp.

References _scrollSpeed, and _timer.


Member Data Documentation

Ui::AboutDialog* AboutDialog::_dialogForm [private]

Definition at line 47 of file AboutDialog.h.

Referenced by AboutDialog(), changeEvent(), and scroll().

Definition at line 48 of file AboutDialog.h.

Referenced by AboutDialog(), and scroll().

Definition at line 49 of file AboutDialog.h.

Referenced by AboutDialog(), exec(), scroll(), and show().

QTimer* AboutDialog::_timer [private]

Definition at line 50 of file AboutDialog.h.

Referenced by AboutDialog(), exec(), scroll(), and show().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines