00001 00012 #include "EditModelDialog.h" 00013 00014 #include "qlineedit.h" 00015 #include "qspinbox.h" 00016 00017 #include <cassert> 00018 00019 EditModelDialog:: 00020 EditModelDialog ( QWidget * parent ,const std :: string & name, 00021 double bp , double fw, double cs, int mbp , int mfw,int mcs ) 00022 : EditModelDialogBase ( parent ) 00023 { 00024 00025 model_name -> setText( QString (name.c_str() ) ); 00026 int b = static_cast <int> ( mbp * bp ); 00027 int f = static_cast <int> ( mfw * fw ); 00028 int c = static_cast <int> ( mcs * cs ); 00029 brk_pt -> setValue ( b ); 00030 flat_width -> setValue ( f ); 00031 color_scale -> setValue ( c ); 00032 00033 } 00034 00035 00036 00037 int EditModelDialog:: 00038 get_brk_pt ( ) 00039 { 00040 return brk_pt -> value ( ); 00041 } 00042 00043 int EditModelDialog:: 00044 get_flat_width ( ) 00045 { 00046 return flat_width -> value ( ); 00047 } 00048 00049 int EditModelDialog:: 00050 get_color_scale ( ) 00051 { 00052 return color_scale -> value ( ); 00053 } 00054 00055 00056 QString EditModelDialog:: 00057 get_model_name ( ) 00058 { 00059 return model_name -> text (); 00060 } 00061