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_VIEW_KERNEL_COMMON_H
20 #ifndef BALL_MATHS_MATRIX44_H
24 #include <QtCore/QPoint>
25 #include <QtGui/QMenu>
26 #include <QtGui/QTreeView>
27 #include <QtGui/QComboBox>
125 virtual
void checkMenu(VIEW::
MainControl& main_control);
141 const std::list<
Composite*>& getSelection() const;
148 virtual
void onNotify(
Message *message);
159 virtual
void updateContextMenu(
Composite& composite);
172 virtual
void initializeWidget(
MainControl& main_control);
180 void writePreferences(
INIFile& inifile);
183 void fetchPreferences(
INIFile& inifile);
186 void showDistance(
Atom* a1,
Atom* a2);
199 void createRepresentation();
202 void compositeProperties();
205 void bondProperties();
228 virtual
void updateSelection();
231 void highlightSelection();
234 void highlight(const std::list<
Composite*>& composite);
261 void clearClipboard();
283 Size applySelector();
286 void showSelectorHelp();
289 virtual
void deleteCurrentItems();
292 virtual
void clearSelector();
294 void switchShowSecondaryStructure();
297 void showAtomOverview();
300 void showAtomOverviewForSelection();
322 void showGuestContextMenu(const QPoint& pos);
325 void activatedItem_(QAction* action);
328 void createRepresentation_();
336 void buildContextMenu_();
344 void setSelection_(
bool open,
bool force = false);
377 virtual
bool reactToMessages_(
Message* message);
393 Composite& composite, QString* default_name = 0);
396 bool pasteAllowedFor_(
Composite& composite);
402 MolecularControl(const MolecularControl& mc);
407 void enableUpdates_(
bool state);
408 void newSelection_(std::list<
Composite*>& sel,
bool selected);
418 QAction* cut_id_, *copy_id_, *paste_id_, *delete_id_, *clipboard_id_, *select_id_, *deselect_id_,
428 QComboBox* selector_edit_;
429 QComboBox* smarts_edit_;
451 QAction* center_camera_action_, *composite_properties_action_, *bond_propertes_action_,
452 *select_action_, *deselect_action_, *count_items_action_, *atom_overview_, *atom_overview_selection_,
453 *angle_action_, *distance_action_, *paste_action_;
455 bool ignore_messages_;
460 #endif // BALL_VIEW_WIDGETS_MOLECULARCONTROL_H