Back to index

fet  5.18.0
removeredundantconfirmationform.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 "removeredundantconfirmationform.h"
00019 
00020 #include "timetable_defs.h"
00021 
00022 RemoveRedundantConfirmationForm::RemoveRedundantConfirmationForm(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 intended to be used after you inputted all data or after you used the advanced function "
00044        "of spreading the activities over the week. This function will automatically remove the redundant constraints of "
00045        "type min days between activities, so that your data is more correct and the timetable easier for FET to find");
00046        s+="\n\n";
00047        s+=tr("Removing means making their weight percentage 0.0%. This is done so you can still activate them again, if "
00048        "needed, and also for you to be able to see when they are broken, in the soft conflicts list");
00049        s+="\n\n";
00050        s+=tr("This function might be usable if you have constraints of type activities same starting time and/or "
00051        "constraints activities same starting day");
00052        s+="\n\n";
00053        s+=tr("Please SAVE/BACKUP your current file and keep it safe, in case anything goes wrong, and only continue if "
00054        "you did that already. Current function might modify much your data");
00055        
00056        plainTextEdit->setPlainText(s);
00057 }
00058 
00059 RemoveRedundantConfirmationForm::~RemoveRedundantConfirmationForm()
00060 {
00061        saveFETDialogGeometry(this);
00062 }
00063 
00064 void RemoveRedundantConfirmationForm::dontShowAgainCheckBoxToggled()
00065 {
00066        dontShowAgain=dontShowAgainCheckBox->isChecked();
00067 }