1 #ifndef BALL_VIEW_WIDGETS_EDITABLESCENE_H
2 #define BALL_VIEW_WIDGETS_EDITABLESCENE_H
5 #ifndef BALL_KERNEL_SYSTME_H
9 #ifndef BALL_VIEW_WIDGETS_SCENE_H
13 #ifndef BALL_KERNEL_MOLECULE_H
17 #ifndef BALL_VIEW_KERNEL_COMMON_H
21 #ifndef BALL_MATHS_VECTOR2_H
25 #ifndef BALL_STRUCTURE_FRAGMENTDB_H
29 #include <QtGui/QCursor>
61 EditOperation(
Atom* atom,
Bond* bond,
String description=
"Added Object",
int operation=0);
64 EditOperation(
const EditOperation& eOperation);
67 virtual ~EditOperation();
92 EDIT__MODE = PICKING__MODE + 1
114 void initializePreferencesTab(
Preferences &preferences);
117 void finalizePreferencesTab(
Preferences &preferences);
120 virtual void applyPreferences();
123 void showContextMenu(QPoint pos);
126 virtual void setMode(ModeType mode);
128 void addStructure(
String name);
134 void setElementCursor();
142 virtual void wheelEvent(QWheelEvent* qmouse_event);
143 void createNewMolecule();
144 void saturateWithHydrogens();
145 void optimizeStructure();
146 void computeBondOrders();
149 void setEditElementType(
int element_number);
150 int getEditElementType();
155 virtual void editMode_();
157 void changeElement_();
158 void changeAtomElement_();
161 void changeBondOrder_();
162 void activatedOrderItem_(QAction* action);
164 void atomProperties_();
165 void createMolecule_();
166 void addStructure_();
167 void setFormalCharge_();
178 virtual void addToolBarEntries(QToolBar* tb);
181 virtual void keyPressEvent(QKeyEvent* e);
182 virtual void mouseDoubleClickEvent(
QMouseEvent* e);
183 virtual bool reactToKeyEvent_(QKeyEvent* e);
185 virtual void onNotify(
Message *message);
192 void insert_(
int x_,
int y_,
PDBAtom &atom_);
202 void getClickedItems_(
int x,
int y);
208 std::list<AtomContainer*> getContainers_();
210 void changeBondOrder_(
Index delta);
211 void deselect_(
bool update=
true);
214 QAction* edit_id_, *new_molecule_action_, *
optimize_action_, *add_hydrogens_action_, *element_action_;