UltraScan III
List of all members | Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes
US_ModelEditor Class Reference

A window to edit a model for simulation. More...

#include "us_model_editor.h"

Inheritance diagram for US_ModelEditor:
Inheritance graph
[legend]
Collaboration diagram for US_ModelEditor:
Collaboration graph
[legend]

Public Member Functions

 US_ModelEditor (ModelSystem &, QWidget *=0, Qt::WindowFlags=0)
 
- Public Member Functions inherited from US_WidgetsDialog
 US_WidgetsDialog (QWidget *, Qt::WindowFlags)
 
QLabel * us_label (const QString &, int=0, int=QFont::Bold)
 
QLabel * us_textlabel (const QString &, int=-1, int=QFont::Bold)
 
QLabel * us_banner (const QString &, int=0, int=QFont::Bold)
 
QPushButton * us_pushbutton (const QString &, bool=true, int=0)
 
QTextEdit * us_textedit (void)
 
QLineEdit * us_lineedit (const QString &=0, int=0, bool=false)
 
void us_setReadOnly (QLineEdit *, bool=true)
 
void us_setReadOnly (QTextEdit *, bool=true)
 
QListWidget * us_listwidget (int=0)
 
QGridLayout * us_checkbox (const QString &, QCheckBox *&, bool=false)
 
QGridLayout * us_radiobutton (const QString &text, QRadioButton *&rb, bool state=false)
 
QProgressBar * us_progressBar (int, int, int=0)
 
QComboBox * us_comboBox (void)
 
QLCDNumber * us_lcd (int, int=0)
 
QwtCounter * us_counter (int, double, double, double=0.0)
 
QwtPlot * us_plot (const QString &, const QString &=QString(), const QString &=QString())
 
QwtPlotGrid * us_grid (QwtPlot *)
 
QwtPlotCurve * us_curve (QwtPlot *, const QString &)
 
QwtPlotPicker * us_picker (QwtPlot *)
 
QTabWidget * us_tabwidget (int=0, int=QFont::Bold)
 

Private Types

enum  { PROLATE, OBLATE, ROD, SPHERE }
 

Private Slots

void help (void)
 
void update_shape (void)
 
void change_component1 (int)
 
void change_spinbox (int)
 
void get_vbar (void)
 
void simulate_component (void)
 
void select_shape (int)
 
void load_c0 (void)
 
void load_model (void)
 
void save_model (void)
 
void accept_model (void)
 
void update_sed (const QString &)
 
void update_diff (const QString &)
 
void update_extinction (const QString &)
 
void update_vbar (const QString &)
 
void update_vbar (double)
 
void update_mw (const QString &)
 
void update_f_f0 (const QString &)
 
void update_conc (const QString &)
 
void update_keq (const QString &)
 
void update_koff (const QString &)
 
void update_sigma (const QString &)
 
void update_delta (const QString &)
 

Private Member Functions

void update_sD (void)
 
bool verify_model (void)
 
void error (const QString &)
 
void update_component (void)
 

Private Attributes

US_Help showhelp
 
int component
 
int shape
 
QLabel * lb_header
 
QLineEdit * le_sed
 
QLineEdit * le_diff
 
QLineEdit * le_extinction
 
QLineEdit * le_vbar
 
QLineEdit * le_mw
 
QLineEdit * le_f_f0
 
QLineEdit * le_conc
 
QLineEdit * le_c0
 
QLineEdit * le_koff
 
QLineEdit * le_keq
 
QLineEdit * le_sigma
 
QLineEdit * le_delta
 
QLineEdit * le_stoich
 
QComboBox * cmb_component1
 
QListWidget * cmb_component2
 
QSpinBox * sb_count
 
QPushButton * pb_vbar
 
QPushButton * pb_load_c0
 
QRadioButton * rb_rod
 
QRadioButton * rb_oblate
 
QRadioButton * rb_sphere
 
QRadioButton * rb_prolate
 
QString c0_file
 
ModelSystem & model
 
US_Hydrosim simcomp
 

Additional Inherited Members

- Public Attributes inherited from US_WidgetsDialog
US_Global g
 Connect to global memory and make the values accessible. More...
 
QPalette vlgray
 Very light gray palette for read-only line edits. More...
 

Detailed Description

A window to edit a model for simulation.

Definition at line 13 of file us_model_editor.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
PROLATE 
OBLATE 
ROD 
SPHERE 

Definition at line 29 of file us_model_editor.h.

Constructor & Destructor Documentation

US_ModelEditor::US_ModelEditor ( ModelSystem &  current_model,
QWidget *  p = 0,
Qt::WindowFlags  f = 0 
)
Parameters
current_model- Location of model structure for editing
p- Parent widget, normally not specified
f- Window flags, normally not specified

Definition at line 9 of file us_model_editor.cpp.

Member Function Documentation

void US_ModelEditor::accept_model ( void  )
privateslot

Definition at line 713 of file us_model_editor.cpp.

void US_ModelEditor::change_component1 ( int  index)
privateslot

Definition at line 275 of file us_model_editor.cpp.

void US_ModelEditor::change_spinbox ( int  value)
privateslot

Definition at line 286 of file us_model_editor.cpp.

void US_ModelEditor::error ( const QString &  message)
private

Definition at line 879 of file us_model_editor.cpp.

void US_ModelEditor::get_vbar ( void  )
privateslot

Definition at line 461 of file us_model_editor.cpp.

void US_ModelEditor::help ( void  )
inlineprivateslot

Definition at line 72 of file us_model_editor.h.

void US_ModelEditor::load_c0 ( void  )
privateslot

Definition at line 539 of file us_model_editor.cpp.

void US_ModelEditor::load_model ( void  )
privateslot

Definition at line 605 of file us_model_editor.cpp.

void US_ModelEditor::save_model ( void  )
privateslot

Definition at line 676 of file us_model_editor.cpp.

void US_ModelEditor::select_shape ( int  new_shape)
privateslot

Definition at line 486 of file us_model_editor.cpp.

void US_ModelEditor::simulate_component ( void  )
privateslot

Definition at line 474 of file us_model_editor.cpp.

void US_ModelEditor::update_component ( void  )
private

Definition at line 299 of file us_model_editor.cpp.

void US_ModelEditor::update_conc ( const QString &  text)
privateslot

Definition at line 800 of file us_model_editor.cpp.

void US_ModelEditor::update_delta ( const QString &  text)
privateslot

Definition at line 752 of file us_model_editor.cpp.

void US_ModelEditor::update_diff ( const QString &  text)
privateslot

Definition at line 728 of file us_model_editor.cpp.

void US_ModelEditor::update_extinction ( const QString &  text)
privateslot

Definition at line 736 of file us_model_editor.cpp.

void US_ModelEditor::update_f_f0 ( const QString &  text)
privateslot

Definition at line 792 of file us_model_editor.cpp.

void US_ModelEditor::update_keq ( const QString &  text)
privateslot

Definition at line 828 of file us_model_editor.cpp.

void US_ModelEditor::update_koff ( const QString &  text)
privateslot

Definition at line 854 of file us_model_editor.cpp.

void US_ModelEditor::update_mw ( const QString &  text)
privateslot

Definition at line 777 of file us_model_editor.cpp.

void US_ModelEditor::update_sD ( void  )
private

Definition at line 441 of file us_model_editor.cpp.

void US_ModelEditor::update_sed ( const QString &  text)
privateslot

Definition at line 720 of file us_model_editor.cpp.

void US_ModelEditor::update_shape ( void  )
privateslot

Definition at line 492 of file us_model_editor.cpp.

void US_ModelEditor::update_sigma ( const QString &  text)
privateslot

Definition at line 744 of file us_model_editor.cpp.

void US_ModelEditor::update_vbar ( const QString &  text)
privateslot

Definition at line 762 of file us_model_editor.cpp.

void US_ModelEditor::update_vbar ( double  vbar)
privateslot

Definition at line 469 of file us_model_editor.cpp.

bool US_ModelEditor::verify_model ( void  )
private

Definition at line 884 of file us_model_editor.cpp.

Member Data Documentation

QString US_ModelEditor::c0_file
private

Definition at line 60 of file us_model_editor.h.

QComboBox* US_ModelEditor::cmb_component1
private

Definition at line 47 of file us_model_editor.h.

QListWidget* US_ModelEditor::cmb_component2
private

Definition at line 48 of file us_model_editor.h.

int US_ModelEditor::component
private

Definition at line 27 of file us_model_editor.h.

QLabel* US_ModelEditor::lb_header
private

Definition at line 31 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_c0
private

Definition at line 40 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_conc
private

Definition at line 39 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_delta
private

Definition at line 44 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_diff
private

Definition at line 34 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_extinction
private

Definition at line 35 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_f_f0
private

Definition at line 38 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_keq
private

Definition at line 42 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_koff
private

Definition at line 41 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_mw
private

Definition at line 37 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_sed
private

Definition at line 33 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_sigma
private

Definition at line 43 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_stoich
private

Definition at line 45 of file us_model_editor.h.

QLineEdit* US_ModelEditor::le_vbar
private

Definition at line 36 of file us_model_editor.h.

ModelSystem& US_ModelEditor::model
private

Definition at line 62 of file us_model_editor.h.

QPushButton* US_ModelEditor::pb_load_c0
private

Definition at line 53 of file us_model_editor.h.

QPushButton* US_ModelEditor::pb_vbar
private

Definition at line 52 of file us_model_editor.h.

QRadioButton* US_ModelEditor::rb_oblate
private

Definition at line 56 of file us_model_editor.h.

QRadioButton* US_ModelEditor::rb_prolate
private

Definition at line 58 of file us_model_editor.h.

QRadioButton* US_ModelEditor::rb_rod
private

Definition at line 55 of file us_model_editor.h.

QRadioButton* US_ModelEditor::rb_sphere
private

Definition at line 57 of file us_model_editor.h.

QSpinBox* US_ModelEditor::sb_count
private

Definition at line 50 of file us_model_editor.h.

int US_ModelEditor::shape
private

Definition at line 28 of file us_model_editor.h.

US_Help US_ModelEditor::showhelp
private

Definition at line 25 of file us_model_editor.h.

US_Hydrosim US_ModelEditor::simcomp
private

Definition at line 63 of file us_model_editor.h.


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