1 #ifndef BALL_VIEW_WIDGETS_PROPERTYEDITOR_H
2 #define BALL_VIEW_WIDGETS_PROPERTYEDITOR_H
4 #ifndef BALL_COMMON_GLOBAL_H
8 #ifndef BALL_DATATYPE_HASHMAP_H
12 #include <BALL/VIEW/UIC/ui_propertyEditor.h>
13 #include <BALL/VIEW/UIC/ui_propEditorWidget.h>
14 #include <BALL/VIEW/UIC/ui_editorPDBInfoDialog.h>
16 #ifndef BALL_FORMAT_PDBINFO_H
20 #include <QtGui/QWidget>
30 class PropertyManager;
51 virtual const QString&
getName()
const;
229 addWidget_(1,
new QLabel(tr(
"(not editable)"),
this));
230 ui_.duplicate_button->setEnabled(
false);
258 class EditorPDBInfoDialog :
public QDialog {
263 QFont mono(
"Monaco"); mono.setStyleHint(QFont::TypeWriter);
264 ui_.textEditor->setFont(mono);
268 Ui::editorPDBInfoDialog
ui_;
272 EditorPDBInfoDialog* editorDialog_;
313 void setEditable(
bool mode);
318 bool isEditable()
const;
323 bool hasChanges()
const;
348 QString chooseName_(
const QString& initial);
352 void scheduleDelete_();
353 void scheduleDuplicate_();
354 void valueChanged_();
356 void createNewBool_();
357 void createNewInt_();
358 void createNewUInt_();
359 void createNewFloat_();
360 void createNewDouble_();
361 void createNewString_();
367 QList<PropEditorWidget*> new_properties_;
368 QList<PropEditorWidget*> deleted_properties_;
370 Ui::PropertyEditor ui_;
376 #endif //BALL_VIEW_WIDGETS_PROPERTYEDITOR_H