Qucs-GUI  0.0.19
Public Member Functions | Protected Slots | Private Slots | Private Member Functions | Private Attributes
ComponentDialog Class Reference

#include <componentdialog.h>

Collaboration diagram for ComponentDialog:
Collaboration graph
[legend]

Public Member Functions

 ComponentDialog (Component *, Schematic *)
 ~ComponentDialog ()

Protected Slots

void reject ()

Private Slots

void slotButtOK ()
void slotButtCancel ()
void slotSelectProperty (QTableWidgetItem *item)
void slotApplyInput ()
void slotApplyState (int State)
void slotBrowseFile ()
void slotEditFile ()
void slotApplyChange (const QString &Text)
void slotApplyProperty ()
 Is called if the "RETURN" key is pressed in the "edit" Widget.
void slotApplyPropName ()
void slotButtAdd ()
 Add description if missing.
void slotButtRem ()
 Is called if the remove button is pressed.
void slotButtUp ()
 ComponentDialog::slotButtUp Move a table item up.
void slotButtDown ()
 ComponentDialog::slotButtDown Move a table item down.
void slotSimTypeChange (int)
void slotNumberChanged (const QString &)
void slotStepChanged (const QString &)
void slotParamEntered ()
void slotSimEntered (int)
void slotValuesEntered ()
void slotStartEntered ()
void slotStopEntered ()
void slotStepEntered ()
void slotNumberEntered ()
void slotHHeaderClicked (int headerIdx)

Private Member Functions

void updateCompPropsList (void)

Private Attributes

QVBoxLayout * all
QValidator * Validator
QValidator * ValRestrict
QValidator * Validator2
QRegExp Expr
QIntValidator * ValInteger
QTableWidget * prop
QLineEdit * edit
QLineEdit * NameEdit
QLineEdit * CompNameEdit
QComboBox * ComboEdit
QLabel * Name
QLabel * Description
QPushButton * BrowseButt
QPushButton * EditButt
QPushButton * ButtAdd
QPushButton * ButtRem
QPushButton * ButtUp
QPushButton * ButtDown
QCheckBox * disp
ComponentComp
SchematicDoc
bool changed
int tx_Dist
int ty_Dist
bool setAllVisible
QLabel * textType
QLabel * textSim
QLabel * textParam
QLabel * textValues
QLabel * textStart
QLabel * textStop
QLabel * textStep
QLabel * textNumber
QLineEdit * editParam
QLineEdit * editValues
QLineEdit * editStart
QLineEdit * editStop
QLineEdit * editStep
QLineEdit * editNumber
QCheckBox * checkSim
QCheckBox * checkParam
QCheckBox * checkValues
QCheckBox * checkStart
QCheckBox * checkStop
QCheckBox * checkNumber
QCheckBox * checkType
QCheckBox * showName
QComboBox * comboSim
QComboBox * comboType

Detailed Description

Definition at line 41 of file componentdialog.h.


Constructor & Destructor Documentation

Todo:
column min width

Insert all Comp properties into the dialog prop list

Todo:
add key up/down brose and select prop

Definition at line 39 of file componentdialog.cpp.

Here is the call graph for this function:

Definition at line 476 of file componentdialog.cpp.


Member Function Documentation

void ComponentDialog::reject ( ) [protected, slot]

Definition at line 795 of file componentdialog.cpp.

Here is the call graph for this function:

void ComponentDialog::slotApplyChange ( const QString &  Text) [private, slot]
Bug:
what if the table have no items?

Definition at line 664 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotApplyInput ( ) [private, slot]

Walk the original Comp->Props and compare with the data in the dialog. The pointers to the combo, edits,... are set to 0. Only check if the widgets were created (pointers checks are 'true')

Walk the dialog list of 'prop'

Definition at line 802 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotApplyProperty ( ) [private, slot]

Is called if the "RETURN" key is pressed in the "edit" Widget.

The parameter is edited on the right pane. Return key commits the change, and steps to the next parameter in the list.

Definition at line 692 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotApplyPropName ( ) [private, slot]

Definition at line 735 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotApplyState ( int  State) [private, slot]

Definition at line 756 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotBrowseFile ( ) [private, slot]

Definition at line 1048 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotButtAdd ( ) [private, slot]

Add description if missing.

Is called if the add button is pressed. This is only possible for some properties. If desc is empy, ButtAdd is enabled, this slot handles if it is clicked. Used with: Equation, ?

Original behavior for an Equation block

  • start with props y=1 (Name, Value) Export=yes
  • add equation, results y=1 y2=1 Export=yes

Behavior: If Name already exists, set it to focus If new name, insert item after selected, set it to focus

Definition at line 1135 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotButtCancel ( ) [private, slot]

Definition at line 787 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotButtDown ( ) [private, slot]

ComponentDialog::slotButtDown Move a table item down.

Enabled for Equation component.

Definition at line 1235 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotButtOK ( ) [private, slot]

Definition at line 779 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotButtRem ( ) [private, slot]

Is called if the remove button is pressed.

This is only possible for some properties. If desc is empy, ButtRem is enabled, this slot handles if it is clicked. Used with: Equations, ?

Definition at line 1185 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotButtUp ( ) [private, slot]

ComponentDialog::slotButtUp Move a table item up.

Enabled for Equation component.

Definition at line 1208 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotEditFile ( ) [private, slot]

Definition at line 1109 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotHHeaderClicked ( int  headerIdx) [private, slot]

Definition at line 1443 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotNumberChanged ( const QString &  ) [private, slot]

Definition at line 1319 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotNumberEntered ( ) [private, slot]

Definition at line 1437 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotParamEntered ( ) [private, slot]

Definition at line 1392 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotSelectProperty ( QTableWidgetItem *  item) [private, slot]
Todo:
enable edit of description anyway... empy or "-" (no comment from verilog-a)

Definition at line 555 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotSimEntered ( int  ) [private, slot]

Definition at line 1402 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotSimTypeChange ( int  Type) [private, slot]

Definition at line 1259 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotStartEntered ( ) [private, slot]

Definition at line 1416 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotStepChanged ( const QString &  Step) [private, slot]

Definition at line 1356 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::slotStepEntered ( ) [private, slot]

Definition at line 1430 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotStopEntered ( ) [private, slot]

Definition at line 1423 of file componentdialog.cpp.

Here is the caller graph for this function:

void ComponentDialog::slotValuesEntered ( ) [private, slot]

Definition at line 1409 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ComponentDialog::updateCompPropsList ( void  ) [private]

Definition at line 486 of file componentdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

QVBoxLayout* ComponentDialog::all [private]

Definition at line 82 of file componentdialog.h.

QPushButton* ComponentDialog::BrowseButt [private]

Definition at line 90 of file componentdialog.h.

QPushButton * ComponentDialog::ButtAdd [private]

Definition at line 90 of file componentdialog.h.

QPushButton * ComponentDialog::ButtDown [private]

Definition at line 91 of file componentdialog.h.

QPushButton * ComponentDialog::ButtRem [private]

Definition at line 90 of file componentdialog.h.

QPushButton* ComponentDialog::ButtUp [private]

Definition at line 91 of file componentdialog.h.

bool ComponentDialog::changed [private]

Definition at line 95 of file componentdialog.h.

QCheckBox * ComponentDialog::checkNumber [private]

Definition at line 104 of file componentdialog.h.

QCheckBox * ComponentDialog::checkParam [private]

Definition at line 104 of file componentdialog.h.

QCheckBox* ComponentDialog::checkSim [private]

Definition at line 104 of file componentdialog.h.

QCheckBox * ComponentDialog::checkStart [private]

Definition at line 104 of file componentdialog.h.

QCheckBox * ComponentDialog::checkStop [private]

Definition at line 104 of file componentdialog.h.

QCheckBox * ComponentDialog::checkType [private]

Definition at line 104 of file componentdialog.h.

QCheckBox * ComponentDialog::checkValues [private]

Definition at line 104 of file componentdialog.h.

QComboBox* ComponentDialog::ComboEdit [private]

Definition at line 88 of file componentdialog.h.

QComboBox* ComponentDialog::comboSim [private]

Definition at line 106 of file componentdialog.h.

QComboBox * ComponentDialog::comboType [private]

Definition at line 106 of file componentdialog.h.

Definition at line 93 of file componentdialog.h.

QLineEdit * ComponentDialog::CompNameEdit [private]

Definition at line 87 of file componentdialog.h.

QLabel * ComponentDialog::Description [private]

Definition at line 89 of file componentdialog.h.

QCheckBox* ComponentDialog::disp [private]

Definition at line 92 of file componentdialog.h.

Definition at line 94 of file componentdialog.h.

QLineEdit* ComponentDialog::edit [private]

Definition at line 87 of file componentdialog.h.

QPushButton * ComponentDialog::EditButt [private]

Definition at line 90 of file componentdialog.h.

QLineEdit * ComponentDialog::editNumber [private]

Definition at line 102 of file componentdialog.h.

QLineEdit* ComponentDialog::editParam [private]

Definition at line 102 of file componentdialog.h.

QLineEdit * ComponentDialog::editStart [private]

Definition at line 102 of file componentdialog.h.

QLineEdit * ComponentDialog::editStep [private]

Definition at line 102 of file componentdialog.h.

QLineEdit * ComponentDialog::editStop [private]

Definition at line 102 of file componentdialog.h.

QLineEdit * ComponentDialog::editValues [private]

Definition at line 102 of file componentdialog.h.

QRegExp ComponentDialog::Expr [private]

Definition at line 84 of file componentdialog.h.

QLabel* ComponentDialog::Name [private]

Definition at line 89 of file componentdialog.h.

QLineEdit * ComponentDialog::NameEdit [private]

Definition at line 87 of file componentdialog.h.

QTableWidget* ComponentDialog::prop [private]

Definition at line 86 of file componentdialog.h.

Definition at line 97 of file componentdialog.h.

QCheckBox * ComponentDialog::showName [private]

Definition at line 104 of file componentdialog.h.

QLabel * ComponentDialog::textNumber [private]

Definition at line 100 of file componentdialog.h.

QLabel * ComponentDialog::textParam [private]

Definition at line 100 of file componentdialog.h.

QLabel* ComponentDialog::textSim [private]

Definition at line 100 of file componentdialog.h.

QLabel * ComponentDialog::textStart [private]

Definition at line 100 of file componentdialog.h.

QLabel * ComponentDialog::textStep [private]

Definition at line 100 of file componentdialog.h.

QLabel * ComponentDialog::textStop [private]

Definition at line 100 of file componentdialog.h.

QLabel* ComponentDialog::textType [private]

Definition at line 99 of file componentdialog.h.

QLabel * ComponentDialog::textValues [private]

Definition at line 100 of file componentdialog.h.

int ComponentDialog::tx_Dist [private]

Definition at line 96 of file componentdialog.h.

int ComponentDialog::ty_Dist [private]

Definition at line 96 of file componentdialog.h.

QValidator* ComponentDialog::Validator [private]

Definition at line 83 of file componentdialog.h.

QValidator * ComponentDialog::Validator2 [private]

Definition at line 83 of file componentdialog.h.

QIntValidator* ComponentDialog::ValInteger [private]

Definition at line 85 of file componentdialog.h.

QValidator * ComponentDialog::ValRestrict [private]

Definition at line 83 of file componentdialog.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines