Back to index

fet  5.18.0
activityplanningconfirmationform.cpp
Go to the documentation of this file.
00001 //
00002 //
00003 // Description: This file is part of FET
00004 //
00005 //
00006 // Author: Lalescu Liviu <Please see http://lalescu.ro/liviu/ for details about contacting Liviu Lalescu (in particular, you can find here the e-mail address)>
00007 // Copyright (C) 2003 Liviu Lalescu <http://lalescu.ro/liviu/>
00008 //
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "activityplanningconfirmationform.h"
00019 
00020 #include "timetable_defs.h"
00021 
00022 ActivityPlanningConfirmationForm::ActivityPlanningConfirmationForm(QWidget* parent): QDialog(parent)
00023 {
00024        setupUi(this);
00025        
00026        continuePushButton->setDefault(true);
00027        
00028        connect(continuePushButton, SIGNAL(clicked()), this, SLOT(accept()));
00029        connect(cancelPushButton, SIGNAL(clicked()), this, SLOT(reject()));
00030        connect(dontShowAgainCheckBox, SIGNAL(stateChanged(int)), this, SLOT(dontShowAgainCheckBoxToggled()));
00031        
00032        dontShowAgain=dontShowAgainCheckBox->isChecked();
00033        
00034        plainTextEdit->setReadOnly(true);
00035 
00036        centerWidgetOnScreen(this);
00037        restoreFETDialogGeometry(this);
00038        
00039        QString s;
00040        
00041        s+=tr("Please read carefully the description below:");
00042        s+="\n\n";
00043        //s+=tr("This function is new and not thoroughly tested. Please report any problems.");
00044        //s+=" ";
00045        //s+=tr("It might be a good idea to backup your current data file before proceeding.");
00046        //s+="\n\n";
00047        s+=tr("This is a simple activity planning dialog. You need to add all teachers, "
00048               "subjects and the students structure before you can work with it. It "
00049               "is also recommended to add the necessary activity tags before using this dialog.");
00050        s+="\n\n";
00051        s+=tr("The main work will be done in the upper table with the students-subjects "
00052               "matrix. Select an 'action' from the right side and activate a table cell to do that "
00053               "action (activate with the mouse double-click or click, depending on your platform, or by pressing Enter). "
00054               "The number of hours is summed in the heading, so "
00055               "you can always check if your planning fits your needs.");
00056        s+="\n\n";
00057        s+=tr("You can also double click the tables heading to do an action to the whole row/column.");
00058        s+="\n\n";
00059        s+=tr("You can change size of the tables by using the splitter between the tables.");
00060        s+="\n\n";
00061        s+=tr("Pseudo activities are (sometimes) difficult to see in the tables, so "
00062               "you can view them quickly with the corresponding push button.");
00063        s+="\n\n";
00064        s+=tr("You have also a facility to hide/show the buttons on the right. This is useful "
00065               "if you need more space for the tables. With the buttons shown (default), there is available a "
00066               "'Hide buttons' command. When you press it, all the other buttons will be hidden and you will have only "
00067               "one small button remaining. Press it and all the buttons will be shown again.");
00068        s+=" ";
00069        s+=tr("If the buttons are hidden, when you will double-click or click the mouse on the tables or press Enter "
00070               "on a table cell, the command that will be done is the one which was selected when the buttons were not hidden.");
00071        
00072        plainTextEdit->setPlainText(s);
00073 }
00074 
00075 ActivityPlanningConfirmationForm::~ActivityPlanningConfirmationForm()
00076 {
00077        saveFETDialogGeometry(this);
00078 }
00079 
00080 void ActivityPlanningConfirmationForm::dontShowAgainCheckBoxToggled()
00081 {
00082        dontShowAgain=dontShowAgainCheckBox->isChecked();
00083 }