Back to index

fet  5.18.0
Public Slots | Public Member Functions
SettingsTimetableHtmlLevelForm Class Reference

#include <settingstimetablehtmllevelform.h>

List of all members.

Public Slots

void ok ()
void cancel ()

Public Member Functions

 SettingsTimetableHtmlLevelForm (QWidget *parent)
 ~SettingsTimetableHtmlLevelForm ()

Detailed Description

Definition at line 23 of file settingstimetablehtmllevelform.h.


Constructor & Destructor Documentation

Definition at line 26 of file settingstimetablehtmllevelform.cpp.

                                                                             : QDialog(parent)
{
       setupUi(this);
       
       okPushButton->setDefault(true);
       
       connect(okPushButton, SIGNAL(clicked()), this, SLOT(ok()));
       connect(cancelPushButton, SIGNAL(clicked()), this, SLOT(cancel()));
       
       centerWidgetOnScreen(this);
       restoreFETDialogGeometry(this);
              
       if(TIMETABLE_HTML_LEVEL==0)
              level0RadioButton->setChecked(true);
       else if(TIMETABLE_HTML_LEVEL==1)
              level1RadioButton->setChecked(true);
       else if(TIMETABLE_HTML_LEVEL==2)
              level2RadioButton->setChecked(true);
       else if(TIMETABLE_HTML_LEVEL==3)
              level3RadioButton->setChecked(true);
       else if(TIMETABLE_HTML_LEVEL==4)
              level4RadioButton->setChecked(true);
       else if(TIMETABLE_HTML_LEVEL==5)
              level5RadioButton->setChecked(true);
       else if(TIMETABLE_HTML_LEVEL==6)
              level6RadioButton->setChecked(true);
}

Here is the call graph for this function:

Definition at line 54 of file settingstimetablehtmllevelform.cpp.

Here is the call graph for this function:


Member Function Documentation

Definition at line 98 of file settingstimetablehtmllevelform.cpp.

{
       this->close();
}

Here is the caller graph for this function:

Definition at line 59 of file settingstimetablehtmllevelform.cpp.

{
       int level=-1;
       if(level0RadioButton->isChecked())
              level=0;
       else if(level1RadioButton->isChecked())
              level=1;
       else if(level2RadioButton->isChecked())
              level=2;
       else if(level3RadioButton->isChecked())
              level=3;
       else if(level4RadioButton->isChecked())
              level=4;
       else if(level5RadioButton->isChecked())
              level=5;
       else if(level6RadioButton->isChecked())
              level=6;
       else{
              QMessageBox::warning(this, tr("FET warning"), tr("No level selected"));
              return;
       }
       
       assert(level>=0);

       if(level>=3){
              int t=QMessageBox::information(this, tr("FET information"), tr("This level might generate very large timetables, maybe 1 MB per file"
               " and 20 MB for all files of a timetable or even more."
               " Are you sure you have enough disk space?"),
               QMessageBox::Yes, QMessageBox::Cancel);
                                                                       
              if(t==QMessageBox::Cancel)
                     return;
       }
       
       TIMETABLE_HTML_LEVEL=level;
       
       this->close();
}

Here is the caller graph for this function:


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