Back to index

fet  5.18.0
Public Slots | Public Member Functions
InstitutionNameForm Class Reference

#include <institutionnameform.h>

List of all members.

Public Slots

void ok ()
void cancel ()

Public Member Functions

 InstitutionNameForm (QWidget *parent)
 ~InstitutionNameForm ()

Detailed Description

Definition at line 23 of file institutionnameform.h.


Constructor & Destructor Documentation

Definition at line 30 of file institutionnameform.cpp.

                                                       : QDialog(parent)
{
       setupUi(this);
       
       okPushButton->setDefault(true);

       connect(cancelPushButton, SIGNAL(clicked()), this, SLOT(cancel()));
       connect(okPushButton, SIGNAL(clicked()), this, SLOT(ok()));

       centerWidgetOnScreen(this);
       restoreFETDialogGeometry(this);
       
       institutionNameLineEdit->setText(gt.rules.institutionName);
       institutionNameLineEdit->selectAll();
       institutionNameLineEdit->setFocus();
}

Here is the call graph for this function:

Definition at line 47 of file institutionnameform.cpp.

Here is the call graph for this function:


Member Function Documentation

void InstitutionNameForm::cancel ( ) [slot]

Definition at line 66 of file institutionnameform.cpp.

{
       this->close();
}

Here is the caller graph for this function:

void InstitutionNameForm::ok ( ) [slot]

Definition at line 52 of file institutionnameform.cpp.

{
       if(!simulation_running)
              gt.rules.setInstitutionName(institutionNameLineEdit->text());
       else{
              QMessageBox::information(this, tr("FET information"),
                     tr("Cannot update institution name during simulation\n"
                     "Please stop simulation before this"));
              return;
       }

       this->close();
}

Here is the call graph for this function:

Here is the caller graph for this function:


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