5 #ifndef BALL_VIEW_WIDGETS_MOLECULARCONTROL_H
6 #define BALL_VIEW_WIDGETS_MOLECULARCONTROL_H
8 #ifndef BALL_VIEW_WIDGETS_GENERICCONTROL_H
12 #ifndef BALL_CONCEPT_MOLECULARINFORMATION_H
16 #ifndef BALL_SYSTEM_MUTEX_H
20 #ifndef BALL_VIEW_KERNEL_COMMON_H
24 #include <QtGui/QMenu>
25 #include <QtGui/QTreeView>
53 class MyTreeWidgetItem
68 enum MolecularMenuEntries
71 CREATE_REPRESENTATION,
85 COMPOSITE__PROPERTIES,
129 virtual
void checkMenu(VIEW::
MainControl& main_control);
145 const std::list<
Composite*>& getSelection() const;
156 virtual
void onNotify(
Message *message);
167 virtual
void updateContextMenu(
Composite& composite);
180 virtual
void initializeWidget(
MainControl& main_control);
188 void writePreferences(
INIFile& inifile);
191 void fetchPreferences(
INIFile& inifile);
194 void showDistance(
Atom* a1,
Atom* a2);
201 QMenu& getContextMenu();
211 void createRepresentation();
214 void compositeProperties();
217 void toggleDisulfidBond();
220 void bondProperties();
243 virtual
void updateSelection();
246 void highlightSelection();
249 void highlight(const std::list<
Composite*>& composite);
276 void clearClipboard();
298 Size applySelector();
301 void showSelectorHelp();
304 virtual
void deleteCurrentItems();
307 virtual
void clearSelector();
309 void switchShowSecondaryStructure();
312 void showAtomOverview();
315 void showAtomOverviewForSelection();
337 void showGuestContextMenu(const QPoint& pos);
340 void activatedItem_(QAction* action);
343 void createRepresentation_();
348 void changeRotamer_(
int i);
353 void buildContextMenu_();
356 void buildRotamerMenu_();
364 void setSelection_(
bool open,
bool force = false);
397 virtual
bool reactToMessages_(
Message* message);
413 Composite& composite, QString* default_name = 0);
416 bool pasteAllowedFor_(
Composite& composite);
422 MolecularControl(const MolecularControl& mc);
427 void enableUpdates_(
bool state);
428 void newSelection_(std::list<
Composite*>& sel,
bool selected);
438 QAction* cut_id_, *copy_id_, *paste_id_, *delete_id_, *clipboard_id_, *select_id_, *deselect_id_,
448 QComboBox* selector_edit_;
449 QComboBox* smarts_edit_;
457 QMenu* rotamer_menu_;
465 std::map<
Composite*, MyTreeWidgetItem*> composite_to_item_;
473 QAction* center_camera_action_, *composite_properties_action_, *bond_propertes_action_, *disulfidbond_action_,
474 *select_action_, *deselect_action_, *count_items_action_, *atom_overview_, *atom_overview_selection_,
475 *angle_action_, *distance_action_, *paste_action_;
477 bool ignore_messages_;
479 QSignalMapper* rotamer_mapper_;
488 #endif // BALL_VIEW_WIDGETS_MOLECULARCONTROL_H
defines the property for the model: Label
defines the property for the model: Lines
#define BALL_EMBEDDABLE(TYPE, BASE)