35 #ifndef PARAMETERPANEL_H
36 #define PARAMETERPANEL_H
40 #include "ui_ParameterPanel.h"
47 #include <QtGui/QItemSelection>
48 #include <QtGui/QLabel>
49 #include <QtGui/QLineEdit>
88 void showParameters (
Node *node );
95 void updateParameters (
bool objectsSelected );
105 virtual void fillToolBars ( QToolBar *mainToolBar, QToolBar *panelToolBar );
116 void objectNameChangeRequested (
const QString &oldName,
const QString &newName );
127 void parameterChangeRequested (
const QString &objectName,
const QString ¶meterName,
const QVariant &value );
136 virtual void timerEvent ( QTimerEvent *event );
144 virtual bool eventFilter(QObject *
object, QEvent *event);
154 void on_m_nodeNameEdit_editingFinished ();
164 void on_m_searchEdit_textChanged (
const QString &text );
174 void on_ui_resetSearchAction_triggered (
bool checked =
false );
185 void loadTabPage (
int index );
194 void labelContextMenuRequested (
const QPoint &position );
206 void checkBoxToggled (
bool checked );
215 void spinBoxEditingFinished ();
224 void sliderValueChanged ();
233 void doubleSpinBoxEditingFinished ();
242 void doubleSliderValueChanged ();
251 void lineEditEditingFinished ();
259 void browseButtonClicked ();
267 void reloadButtonClicked ();
285 void comboBoxIndexChanged (
int index );
293 void commandButtonClicked ();
302 void updateBooleanWidget ();
309 void updateIntegerWidgets ();
320 void updateIntegerWidgets (
int index );
329 void updateUnsignedIntegerWidgets ();
340 void updateUnsignedIntegerWidgets (
int index );
348 void updateFloatingPointWidgets ();
359 void updateFloatingPointWidgets (
int index );
366 void updateStringWidget ();
373 void updateFilenameWidgets ();
380 void updateColorWidget ();
387 void updateEnumerationWidget ();
394 void updateTextInfoWidget ();
401 void updateImageWidget ();
411 void activateCustomContextMenu ( QLabel *label );
419 void grayOut ( QWidget *widget );
433 void addRows (
ParameterGroup *parameterGroup, QFormLayout *formLayout );
441 void addRows (
Parameter *parameter, QFormLayout *formLayout );
449 QWidget * createBooleanWidget (
Parameter *parameter );
458 QLayout * createIntegerLayout (
NumberParameter *numberParameter,
int index = 0 );
468 QLayout * createUnsignedIntegerLayout (
NumberParameter *numberParameter,
int index = 0 );
477 QLayout * createFloatingPointLayout (
NumberParameter *numberParameter,
int index = 0 );
486 QWidget * createStringWidget (
Parameter *parameter );
502 QWidget * createColorWidget (
Parameter *parameter );
519 QWidget * createTextInfoWidget (
Parameter *parameter );
528 QWidget * createGenericWidget (
Parameter *parameter );
537 QWidget * createCommandWidget (
Parameter *parameter );
546 QWidget * createImageWidget (
Parameter *parameter );
555 QLayout * createVectorLayout (
Parameter *parameter );
564 void requestParameterChange (
const QString &name,
const QVariant &value );
570 void filterParameters ();
578 QWidget * createPluginWidget (
Parameter *parameter);