Back to index

fet  5.18.0
Public Slots | Public Member Functions
CommentsForm Class Reference

#include <commentsform.h>

List of all members.

Public Slots

void ok ()
void cancel ()

Public Member Functions

 CommentsForm (QWidget *parent)
 ~CommentsForm ()

Detailed Description

Definition at line 23 of file commentsform.h.


Constructor & Destructor Documentation

CommentsForm::CommentsForm ( QWidget *  parent)

!!Do NOT set commentsTextEdit read only

Definition at line 30 of file commentsform.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);
       
       commentsTextEdit->setPlainText(gt.rules.comments);
       commentsTextEdit->selectAll();
       commentsTextEdit->setFocus();
}

Here is the call graph for this function:

Definition at line 49 of file commentsform.cpp.

Here is the call graph for this function:


Member Function Documentation

void CommentsForm::cancel ( ) [slot]

Definition at line 68 of file commentsform.cpp.

{
       this->close();
}

Here is the caller graph for this function:

void CommentsForm::ok ( ) [slot]

Definition at line 54 of file commentsform.cpp.

{
       if(!simulation_running)
              gt.rules.setComments(commentsTextEdit->toPlainText());
       else{
              QMessageBox::information(this, tr("FET information"),
                     tr("Cannot update comments during simulation."
                     " 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: