#include <Iguana/GLBrowsers/interface/IgQtRangeControlCommon.h>
Definition at line 24 of file IgQtRangeControlCommon.h.
enum IgQtRangeControlCommon::MoveDirection [protected] |
StepperPart | Makes the control behave in rotation-like manner measuring degrees. |
ValuePart | |
SliderPart | |
IndexPart | |
AllParts |
Definition at line 33 of file IgQtRangeControlCommon.h.
00033 { 00035 StepperPart = 1, 00036 ValuePart = 2, 00037 SliderPart = 4, 00038 IndexPart = 8, 00039 AllParts = (StepperPart 00040 | ValuePart 00041 | SliderPart 00042 | IndexPart) 00043 };
IgQtRangeControlCommon::IgQtRangeControlCommon | ( | QWidget * | parent, | |
int | parts, | |||
const char * | name = 0 | |||
) |
Definition at line 29 of file IgQtRangeControlCommon.cc.
00031 : m_stepType (ADD), 00032 m_fwdEnabled (true), 00033 m_revEnabled (true), 00034 m_widget (new QFrame (parent, name)), 00035 m_layout (0), 00036 m_row (0), 00037 m_revMin (0), 00038 m_revLong (0), 00039 m_revSmall (0), 00040 m_text (0), 00041 m_fwdSmall (0), 00042 m_fwdLong (0), 00043 m_fwdMax (0), 00044 m_slider (0), 00045 m_resetChangedValue (0), 00046 m_editSettingMenu (0), 00047 m_editSettingMenuIndex (-1), 00048 m_valueEditable (true), 00049 m_stepEditable (true), 00050 m_rangeEditable (true), 00051 m_precisionEditable (true), 00052 m_emitSettingsChanged (true) 00053 { }
void IgQtRangeControlCommon::addFwdButton | ( | QWidget * | w | ) |
Definition at line 281 of file IgQtRangeControlCommon.cc.
References addFwdWidget(), HLT_VtxMuL3::connect, and fwdSmall().
Referenced by Ig3DVectorBaseControl::makeControl().
00282 { 00283 addFwdWidget (w); 00284 connect (w, SIGNAL(clicked()), this, SLOT (fwdSmall ())); 00285 }
void IgQtRangeControlCommon::addFwdWidget | ( | QWidget * | w | ) |
Definition at line 295 of file IgQtRangeControlCommon.cc.
References insertWidget().
Referenced by addFwdButton().
00296 { insertWidget (w, -1); }
void IgQtRangeControlCommon::addRevButton | ( | QWidget * | w | ) |
Definition at line 288 of file IgQtRangeControlCommon.cc.
References addRevWidget(), HLT_VtxMuL3::connect, and revSmall().
Referenced by Ig3DVectorBaseControl::makeControl().
00289 { 00290 addRevWidget (w); 00291 connect (w, SIGNAL(clicked()), this, SLOT (revSmall ())); 00292 }
void IgQtRangeControlCommon::addRevWidget | ( | QWidget * | w | ) |
Definition at line 299 of file IgQtRangeControlCommon.cc.
References insertWidget().
Referenced by addRevButton().
00300 { insertWidget (w, 0); }
void IgQtRangeControlCommon::addSettingItem | ( | const QString & | item, | |
QString & | setting | |||
) | [static] |
Definition at line 417 of file IgQtRangeControlCommon.cc.
Referenced by IgQtRangeControlImp< short >::getSettingString(), Ig3DVectorBaseControl::getSettingString(), IgQtRangeControlFloat::getSettingString(), IgQtRangeMControlFloat::getSettingString(), Ig3DRotationFControl::getSettingString(), and IgQtRangeMControlImp< short >::getSettingString().
00418 { 00419 if (setting.isEmpty ()) 00420 setting = item; 00421 else 00422 setting += ":" + item; 00423 }
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 334 of file IgQtRangeControlCommon.cc.
Referenced by initialize().
Definition at line 330 of file IgQtRangeControlCommon.cc.
References isEmitSettingsChanged(), and settingsChanged().
Referenced by IgQtRangeMControlImp< short >::editSettings(), IgQtRangeControlImp< short >::editSettings(), IgQtRangeMControlFloat::editSettings(), IgQtRangeControlFloat::editSettings(), IgQtRangeMControlFloat::setLongStep(), IgQtRangeControlImp< short >::setLongStep(), IgQtRangeMControlImp< short >::setLongStep(), IgQtRangeControlFloat::setLongStep(), IgQtRangeMControlFloat::setPrecision(), IgQtRangeControlFloat::setPrecision(), IgQtRangeMControlImp< short >::setRange(), IgQtRangeControlImp< short >::setRange(), IgQtRangeMControlFloat::setRange(), IgQtRangeControlFloat::setRange(), IgQtRangeControlImp< short >::setSettingString(), IgQtRangeMControlImp< short >::setSettingString(), IgQtRangeControlFloat::setSettingString(), IgQtRangeMControlFloat::setSettingString(), IgQtRangeControlImp< short >::setSmallStep(), IgQtRangeMControlFloat::setSmallStep(), IgQtRangeControlFloat::setSmallStep(), and IgQtRangeMControlImp< short >::setSmallStep().
00331 { if (isEmitSettingsChanged ()) emit settingsChanged (); }
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlInt, IgQtRangeControlLong, IgQtRangeControlShort, IgQtRangeControlUInt, IgQtRangeControlULong, IgQtRangeControlUShort, IgQtRangeMControlFloat, IgQtRangeMControlInt, IgQtRangeMControlLong, IgQtRangeMControlShort, IgQtRangeMControlUInt, IgQtRangeMControlULong, and IgQtRangeMControlUShort.
Definition at line 242 of file IgQtRangeControlCommon.cc.
Referenced by IgQtRangeMControlImp< T >::setDirty(), and IgQtRangeControlImp< T >::setDirty().
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 257 of file IgQtRangeControlCommon.cc.
References m_fwdEnabled, m_fwdLong, m_fwdMax, and m_fwdSmall.
Referenced by IgQtRangeControlImp< short >::fwdEnable(), IgQtRangeMControlImp< short >::fwdEnable(), IgQtRangeMControlFloat::fwdEnable(), and IgQtRangeControlFloat::fwdEnable().
00258 { 00259 if (m_fwdSmall && m_fwdEnabled != value) 00260 { 00261 m_fwdSmall->setEnabled (value); 00262 m_fwdLong->setEnabled (value); 00263 m_fwdMax->setEnabled (value); 00264 m_fwdEnabled = value; 00265 } 00266 }
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 234 of file IgQtRangeControlCommon.cc.
Referenced by initialize().
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 238 of file IgQtRangeControlCommon.cc.
Referenced by initialize().
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 230 of file IgQtRangeControlCommon.cc.
Referenced by addFwdButton(), and initialize().
QString IgQtRangeControlCommon::getSettingItem | ( | QString & | setting | ) | [static] |
Definition at line 399 of file IgQtRangeControlCommon.cc.
References index.
Referenced by Ig3DAxisRotationControl::Ig3DAxisRotationControl(), Ig3DVectorBaseControl::Ig3DVectorBaseControl(), IgQtRangeControlFloat::setSettingString(), and IgQtRangeMControlFloat::setSettingString().
00400 { 00401 QString item (""); 00402 int index = setting.find(":"); 00403 if (index == -1) 00404 { 00405 item = setting; 00406 setting = ""; 00407 } 00408 else 00409 { 00410 item = setting.left(index); 00411 setting = setting.right (setting.length()-index-1); 00412 } 00413 return item; 00414 }
IgQtRangeControlCommon::StepType IgQtRangeControlCommon::getStepType | ( | void | ) | const |
Get the current way stepping is done.
Definition at line 198 of file IgQtRangeControlCommon.cc.
References m_stepType.
00199 { return m_stepType; }
Definition at line 324 of file IgQtRangeControlCommon.cc.
References m_widget.
00325 { m_widget->hide (); }
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 56 of file IgQtRangeControlCommon.cc.
References reco::fitHelper::add(), HLT_VtxMuL3::connect, editSettings(), fwdLong(), fwdMax(), fwdSmall(), m_editSettingMenu, m_fwdLong, m_fwdMax, m_fwdSmall, m_layout, m_revLong, m_revMin, m_revSmall, m_row, m_slider, m_text, m_widget, revLong(), revMin(), revSmall(), sliderChanged(), SliderPart, StepperPart, textChanged(), updateEditSettingConnection(), and ValuePart.
Referenced by IgQtRangeControl::IgQtRangeControl(), and IgQtRangeMControl::IgQtRangeMControl().
00057 { 00058 QSizePolicy expexp (QSizePolicy::Expanding, QSizePolicy::Expanding); 00059 if (!m_layout) 00060 m_layout = new QVBoxLayout (m_widget, 1, 0); 00061 00062 m_widget->setFrameStyle (QFrame::Plain | QFrame::Box); 00063 m_widget->setFixedHeight (35); 00064 00065 m_row = new QWidget (m_widget); 00066 QHBoxLayout *rowLayout = new QHBoxLayout (m_row, 0, 0); 00067 m_layout->addWidget (m_row); 00068 00069 m_editSettingMenu = new QPopupMenu (0, "m_editSettingMenu"); 00070 updateEditSettingConnection (this, SLOT (editSettings (void))); 00071 00072 // Add backward buttons 00073 if (parts & StepperPart) 00074 { 00075 m_revMin = new IgQtPixButton (gotoMin_xpm, m_row); 00076 m_revMin->setPopup (m_editSettingMenu); 00077 m_revLong = new IgQtPixButton (fastRev_xpm, m_row); 00078 m_revLong->setPopup (m_editSettingMenu); 00079 m_revSmall = new IgQtPixButton (rev_xpm, m_row); 00080 m_revSmall->setPopup (m_editSettingMenu); 00081 00082 rowLayout->addWidget (m_revMin); 00083 rowLayout->addWidget (m_revLong); 00084 rowLayout->addWidget (m_revSmall); 00085 00086 connect (m_revMin, SIGNAL (clicked ()), this, SLOT (revMin ())); 00087 connect (m_revLong, SIGNAL (clicked ()), this, SLOT (revLong ())); 00088 connect (m_revSmall, SIGNAL (clicked ()), this, SLOT (revSmall ())); 00089 00090 // Adding What's this help messages 00091 const char * text_m_revMin = 00092 "Click this to move the value to minimum."; 00093 const char * text_m_revLong = 00094 "Click this to make a long step in reverse direction. Keep the mouse " 00095 "clicked on this if you want to keep on making long steps in reverse " 00096 "direction."; 00097 const char * text_m_revSmall = 00098 "Click this to make a small step in reverse direction. Keep the mouse " 00099 "clicked on this if you want to keep on making small steps in reverse " 00100 "direction."; 00101 00102 QWhatsThis::add(m_revMin, text_m_revMin); 00103 QWhatsThis::add(m_revLong, text_m_revLong); 00104 QWhatsThis::add(m_revSmall, text_m_revSmall); 00105 } 00106 00107 // Add text edit for the value (FIXME: optional label vs. text) 00108 if (parts & ValuePart) 00109 { 00110 m_text = new IgQtLineEdit (m_row); 00111 m_text->setSizePolicy (expexp); 00112 m_text->setReadOnly (false); 00113 m_text->setFocusPolicy (QWidget::StrongFocus); 00114 m_text->setAlignment (AlignRight); 00115 m_text->setFixedWidth (75); 00116 m_text->setText ("0"); 00117 00118 rowLayout->addWidget (m_text); 00119 connect (m_text, SIGNAL (valueChanged (const QString&)), 00120 this, SLOT (textChanged (const QString&))); 00121 00122 // Adding What's this help messages 00123 const char * text_m_text = 00124 "This text box displays the current value of the control. One can " 00125 "also edit value here and hit the \"Enter/Return Key\" to make " 00126 "that value effective."; 00127 00128 QWhatsThis::add(m_text, text_m_text); 00129 } 00130 00131 // Add forward buttons 00132 if (parts & StepperPart) 00133 { 00134 m_fwdSmall = new IgQtPixButton (fwd_xpm, m_row); 00135 m_fwdSmall->setPopup (m_editSettingMenu); 00136 m_fwdLong = new IgQtPixButton (fastFwd_xpm, m_row); 00137 m_fwdLong->setPopup (m_editSettingMenu); 00138 m_fwdMax = new IgQtPixButton (gotoMax_xpm, m_row); 00139 m_fwdMax->setPopup (m_editSettingMenu); 00140 00141 rowLayout->addWidget (m_fwdSmall); 00142 rowLayout->addWidget (m_fwdLong); 00143 rowLayout->addWidget (m_fwdMax); 00144 00145 connect (m_fwdSmall, SIGNAL (clicked ()), this, SLOT (fwdSmall ())); 00146 connect (m_fwdLong, SIGNAL (clicked ()), this, SLOT (fwdLong ())); 00147 connect (m_fwdMax, SIGNAL (clicked ()), this, SLOT (fwdMax ())); 00148 00149 // Adding What's this help messages 00150 const char * text_m_fwdMax = 00151 "Click this to move the value to maximum."; 00152 const char * text_m_fwdLong = 00153 "Click this to make a long step in forward direction. Keep the " 00154 "mouse clicked on this if you want to keep on making long steps in " 00155 "forward direction."; 00156 const char * text_m_fwdSmall = 00157 "Click this to make a small step in forward direction. Keep the " 00158 "mouse clicked on this if you want to keep on making small steps in " 00159 "forward direction."; 00160 00161 QWhatsThis::add(m_fwdMax, text_m_fwdMax); 00162 QWhatsThis::add(m_fwdLong, text_m_fwdLong); 00163 QWhatsThis::add(m_fwdSmall, text_m_fwdSmall); 00164 } 00165 00166 // Add slider below the row 00167 if (parts & SliderPart) 00168 { 00169 m_slider = new QSlider (Horizontal, m_widget); 00170 m_slider->setSizePolicy (expexp); 00171 m_slider->setFixedHeight (8); 00172 m_slider->setLineStep (1); 00173 m_layout->addWidget (m_slider); 00174 00175 connect (m_slider, SIGNAL (valueChanged (int)), 00176 this, SLOT (sliderChanged (int))); 00177 00178 // Adding What's this help messages 00179 const char * text_m_slider = 00180 "Click on this slider to make a small step in either reverse or " 00181 "forward direction."; 00182 00183 QWhatsThis::add(m_slider, text_m_slider); 00184 } 00185 }
Definition at line 303 of file IgQtRangeControlCommon.cc.
References m_row.
Referenced by addFwdWidget(), and addRevWidget().
00304 { 00305 w->reparent (m_row, QPoint (0, 0)); 00306 ((QBoxLayout *) m_row->layout ())->insertWidget (index, w); 00307 }
Definition at line 389 of file IgQtRangeControlCommon.cc.
References m_emitSettingsChanged.
Referenced by editSettingsChanged(), IgQtRangeControlImp< short >::setSettingString(), IgQtRangeMControlImp< short >::setSettingString(), IgQtRangeControlFloat::setSettingString(), IgQtRangeMControlFloat::setSettingString(), and Ig3DUnitVec3fControl::setValues().
00390 { return m_emitSettingsChanged; }
Definition at line 385 of file IgQtRangeControlCommon.cc.
References m_precisionEditable.
Referenced by IgQtRangeMControlFloat::editSettings(), and IgQtRangeControlFloat::editSettings().
00386 { return m_precisionEditable; }
Definition at line 377 of file IgQtRangeControlCommon.cc.
References m_rangeEditable.
Referenced by IgQtRangeMControlFloat::editSettings(), and IgQtRangeControlFloat::editSettings().
00378 { return m_rangeEditable; }
Definition at line 381 of file IgQtRangeControlCommon.cc.
References m_stepEditable.
Referenced by IgQtRangeMControlFloat::editSettings(), and IgQtRangeControlFloat::editSettings().
00382 { return m_stepEditable; }
Definition at line 373 of file IgQtRangeControlCommon.cc.
References m_valueEditable.
Referenced by IgQtRangeMControlFloat::editSettings(), and IgQtRangeControlFloat::editSettings().
00374 { return m_valueEditable; }
QPopupMenu * IgQtRangeControlCommon::popupMenu | ( | void | ) | const |
Definition at line 338 of file IgQtRangeControlCommon.cc.
References m_editSettingMenu.
00339 { return m_editSettingMenu; }
Definition at line 369 of file IgQtRangeControlCommon.cc.
References m_precisionEditable.
Referenced by IgQtRangeMControlImp< T >::initialize(), and IgQtRangeControlImp< T >::initialize().
00370 { m_precisionEditable = editable; }
Definition at line 361 of file IgQtRangeControlCommon.cc.
References m_rangeEditable.
Referenced by Ig3DUnitVec3fControl::Ig3DUnitVec3fControl().
00362 { m_rangeEditable = editable; }
Definition at line 212 of file IgQtRangeControlCommon.cc.
References m_resetChangedValue.
Referenced by Ig3DRotationControl::Ig3DRotationControl().
00213 { m_resetChangedValue = value; }
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 269 of file IgQtRangeControlCommon.cc.
References m_revEnabled, m_revLong, m_revMin, and m_revSmall.
Referenced by IgQtRangeControlImp< short >::revEnable(), IgQtRangeMControlImp< short >::revEnable(), IgQtRangeMControlFloat::revEnable(), and IgQtRangeControlFloat::revEnable().
00270 { 00271 if (m_revSmall && m_revEnabled != value) 00272 { 00273 m_revSmall->setEnabled (value); 00274 m_revLong->setEnabled (value); 00275 m_revMin->setEnabled (value); 00276 m_revEnabled = value; 00277 } 00278 }
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 222 of file IgQtRangeControlCommon.cc.
Referenced by initialize().
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 218 of file IgQtRangeControlCommon.cc.
Referenced by initialize().
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 226 of file IgQtRangeControlCommon.cc.
Referenced by addRevButton(), and initialize().
Reimplemented from IgControlItem.
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 253 of file IgQtRangeControlCommon.cc.
References IgControlItem::setDirty().
00254 { IgControlItem::setDirty (dirty); }
Definition at line 393 of file IgQtRangeControlCommon.cc.
References m_emitSettingsChanged.
Referenced by IgQtRangeMControlImp< short >::editSettings(), IgQtRangeControlImp< short >::editSettings(), IgQtRangeMControlFloat::editSettings(), IgQtRangeControlFloat::editSettings(), IgQtRangeControlImp< short >::setSettingString(), IgQtRangeMControlImp< short >::setSettingString(), IgQtRangeControlFloat::setSettingString(), IgQtRangeMControlFloat::setSettingString(), and Ig3DUnitVec3fControl::setValues().
00394 { m_emitSettingsChanged = value; }
Set the stepping fashion to value.
Definition at line 193 of file IgQtRangeControlCommon.cc.
References m_stepType.
00194 { m_stepType = value; }
Referenced by editSettingsChanged().
Definition at line 320 of file IgQtRangeControlCommon.cc.
References m_widget.
00321 { m_widget->show (); }
Slider has changed to position value small steps from the minimum.
Adjust current control value.
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 208 of file IgQtRangeControlCommon.cc.
Referenced by initialize().
Definition at line 365 of file IgQtRangeControlCommon.cc.
References m_stepEditable.
00366 { m_stepEditable = editable; }
void IgQtRangeControlCommon::textChanged | ( | const QString & | newval | ) | [protected, virtual, slot] |
Reimplemented in IgQtRangeControlFloat, IgQtRangeControlImp< T >, IgQtRangeMControlFloat, IgQtRangeMControlImp< T >, IgQtRangeControlImp< long >, IgQtRangeControlImp< unsigned long >, IgQtRangeControlImp< int >, IgQtRangeControlImp< unsigned int >, IgQtRangeControlImp< unsigned short >, IgQtRangeControlImp< short >, IgQtRangeMControlImp< long >, IgQtRangeMControlImp< unsigned long >, IgQtRangeMControlImp< int >, IgQtRangeMControlImp< unsigned int >, IgQtRangeMControlImp< unsigned short >, and IgQtRangeMControlImp< short >.
Definition at line 249 of file IgQtRangeControlCommon.cc.
Referenced by initialize().
void IgQtRangeControlCommon::updateEditSettingConnection | ( | const QObject * | receiver, | |
const char * | member | |||
) |
Definition at line 342 of file IgQtRangeControlCommon.cc.
References m_editSettingMenu, and m_editSettingMenuIndex.
Referenced by initialize().
00344 { 00345 if (m_editSettingMenuIndex != -1) 00346 m_editSettingMenu->removeItemAt (m_editSettingMenuIndex); 00347 int id = m_editSettingMenu->insertItem ("&Edit", 00348 receiver , 00349 member, 00350 0, -1, m_editSettingMenuIndex); 00351 m_editSettingMenuIndex = m_editSettingMenu->indexOf (id); 00352 }
Definition at line 357 of file IgQtRangeControlCommon.cc.
References m_valueEditable.
Referenced by Ig3DVectorBaseControl::makeControl().
00358 { m_valueEditable = editable; }
QWidget * IgQtRangeControlCommon::widget | ( | void | ) | const |
Definition at line 313 of file IgQtRangeControlCommon.cc.
References m_widget.
Referenced by IgExaminerViewerCategory::addExaminerViewerTab(), IgGLRenderCategory::addGLRenderTab(), Ig3DGridCategory::addTips(), IgQtRangeMControlFloat::editSettings(), IgQtRangeControlFloat::editSettings(), Ig3DAnimsCategory::Ig3DAnimsCategory(), Ig3DClipsCategory::Ig3DClipsCategory(), Ig3DFieldPlanesCategory::Ig3DFieldPlanesCategory(), Ig3DLightsCategory::Ig3DLightsCategory(), Ig3DSlicersCategory::Ig3DSlicersCategory(), Ig3DViewpointsCategory::Ig3DViewpointsCategory(), and Ig3DVectorBaseControl::makeControl().
00314 { return m_widget; }
QPopupMenu* IgQtRangeControlCommon::m_editSettingMenu [protected] |
Definition at line 133 of file IgQtRangeControlCommon.h.
Referenced by initialize(), popupMenu(), and updateEditSettingConnection().
int IgQtRangeControlCommon::m_editSettingMenuIndex [protected] |
Definition at line 134 of file IgQtRangeControlCommon.h.
Referenced by updateEditSettingConnection().
bool IgQtRangeControlCommon::m_emitSettingsChanged [protected] |
Definition at line 139 of file IgQtRangeControlCommon.h.
Referenced by isEmitSettingsChanged(), and setEmitSettingsChanged().
bool IgQtRangeControlCommon::m_fwdEnabled [protected] |
IgQtPixButton* IgQtRangeControlCommon::m_fwdLong [protected] |
Definition at line 129 of file IgQtRangeControlCommon.h.
Referenced by fwdEnable(), and initialize().
IgQtPixButton* IgQtRangeControlCommon::m_fwdMax [protected] |
Definition at line 130 of file IgQtRangeControlCommon.h.
Referenced by fwdEnable(), and initialize().
IgQtPixButton* IgQtRangeControlCommon::m_fwdSmall [protected] |
Definition at line 128 of file IgQtRangeControlCommon.h.
Referenced by fwdEnable(), and initialize().
QVBoxLayout* IgQtRangeControlCommon::m_layout [protected] |
Definition at line 122 of file IgQtRangeControlCommon.h.
Referenced by IgQtRangeMControl::IgQtRangeMControl(), and initialize().
bool IgQtRangeControlCommon::m_precisionEditable [protected] |
Definition at line 138 of file IgQtRangeControlCommon.h.
Referenced by isPrecisionEditable(), and precisionEditable().
bool IgQtRangeControlCommon::m_rangeEditable [protected] |
Definition at line 137 of file IgQtRangeControlCommon.h.
Referenced by isRangeEditable(), and rangeEditable().
bool IgQtRangeControlCommon::m_resetChangedValue [protected] |
Definition at line 132 of file IgQtRangeControlCommon.h.
Referenced by resetChangedValue(), IgQtRangeMControlImp< T >::setDirty(), IgQtRangeMControlFloat::setDirty(), IgQtRangeControlFloat::setDirty(), and IgQtRangeControlImp< T >::setDirty().
bool IgQtRangeControlCommon::m_revEnabled [protected] |
IgQtPixButton* IgQtRangeControlCommon::m_revLong [protected] |
Definition at line 125 of file IgQtRangeControlCommon.h.
Referenced by initialize(), and revEnable().
IgQtPixButton* IgQtRangeControlCommon::m_revMin [protected] |
Definition at line 124 of file IgQtRangeControlCommon.h.
Referenced by initialize(), and revEnable().
IgQtPixButton* IgQtRangeControlCommon::m_revSmall [protected] |
Definition at line 126 of file IgQtRangeControlCommon.h.
Referenced by initialize(), and revEnable().
QWidget* IgQtRangeControlCommon::m_row [protected] |
Definition at line 123 of file IgQtRangeControlCommon.h.
Referenced by initialize(), and insertWidget().
QSlider* IgQtRangeControlCommon::m_slider [protected] |
Definition at line 131 of file IgQtRangeControlCommon.h.
Referenced by IgQtRangeMControlFloat::adjustSliderSteps(), IgQtRangeControlFloat::adjustSliderSteps(), initialize(), IgQtRangeControlImp< T >::setValue(), IgQtRangeControlFloat::setValue(), IgQtRangeMControlFloat::updateTextValue(), and IgQtRangeMControlImp< T >::updateTextValue().
bool IgQtRangeControlCommon::m_stepEditable [protected] |
Definition at line 136 of file IgQtRangeControlCommon.h.
Referenced by isStepEditable(), and stepEditable().
StepType IgQtRangeControlCommon::m_stepType [protected] |
Definition at line 117 of file IgQtRangeControlCommon.h.
Referenced by getStepType(), IgQtRangeMControlImp< T >::moveValue(), IgQtRangeControlFloat::moveValue(), IgQtRangeControlImp< T >::moveValue(), IgQtRangeMControlFloat::moveValue(), and setStepType().
IgQtLineEdit* IgQtRangeControlCommon::m_text [protected] |
Definition at line 127 of file IgQtRangeControlCommon.h.
Referenced by initialize(), IgQtRangeControlImp< T >::setValue(), IgQtRangeControlFloat::setValue(), IgQtRangeMControlFloat::updateTextValue(), and IgQtRangeMControlImp< T >::updateTextValue().
bool IgQtRangeControlCommon::m_valueEditable [protected] |
Definition at line 135 of file IgQtRangeControlCommon.h.
Referenced by isValueEditable(), and valueEditable().
QFrame* IgQtRangeControlCommon::m_widget [protected] |
Definition at line 121 of file IgQtRangeControlCommon.h.
Referenced by hide(), IgQtRangeMControl::IgQtRangeMControl(), initialize(), show(), and widget().