Public Slots | |
void | setTime (const QDateTime &time) |
Public Member Functions | |
void | start () |
void | loadControllers (const QList< control::ControllerInterface * > &c) |
bool | askQuestion (const QString &before, QAbstractItemModel *model=0, const QString &after=QString()) |
control::data::SelectionData | getSelection (const QString &before, QAbstractItemModel *model, SelectionMode mode=SingleSelection, const QString &after="") |
control::data::TaskDetails | getTaskDetails (const control::data::TaskRepresentation &rep) |
control::data::ReservationDetails | getReservationDetails (control::ResourceReservationModel *reservations) |
control::data::ResourceDetails | getResourceDetails (const QStringList &types) |
control::data::ProjectDetails | getProjectDetails () |
control::data::StringInputData | getChoice (const QStringList &options, const QString &message) |
control::data::StringInputData | showTaskDetails (const control::data::TaskRepresentation &rep, const QStringList &options=QStringList(), bool editMode=false) |
control::data::SelectionData | getInvitationSelection (control::InvitationModel *pending, control::InvitationModel *accepted) |
void | showModel (QAbstractItemModel *model, const QString &message) |
void | setOverview (const control::data::OverviewDetails &details) |
void | showError (const QString &message) |
void | showWarning (const QString &message) |
void | showMessage (const QString &message) |
control::data::MinMaxDurationData | getMinMaxDuration (const QString &message) |
control::data::StringInputData | getText (const QString &message) |
control::data::IntInputData | getInt (const QString &message, int value=0, int minValue=-2147483647, int maxValue=2147483647) |
QString | getOpenFileName (const QString &dir=QString(), const QString &filter=QString()) |
QString | getSaveFileName (const QString &dir=QString(), const QString &filter=QString()) |
control::data::DateTimeInputData | getDateTime (const QString &message=QString()) |
Private Member Functions | |
void | setUsername (const QString &name) |
Private Attributes | |
QMainWindow | window |
ui::OverviewWidget * | overviewWidget |
QLabel * | userLabel |
QLabel * | timeLabel |
Definition at line 16 of file gui.h.
bool Gui::askQuestion | ( | const QString & | before, | |
QAbstractItemModel * | model = 0 , |
|||
const QString & | after = QString() | |||
) | [virtual] |
Presents the user with a question which can be answered positive or negative. The return value is the answer of the user.
before | The message that is presented to the user. | |
model | An optional list shown to the user. | |
after | A message presented to the user after the list. If model is 0, this message is displayed right after before . |
Implements ui::UiInterface.
control::data::StringInputData Gui::getChoice | ( | const QStringList & | options, | |
const QString & | message | |||
) | [virtual] |
Presents the user with a choice.
options | The possible options | |
message | The message that is presented to the user |
Implements ui::UiInterface.
control::data::IntInputData Gui::getInt | ( | const QString & | message, | |
int | value = 0 , |
|||
int | minValue = -2147483647 , |
|||
int | maxValue = 2147483647 | |||
) | [virtual] |
Presents the user with a message and the ability to input an int.
message | The message to show | |
value | The value that should be filled in by default. |
Implements ui::UiInterface.
QString Gui::getOpenFileName | ( | const QString & | dir = QString() , |
|
const QString & | filter = QString() | |||
) | [virtual] |
Lets the user choose a file to open.
dir | The default directory to show | |
filter | The extention filter. Only directories or files with the given extention are shown |
Implements ui::UiInterface.
control::data::ProjectDetails Gui::getProjectDetails | ( | ) | [virtual] |
Presents the user with a way to choose the details of a project.
Implements ui::UiInterface.
Definition at line 212 of file gui.cpp.
control::data::ResourceDetails Gui::getResourceDetails | ( | const QStringList & | types | ) | [virtual] |
Presents the user with a way to choose the details of a resource.
types | The types from which to select the new resourcetype |
Implements ui::UiInterface.
Definition at line 197 of file gui.cpp.
QString Gui::getSaveFileName | ( | const QString & | dir = QString() , |
|
const QString & | filter = QString() | |||
) | [virtual] |
Lets the user choose a file to save to.
dir | The default directory to show | |
filter | The extention filter. Only directories or files with the given extention are shown |
Implements ui::UiInterface.
control::data::SelectionData Gui::getSelection | ( | const QString & | before, | |
QAbstractItemModel * | model, | |||
SelectionMode | mode = SingleSelection , |
|||
const QString & | after = "" | |||
) | [virtual] |
Presents the user with a list of objects which to choose from the selected object(s) is/are.
before | The string the will be displayed before the model | |
model | The model that contains the list of objects from which to choose. | |
mode | Specifies the selection type. Either only one selection is allowed, or either multiple. | |
after | The string that will be displayed after the model |
Implements ui::UiInterface.
control::data::TaskDetails Gui::getTaskDetails | ( | const control::data::TaskRepresentation & | rep | ) | [virtual] |
Presents the user with a way to choose the details of a task.
tasks | The list of tasks that are presented as possible subtask of the task that is specified | |
resources | The list of resources that are presented as possible needed resources for the task that is specified | |
details | Other data to be filled for the task that is specified |
Implements ui::UiInterface.
Definition at line 156 of file gui.cpp.
control::data::StringInputData Gui::getText | ( | const QString & | message | ) | [virtual] |
Presents the user with a message and provides means for a user String input.
message | The message to be shown |
Implements ui::UiInterface.
void Gui::loadControllers | ( | const QList< control::ControllerInterface * > & | c | ) | [virtual] |
Loads the controllers into the userinterface.
c | The controllers to be loaded |
Reimplemented from ui::UiInterface.
Definition at line 41 of file gui.cpp.
void Gui::setOverview | ( | const control::data::OverviewDetails & | details | ) | [virtual] |
Shows the user the given models.
Implements ui::UiInterface.
void Gui::showError | ( | const QString & | message | ) | [virtual] |
Shows the user an error message.
message | The message to be shown |
Implements ui::UiInterface.
void Gui::showMessage | ( | const QString & | message | ) | [virtual] |
void Gui::showModel | ( | QAbstractItemModel * | model, | |
const QString & | message | |||
) | [virtual] |
control::data::StringInputData Gui::showTaskDetails | ( | const control::data::TaskRepresentation & | rep, | |
const QStringList & | options = QStringList() , |
|||
bool | editMode = false | |||
) | [virtual] |
Presents the user with the details of a task and providesthe means to present the user with some options.
tasks | The tasks that are presented as subtasks of the task | |
resources | The resources that are presented as the resources of the task | |
details | The task details that are presented for the task | |
options | The list of possible options | |
editMode | bool whether the shown info is editable |
Implements ui::UiInterface.
Definition at line 241 of file gui.cpp.
void Gui::showWarning | ( | const QString & | message | ) | [virtual] |
Shows the user a warning message.
message | The message to be shown |
Implements ui::UiInterface.
void Gui::start | ( | ) | [virtual] |
Starts the presentation of the userinterface.
Implements ui::UiInterface.
Definition at line 430 of file gui.cpp.