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 <QtWidgets/QMenu>
25#include <QtWidgets/QTreeView>
53 class MyTreeWidgetItem
67 enum MolecularMenuEntries
70 CREATE_REPRESENTATION,
84 COMPOSITE__PROPERTIES,
415 Composite& composite, QString* default_name = 0);
GenericControl(QWidget *parent=0, const char *name=0)
void removeRecursive_(QTreeWidgetItem *item)
void highlightSelection()
QTreeWidgetItem * context_item_
Composite * getContextComposite()
void expandAll()
Expand all QListViewItem.
void countItems()
Count the molecular items and print the info.
Residue * current_residue_
void bondProperties()
Bond properties dialog requested.
Size applySelector(const String &expression)
BALL_DEPRECATED void showSelectorHelp()
virtual void clearSelector()
Connected to the clear selection button.
RotamerLibrary * rotamer_library_
Composite * context_composite_
void showFilename()
Show the filename from which the composite was loaded.
bool pasteAllowedFor_(Composite &composite)
void fetchPreferences(INIFile &inifile)
QAction * disulfidbond_action_
void onItemClicked(QTreeWidgetItem *item, int)
std::list< Composite * > copy_list_
QAction * composite_properties_action_
virtual MolecularInformation & getInformationVisitor_()
void createRepresentation_()
void writePreferences(INIFile &inifile)
ReadWriteLock rotamer_library_mutex_
ColoringMethod selected_coloring_method_
void switchShowSecondaryStructure()
virtual void recurseGeneration_(QTreeWidgetItem *item, Composite &composite)
QAction * deselect_action_
QAction * bond_propertes_action_
QMenu color_menu_[MODEL_LABEL - MODEL_LINES]
void moveItems()
Move a composite.
void showDistance(Atom *a1, Atom *a2)
Size removeComposite(Composite &composite)
friend class BondProperties
QAction * distance_action_
void enableUpdates_(bool state)
virtual void updateSelection()
QAction * atom_overview_selection_
const std::list< Composite * > & getSelection() const
std::map< Composite *, MyTreeWidgetItem * > composite_to_item_
void compositeProperties()
Composite properties dialog requested.
virtual void updateContextMenu(Composite &composite)
void setSelection_(bool open, bool force=false)
virtual void checkMenu(VIEW::MainControl &main_control)
void highlight(const std::list< Composite * > &composite)
MolecularControl(QWidget *parent=0, const char *name=0)
void collapseAll()
Collapse all QListViewItem.
virtual void onNotify(Message *message)
void showGuestContextMenu(const QPoint &pos)
void showAngle(Atom *a1, Atom *a2, Atom *a3, Atom *a4=0)
std::list< QTreeWidgetItem * > getAllItems_()
QTreeWidgetItem * generateListViewItem_(QTreeWidgetItem *parent, Composite &composite, QString *default_name=0)
QAction * count_items_action_
std::list< Composite * > selected_
ModelType selected_model_
void newSelection_(std::list< Composite * > &sel, bool selected)
void addComposite(Composite &composite, String given_name="")
QSignalMapper * rotamer_mapper_
void createRepresentation()
Create a Representation with the DisplayProperties Dialog.
void showAtomOverviewForSelection()
void changeRotamer_(int i)
MolecularInformation information_
QAction * center_camera_action_
virtual bool reactToMessages_(Message *message)
void activatedItem_(QAction *action)
virtual void deleteCurrentItems()
Overloaded from GenericControl, calls cut.
QComboBox * selector_edit_
virtual void initializeWidget(MainControl &main_control)
void toggleDisulfidBond()
Create a disulfid bond.
#define BALL_EMBEDDABLE(TYPE, BASE)
@ MODEL_LINES
defines the property for the model: Lines
@ MODEL_LABEL
defines the property for the model: Label
TReadWriteLock< BALL_DEFAULT_READWRITELOCK_TYPE > ReadWriteLock