Back to index

fet  5.18.0
timetableshowconflictsform.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 "timetableshowconflictsform.h"
00019 
00020 #include "timetable.h"
00021 
00022 #include <QString>
00023 
00024 extern Timetable gt;
00025 extern QString conflictsStringTitle;
00026 extern QString conflictsString;
00027 
00028 TimetableShowConflictsForm::TimetableShowConflictsForm(QWidget* parent): QDialog(parent)
00029 {
00030        setupUi(this);
00031        
00032        closePushButton->setDefault(true);
00033 
00034        conflictsTextEdit->setReadOnly(true);
00035 
00036        connect(closePushButton, SIGNAL(clicked()), this, SLOT(close()));
00037 
00038        centerWidgetOnScreen(this);
00039        restoreFETDialogGeometry(this);
00040        
00041        setWindowTitle(conflictsStringTitle);
00042        conflictsTextEdit->setPlainText(conflictsString);
00043 }
00044 
00045 TimetableShowConflictsForm::~TimetableShowConflictsForm()
00046 {
00047        saveFETDialogGeometry(this);
00048 }