15 #ifndef smtk_extension_qtInputsItem_h
16 #define smtk_extension_qtInputsItem_h
18 #include "smtk/extension/qt/Exports.h"
19 #include "smtk/extension/qt/qtItem.h"
20 #include <QDoubleValidator>
45 void setLabelVisible(
bool)
override;
46 void unsetValue(
int elementIndex);
47 bool setDiscreteValue(
int elementIndex,
int discreteValIndex);
51 bool isFixedWidth()
const override;
52 bool eventFilter(QObject* filterObj, QEvent* ev)
override;
54 QWidget* lastEditor()
const override;
55 void updateTabOrder(QWidget* precedingEditor)
override;
58 void setOutputOptional(
int);
59 void onExpressionReferenceChanged();
60 void onTextEditChanged();
61 void onLineEditChanged();
62 void onLineEditFinished();
63 void onInputValueChanged(QObject*);
64 void doubleValueChanged(
double newVal);
65 void intValueChanged(
int newVal);
66 void updateItemData()
override;
68 void showContextMenu(
const QPoint& pt,
int elementIdx);
71 virtual void onAddNewValue();
72 virtual void onRemoveValue();
73 void displayExpressionWidget(
bool checkstate);
74 virtual void onChildItemModified();
77 void createWidget()
override;
78 virtual void loadInputValues();
79 virtual void updateUI();
80 virtual void addInputEditor(
int i);
81 virtual void updateExtensibleState();
82 virtual void clearChildWidgets();
83 QWidget* createDoubleWidget(
88 QWidget* createIntWidget(
93 virtual QWidget* createInputWidget(
int elementIdx, QLayout* childLayout);
94 virtual QWidget* createEditBox(
int elementIdx, QWidget* pWidget);
95 virtual QFrame* createExpressionRefFrame();
96 virtual QFrame* createLabelFrame(
107 void updateExpressionRefWidgetForEvaluation(
109 bool showMessageBox);
110 void hideExpressionResultWidgets();
115 void showExpressionResultWidgets(
bool success,
const QString& text,
const QString& tooltip);
130 void fixup(QString& input)
const override;
135 QLineEdit* m_lineWidget;
144 void fixup(QString& input)
const override;
149 QLineEdit* m_lineWidget;