CMS 3D CMS Logo

IgQtRangeControlCommon Class Reference

#include <Iguana/GLBrowsers/interface/IgQtRangeControlCommon.h>

Inheritance diagram for IgQtRangeControlCommon:

IgControlItem IgQtRangeControl IgQtRangeMControl IgQtRangeControlFloat IgQtRangeControlImp< T > IgQtRangeControlImp< int > IgQtRangeControlImp< long > IgQtRangeControlImp< short > IgQtRangeControlImp< unsigned int > IgQtRangeControlImp< unsigned long > IgQtRangeControlImp< unsigned short > IgQtRangeMControlFloat IgQtRangeMControlImp< T > IgQtRangeMControlImp< int > IgQtRangeMControlImp< long > IgQtRangeMControlImp< short > IgQtRangeMControlImp< unsigned int > IgQtRangeMControlImp< unsigned long > IgQtRangeMControlImp< unsigned short >

List of all members.

Public Types

enum  Parts {
  StepperPart = 1, ValuePart = 2, SliderPart = 4, IndexPart = 8,
  AllParts
}
enum  StepType { ADD, MULTIPLE }

Public Slots

virtual void editSettings (void)
virtual void editSettingsChanged (void)
virtual void fwdLong (void)
virtual void fwdMax (void)
virtual void fwdSmall (void)
virtual void hide (void)
virtual void resetChangedValue (bool)
virtual void revLong (void)
virtual void revMin (void)
virtual void revSmall (void)
virtual void setDirty (bool dirty)
virtual void setEmitSettingsChanged (bool value=true)
void setStepType (StepType type)
 Set the stepping fashion to value.
virtual void show (void)

Signals

void settingsChanged (void)

Public Member Functions

void addFwdButton (QWidget *w)
void addFwdWidget (QWidget *w)
void addRevButton (QWidget *w)
void addRevWidget (QWidget *w)
StepType getStepType (void) const
 Get the current way stepping is done.
 IgQtRangeControlCommon (QWidget *parent, int parts, const char *name=0)
void insertWidget (QWidget *w, int index=-1)
bool isEmitSettingsChanged (void) const
bool isPrecisionEditable (void) const
bool isRangeEditable (void) const
bool isStepEditable (void) const
bool isValueEditable (void) const
QPopupMenu * popupMenu (void) const
void precisionEditable (bool editable=true)
void rangeEditable (bool editable=true)
void stepEditable (bool editable=true)
void updateEditSettingConnection (const QObject *receiver, const char *member)
void valueEditable (bool editable=true)
QWidget * widget (void) const

Static Public Member Functions

static void addSettingItem (const QString &item, QString &setting)
static QString getSettingItem (QString &setting)

Protected Types

enum  MoveDirection { MoveFWD, MoveREV }

Protected Slots

virtual void sliderChanged (int newval)
 Slider has changed to position value small steps from the minimum.
virtual void textChanged (const QString &newval)

Protected Member Functions

virtual void emitSignals (void)
virtual void fwdEnable (bool enable)
virtual void initialize (int parts)
virtual void revEnable (bool enable)

Protected Attributes

QPopupMenu * m_editSettingMenu
int m_editSettingMenuIndex
bool m_emitSettingsChanged
bool m_fwdEnabled
IgQtPixButtonm_fwdLong
IgQtPixButtonm_fwdMax
IgQtPixButtonm_fwdSmall
QVBoxLayout * m_layout
bool m_precisionEditable
bool m_rangeEditable
bool m_resetChangedValue
bool m_revEnabled
IgQtPixButtonm_revLong
IgQtPixButtonm_revMin
IgQtPixButtonm_revSmall
QWidget * m_row
QSlider * m_slider
bool m_stepEditable
StepType m_stepType
IgQtLineEditm_text
bool m_valueEditable
QFrame * m_widget


Detailed Description

Definition at line 24 of file IgQtRangeControlCommon.h.


Member Enumeration Documentation

enum IgQtRangeControlCommon::MoveDirection [protected]

Enumerator:
MoveFWD 
MoveREV 

Definition at line 109 of file IgQtRangeControlCommon.h.

00109 { MoveFWD, MoveREV };

enum IgQtRangeControlCommon::Parts

Enumerator:
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     };

enum IgQtRangeControlCommon::StepType

Enumerator:
ADD 
MULTIPLE 

Definition at line 28 of file IgQtRangeControlCommon.h.

00028                   {
00029         ADD,
00030         MULTIPLE
00031     };


Constructor & Destructor Documentation

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 { }


Member Function Documentation

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 }

void IgQtRangeControlCommon::editSettings ( void   )  [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 334 of file IgQtRangeControlCommon.cc.

Referenced by initialize().

00335 { }

void IgQtRangeControlCommon::editSettingsChanged ( void   )  [virtual, slot]

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 (); }

void IgQtRangeControlCommon::emitSignals ( void   )  [protected, virtual]

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().

00243 { }

void IgQtRangeControlCommon::fwdEnable ( bool  enable  )  [protected, virtual]

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 }

void IgQtRangeControlCommon::fwdLong ( void   )  [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 234 of file IgQtRangeControlCommon.cc.

Referenced by initialize().

00235 { }

void IgQtRangeControlCommon::fwdMax ( void   )  [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 238 of file IgQtRangeControlCommon.cc.

Referenced by initialize().

00239 { }

void IgQtRangeControlCommon::fwdSmall ( void   )  [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 230 of file IgQtRangeControlCommon.cc.

Referenced by addFwdButton(), and initialize().

00231 { }

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; }

void IgQtRangeControlCommon::hide ( void   )  [virtual, slot]

Definition at line 324 of file IgQtRangeControlCommon.cc.

References m_widget.

00325 { m_widget->hide (); }

void IgQtRangeControlCommon::initialize ( int  parts  )  [protected, virtual]

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 }

void IgQtRangeControlCommon::insertWidget ( QWidget *  w,
int  index = -1 
)

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 }

bool IgQtRangeControlCommon::isEmitSettingsChanged ( void   )  const

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; }

bool IgQtRangeControlCommon::isPrecisionEditable ( void   )  const

Definition at line 385 of file IgQtRangeControlCommon.cc.

References m_precisionEditable.

Referenced by IgQtRangeMControlFloat::editSettings(), and IgQtRangeControlFloat::editSettings().

00386 { return m_precisionEditable; }

bool IgQtRangeControlCommon::isRangeEditable ( void   )  const

Definition at line 377 of file IgQtRangeControlCommon.cc.

References m_rangeEditable.

Referenced by IgQtRangeMControlFloat::editSettings(), and IgQtRangeControlFloat::editSettings().

00378 { return m_rangeEditable; }

bool IgQtRangeControlCommon::isStepEditable ( void   )  const

Definition at line 381 of file IgQtRangeControlCommon.cc.

References m_stepEditable.

Referenced by IgQtRangeMControlFloat::editSettings(), and IgQtRangeControlFloat::editSettings().

00382 { return m_stepEditable; }

bool IgQtRangeControlCommon::isValueEditable ( void   )  const

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; }

void IgQtRangeControlCommon::precisionEditable ( bool  editable = true  ) 

Definition at line 369 of file IgQtRangeControlCommon.cc.

References m_precisionEditable.

Referenced by IgQtRangeMControlImp< T >::initialize(), and IgQtRangeControlImp< T >::initialize().

void IgQtRangeControlCommon::rangeEditable ( bool  editable = true  ) 

Definition at line 361 of file IgQtRangeControlCommon.cc.

References m_rangeEditable.

Referenced by Ig3DUnitVec3fControl::Ig3DUnitVec3fControl().

void IgQtRangeControlCommon::resetChangedValue ( bool  value  )  [virtual, slot]

Definition at line 212 of file IgQtRangeControlCommon.cc.

References m_resetChangedValue.

Referenced by Ig3DRotationControl::Ig3DRotationControl().

void IgQtRangeControlCommon::revEnable ( bool  enable  )  [protected, virtual]

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 }

void IgQtRangeControlCommon::revLong ( void   )  [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 222 of file IgQtRangeControlCommon.cc.

Referenced by initialize().

00223 { }

void IgQtRangeControlCommon::revMin ( void   )  [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 218 of file IgQtRangeControlCommon.cc.

Referenced by initialize().

00219 { }

void IgQtRangeControlCommon::revSmall ( void   )  [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 226 of file IgQtRangeControlCommon.cc.

Referenced by addRevButton(), and initialize().

00227 { }

void IgQtRangeControlCommon::setDirty ( bool  dirty  )  [virtual, slot]

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().

void IgQtRangeControlCommon::setEmitSettingsChanged ( bool  value = true  )  [virtual, slot]

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().

void IgQtRangeControlCommon::setStepType ( StepType  value  )  [slot]

Set the stepping fashion to value.

Definition at line 193 of file IgQtRangeControlCommon.cc.

References m_stepType.

00194 { m_stepType = value; }

void IgQtRangeControlCommon::settingsChanged ( void   )  [signal]

Referenced by editSettingsChanged().

void IgQtRangeControlCommon::show ( void   )  [virtual, slot]

Definition at line 320 of file IgQtRangeControlCommon.cc.

References m_widget.

00321 { m_widget->show (); }

void IgQtRangeControlCommon::sliderChanged ( int  newval  )  [protected, virtual, slot]

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().

00209 { } 

void IgQtRangeControlCommon::stepEditable ( bool  editable = true  ) 

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().

00250 { }

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 }

void IgQtRangeControlCommon::valueEditable ( bool  editable = true  ) 

Definition at line 357 of file IgQtRangeControlCommon.cc.

References m_valueEditable.

Referenced by Ig3DVectorBaseControl::makeControl().

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; }


Member Data Documentation

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]

Definition at line 118 of file IgQtRangeControlCommon.h.

Referenced by fwdEnable().

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]

Definition at line 119 of file IgQtRangeControlCommon.h.

Referenced by revEnable().

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:27 2009 for CMSSW by  doxygen 1.5.4