Back to index

fet  5.18.0
Public Slots | Public Member Functions | Public Attributes
SaveTimetableConfirmationForm Class Reference

#include <savetimetableconfirmationform.h>

List of all members.

Public Slots

void dontShowAgainCheckBoxToggled ()

Public Member Functions

 SaveTimetableConfirmationForm (QWidget *parent)
 ~SaveTimetableConfirmationForm ()

Public Attributes

bool dontShowAgain

Detailed Description

Definition at line 23 of file savetimetableconfirmationform.h.


Constructor & Destructor Documentation

Definition at line 22 of file savetimetableconfirmationform.cpp.

                                                                           : QDialog(parent)
{
       setupUi(this);
       
       continuePushButton->setDefault(true);
       
       connect(continuePushButton, SIGNAL(clicked()), this, SLOT(accept()));
       connect(cancelPushButton, SIGNAL(clicked()), this, SLOT(reject()));
       connect(dontShowAgainCheckBox, SIGNAL(stateChanged(int)), this, SLOT(dontShowAgainCheckBoxToggled()));

       dontShowAgain=dontShowAgainCheckBox->isChecked();
       
       plainTextEdit->setReadOnly(true);

       centerWidgetOnScreen(this);
       restoreFETDialogGeometry(this);
       
       QString s;
       
       s+=tr("Please read carefully the description below:");
       s+="\n\n";

       s+=tr("This option is only useful if you need to lock current timetable into a file."
        " Locking means that there will be added constraints activity preferred starting time and"
        " activity preferred room with 100% importance for each activity to fix it at current place in current timetable."
        " You can save this timetable as an ordinary .fet file; when you'll open it, you'll see all old inputted data (activities, teachers, etc.)" 
        " and the locking constraints as the last time/space constraints."
        " You can unlock some of these activities (by removing constraints) if small changes appear in the configuration, and generate again"
        " and the remaining locking constraints will be respected.");
       s+="\n\n";
       s+=tr("The added constraints will have the 'permanently locked' tag set to false, so you can also unlock the activities from the "
        "'Timetable' menu, without interfering with the initial constraints which are made by you 'permanently locked'");
       s+="\n\n";
       s+=tr("This option is useful for institutions where you obtain a timetable, then some small changes appear,"
        " and you need to regenerate timetable, but respecting in a large proportion the old timetable");
       s+="\n\n";
       s+=tr("Current data file will not be affected by anything, locking constraints will only be added to the file you select to save"
        " (you can save current datafile and open saved timetable file after that to check it)");
       
       plainTextEdit->setPlainText(s);
}

Here is the call graph for this function:

Definition at line 64 of file savetimetableconfirmationform.cpp.

Here is the call graph for this function:


Member Function Documentation

Definition at line 69 of file savetimetableconfirmationform.cpp.

{
       dontShowAgain=dontShowAgainCheckBox->isChecked();
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 28 of file savetimetableconfirmationform.h.


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