AdaptiviTree Class Reference

The main window. More...

#include <adaptivitree.h>

List of all members.

Public Member Functions

 AdaptiviTree (QWidget *parent=0, Qt::WFlags flags=0)
 ~AdaptiviTree ()

Public Attributes

QString filename

Protected Member Functions

void keyPressEvent (QKeyEvent *event)

Private Slots

void openFileDialog (void)
void sliderValueChanged (int value)
void setSliderAction (int action)
void saveFileDialog (void)
void newTournament (void)
void comboBoxValueChanged (QString value)

Private Member Functions

void init (void)
void updateDisplay (Game *game)
void clearDisplay (void)
 Clears the display.
void editGameResult (Game *game)
void displayWinner (void)
void setSliderStep (int value)
void exampleTournament (void)

Private Attributes

Ui::AdaptiviTree ui
 UI for main window.
Ui::ResultDialog resultUI
 UI for result dialog.
Ui::WinnerDialog winnerUI
 UI for winner dialog.
Ui::NewDialog newUI
 UI for new tournament dialog.
QDialog * dialogResult
QDialog * dialogWinner
QDialog * dialogNew
QVector< QLineEdit * > teamInput
int comboBoxValue
int sliderAction

Detailed Description

The main window.

The main window contains the canvas where the tournament is drawn, a toolbar which contains buttons for creating a new, open an existing or save the current tournament, a display where the team names and icons as well as the result of the current game are displayed and a time slider which represents the tournament progress.

Definition at line 32 of file adaptivitree.h.


Constructor & Destructor Documentation

AdaptiviTree::AdaptiviTree ( QWidget *  parent = 0,
Qt::WFlags  flags = 0 
)

Definition at line 3 of file adaptivitree.cpp.

AdaptiviTree::~AdaptiviTree (  ) 

Definition at line 47 of file adaptivitree.cpp.


Member Function Documentation

void AdaptiviTree::clearDisplay ( void   )  [private]

Clears the display.

In the beginning no game is played so the display is empty

Definition at line 290 of file adaptivitree.cpp.

void AdaptiviTree::comboBoxValueChanged ( QString  value  )  [private, slot]

Definition at line 363 of file adaptivitree.cpp.

void AdaptiviTree::displayWinner ( void   )  [private]

Displays the winner at the end of the tournament

Definition at line 322 of file adaptivitree.cpp.

void AdaptiviTree::editGameResult ( Game game  )  [private]

Opens a dialog to edit the Game Result

Definition at line 302 of file adaptivitree.cpp.

void AdaptiviTree::exampleTournament ( void   )  [private]

An example Tournament shown at the beginning

Definition at line 413 of file adaptivitree.cpp.

void AdaptiviTree::init ( void   )  [private]

Definition at line 54 of file adaptivitree.cpp.

void AdaptiviTree::keyPressEvent ( QKeyEvent *  event  )  [protected]

Definition at line 77 of file adaptivitree.cpp.

void AdaptiviTree::newTournament ( void   )  [private, slot]

Definition at line 333 of file adaptivitree.cpp.

void AdaptiviTree::openFileDialog ( void   )  [private, slot]

Definition at line 375 of file adaptivitree.cpp.

void AdaptiviTree::saveFileDialog ( void   )  [private, slot]

Definition at line 398 of file adaptivitree.cpp.

void AdaptiviTree::setSliderAction ( int  action  )  [private, slot]

Definition at line 135 of file adaptivitree.cpp.

void AdaptiviTree::setSliderStep ( int  value  )  [private]

Definition at line 111 of file adaptivitree.cpp.

void AdaptiviTree::sliderValueChanged ( int  value  )  [private, slot]

Definition at line 157 of file adaptivitree.cpp.

void AdaptiviTree::updateDisplay ( Game game  )  [private]

Updates the display

Definition at line 274 of file adaptivitree.cpp.


Member Data Documentation

Actual value of the combobox in new-tournament dialog

Definition at line 68 of file adaptivitree.h.

QDialog* AdaptiviTree::dialogNew [private]

Definition at line 60 of file adaptivitree.h.

QDialog* AdaptiviTree::dialogResult [private]

Definition at line 58 of file adaptivitree.h.

QDialog* AdaptiviTree::dialogWinner [private]

Definition at line 59 of file adaptivitree.h.

XML file name

Definition at line 43 of file adaptivitree.h.

UI for new tournament dialog.

Definition at line 57 of file adaptivitree.h.

UI for result dialog.

Definition at line 53 of file adaptivitree.h.

Action triggered by the slider

Definition at line 72 of file adaptivitree.h.

QVector<QLineEdit*> AdaptiviTree::teamInput [private]

Vector containing Team names inserted by user

Definition at line 64 of file adaptivitree.h.

UI for main window.

Definition at line 51 of file adaptivitree.h.

UI for winner dialog.

Definition at line 55 of file adaptivitree.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 29 01:48:11 2010 for AdaptiviTree by  doxygen 1.6.3