Loading...
Searching...
No Matches
mainControl.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_KERNEL_MAINCONTROL_H
#define BALL_VIEW_KERNEL_MAINCONTROL_H
#ifndef BALL_CONCEPT_EMBEDDABLE_H
# include <BALL/CONCEPT/embeddable.h>
#endif
#ifndef BALL_DATATYPE_HASHMAP_H
# include <BALL/DATATYPE/hashMap.h>
#endif
#ifndef BALL_VIEW_KERNEL_CONNECTIONOBJECT_H
# include <BALL/VIEW/KERNEL/connectionObject.h>
#endif
#ifndef BALL_VIEW_KERNEL_REPRESENTATIONMANAGER_H
# include <BALL/VIEW/KERNEL/representationManager.h>
#endif
#ifndef BALL_VIEW_KERNEL_COMPOSITEMANAGER_H
# include <BALL/VIEW/KERNEL/compositeManager.h>
#endif
#ifndef BALL_VIEW_KERNEL_SHORTCUTREGISTRY_H
#include <BALL/VIEW/KERNEL/shortcutRegistry.h>
#endif
#ifndef BALL_VIEW_KERNEL_UIOPERATIONMODE_H
#include <BALL/VIEW/KERNEL/UIOperationMode.h>
#endif
#ifndef BALL_VIEW_KERNEL_UIOPERATIONMODE_H
#include <BALL/VIEW/KERNEL/shortcutRegistry.h>
#endif
#ifndef BALL_FORMAT_INIFILE_H
# include <BALL/FORMAT/INIFile.h>
#endif
#ifndef BALL_SYSTEM_FILE_H
# include <BALL/SYSTEM/file.h>
#endif
#ifndef BALL_STRUCTURE_FRAGMENTDB_H
# include <BALL/STRUCTURE/fragmentDB.h>
#endif
#include <QtGui/QKeySequence>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QApplication>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QLabel>
#include <QtCore/QTimer>
class QCloseEvent;
namespace BALL
{
namespace VIEW
{
class ModelInformation;
class ModularWidget;
class Preferences;
class MainControlPreferences;
class OpenSavePreferences;
class NetworkPreferences;
class GeometricObjectSelectionMessage;
class SimulationThread;
class BALL_VIEW_EXPORT MainControl
: public QMainWindow,
public ConnectionObject,
public Embeddable
{
friend class RepresentationManager;
friend class SimulationThread;
Q_OBJECT
public:
BALL_EMBEDDABLE(MainControl,Embeddable)
enum PopUpID
{
FILE = 10001,
FILE_OPEN,
FILE_OPEN_GRID,
FILE_IMPORT,
FILE_EXPORT,
FILE_MONITOR,
EDIT = 10100,
BUILD = 10200,
DISPLAY = 10300,
DISPLAY_CREATE,
DISPLAY_VIEWPOINT,
DISPLAY_STEREO,
DISPLAY_ANIMATION,
#ifdef BALL_HAS_RTFACT
DISPLAY_CONTINUOUSLOOP,
#endif
MOLECULARMECHANICS = 10400,
CHOOSE_FF,
TOOLS = 10500,
TOOLS_GRID,
TOOLS_PYTHON,
WINDOWS = 10600,
USER = 10700,
MACRO = 10750,
HELP = 10800
};
MainControl(QWidget* parent = 0, const char* name = 0 , String inifile = ".BALL.preferences");
virtual ~MainControl();
// copy ctor needed for Python support only!
MainControl(const MainControl& main_control);
virtual void clear();
void clearData();
RepresentationManager& getRepresentationManager()
{ return primitive_manager_;}
bool insert(Representation& rep);
bool remove(Representation& rep);
bool update(Representation& rep);
bool updateRepresentationsOf(const Composite& composite, bool rebuild = true, bool force = false);
void redrawAllRepresentations(bool rebuild_display_lists = false);
ShortcutRegistry& getShortcutRegistry() { return shortcut_registry_;}
//
CompositeManager& getCompositeManager()
{ return composite_manager_;}
bool insert(Composite& composite, String name = "", bool normalize = true);
bool remove(Composite& composite, bool to_delete = true, bool update = true);
void update(Composite& composite, bool changed_hierarchy = true);
const HashSet<Composite*>& getSelection() const;
HashSet<Composite*>& getSelection() ;
std::list<Composite*>& getMolecularControlSelection();
System* getSelectedSystem();
void selectCompositeRecursive(Composite* composite, bool first_call=false);
void deselectCompositeRecursive(Composite* composite, bool first_call=false);
void printSelectionInfos();
void saveBALLViewProjectFile(const String& filename, bool binary = true);
void loadBALLViewProjectFile(const String& filename);
virtual void fetchPreferences(INIFile &inifile);
virtual void writePreferences(INIFile &inifile);
virtual void restoreWindows();
virtual void restoreWindows(const INIFile& inifile);
INIFile& getINIFile();
const INIFile& getINIFile() const;
Preferences* getPreferences();
virtual void applyPreferences();
static MainControl* getMainControl(const QObject* object);
void addModularWidget(ModularWidget* widget);
void removeModularWidget(ModularWidget* widget);
virtual void onNotify(Message *message);
void sendMessage(Message& message);
QAction* insertMenuEntry(Position parent_id, const String& name, const QObject* receiver = 0,
const char* slot = 0, const String& description = "", QKeySequence accel = QKeySequence(),
UIOperationMode::OperationMode minimal_mode = UIOperationMode::MODE_ALL);
QAction* insertMenuEntry(Position parent_id, const QString& name, const QObject* receiver = 0,
const char* slot = 0, const QString& description = "", QKeySequence accel = QKeySequence(),
UIOperationMode::OperationMode minimal_mode = UIOperationMode::MODE_ALL);
virtual QMenu* addMenu(const QString& title, UIOperationMode::OperationMode mode = UIOperationMode::MODE_ALL);
void removeMenuEntry (Index parent_id, QAction* action);
virtual QMenu* initPopupMenu(int ID, UIOperationMode::OperationMode mode = UIOperationMode::MODE_ALL);
void insertPopupMenuSeparator(int ID, UIOperationMode::OperationMode mode = UIOperationMode::MODE_ALL);
void setMenuHint(QAction* id, const String& hint);
String getMenuHint(QAction* id) const;
void setDeleteEntryEnabled(bool state);
void insertDeleteEntry();
QAction* getLastHighLightedMenuEntry() { return last_highlighted_menu_entry_;}
bool compositesAreLocked() const;
bool lockCompositesFor(ModularWidget* widget);
bool unlockCompositesFor(ModularWidget* widget);
ModularWidget* getLockingWidget();
bool updateOfRepresentationRunning();
bool stopedSimulation() { return stop_simulation_;}
bool setSimulationThread(SimulationThread* thread);
SimulationThread* getSimulationThread();
bool useMultithreading();
void setMultithreading(bool state)
{multi_threading_mode_ = state;}
bool isBusy() const;
void wait();
void processEvents(Size ms);
void setStatusbarText(const String& text, bool important = false, bool beep = false);
void setStatusbarText(const QString& text, bool important = false, bool beep = false);
String getStatusbarText() const;
const FragmentDB& getFragmentDB() const
{ return fragment_db_;}
const ModelInformation& getModelInformation() const;
void setModelInformation(ModelInformation* mi);
String getWorkingDir() const
{ return working_dir_;}
void setWorkingDir(const String& dir);
void enableLoggingToFile();
void disableLoggingToFile();
void setLoggingFilename(const String& string);
const String& getLoggingFilename() const;
bool isAboutToQuit() { return about_to_quit_;}
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
virtual void openFile(const String& file) ;
virtual QMenu* createPopupMenu();
public Q_SLOTS:
virtual void show();
virtual void checkMenus();
void stopSimulation();
void complementSelection();
void clearSelection();
virtual void aboutToExit();
void menuItemHighlighted(QAction* action);
virtual bool event(QEvent* e);
virtual void quit(int return_value = 0);
virtual void resize(int w, int h );
void setContentSize(int w, int h);
void toggleFullScreen();
void quickSave();
void quickLoad();
void saveBALLViewProjectFile();
void loadBALLViewProjectFile();
void quickLoadConfirm();
protected Q_SLOTS:
/*_ This slot is called internally whenever the apply button
of the Preferences dialog is pressed.
It calls among other things the method applyPreferences().
*/
virtual void applyPreferencesClicked_();
/*_ This slot is called internally whenever the ok button
of the Preferences dialog is pressed.
It calls among other things the method applyPreferences().
*/
virtual void okPreferencesClicked_();
//_ Called by timer to clear the text in the statusbar
void clearStatusBarText_();
// Connected to the delete entry
virtual void deleteClicked();
void updateRepLabel_();
protected:
virtual void initializePreferencesTab_();
//_ Called after receiving an SimulationThreadFinished event
void stopedSimulation_();
void lockComposites_();
/*_ Remove a composite.
Every Representation, which was created for the Composite is deleted, by sending a
RepresentationMessage with type RepresentationMessage::REMOVE.\par
Redraws representations of the parent of the Composite, if wished.
\return bool <tt>true</tt> if the CompositeManager has the Composite
*/
bool remove_(Composite& composite, bool update_representations_of_parent = true,
bool to_delete = true);
/*_ Select the composite parents of the geometric objects.
The GeometricObjectSelectionMessage is sent by the Scene.
*/
void selectComposites_(GeometricObjectSelectionMessage& message);
void reduceSelection_(Composite* const composite);
//_ Called by constructors
void setup_();
void complementSelectionHelper_(Composite& c);
void setBusyMode_(bool state);
//_
void setPreferencesEnabled_(bool state);
void init_();
virtual void closeEvent(QCloseEvent* evt);
bool about_to_quit_;
bool multi_threading_mode_;
//_
FragmentDB fragment_db_;
ModelInformation* model_information_;
/*_ List with the selected composites
*/
HashSet<Composite*> selection_;
/*_ List with the selected composites of the control.
(Not the one with the checkboxes!)
*/
std::list<Composite*> control_selection_;
/*_ Message label in the statusbar
\see setStatusbarText
*/
QLabel* message_label_;
RepresentationManager primitive_manager_;
CompositeManager composite_manager_;
ShortcutRegistry shortcut_registry_;
MainControlPreferences* main_control_preferences_;
OpenSavePreferences* open_save_preferences_;
NetworkPreferences* network_preferences_;
Preferences* preferences_dialog_;
INIFile preferences_file_;
bool composites_locked_;
ModularWidget* locking_widget_;
bool stop_simulation_;
SimulationThread* simulation_thread_;
/*_ A list containing all modular widgets.
This list is modified by addModularWidget and
removeModularWidget.
*/
std::list<ModularWidget*> modular_widgets_;
QLabel* simulation_icon_;
QLabel* rep_label_;
static const char *simulation_running_xpm_[];
static const char *simulation_stoped_xpm_[];
Position rep_label_nr_;
String working_dir_;
String logging_file_name_;
bool logging_to_file_;
File logging_file_;
bool important_text_in_statusbar_;
bool was_not_busy_;
Index rep_label_delta_;
QTimer timer_;
QTimer render_timer_;
Mutex composites_locked_mutex_;
QAction* stop_simulation_action_;
QAction* fullscreen_action_;
QAction* complement_selection_action_;
QAction* clear_selection_action_;
QAction* open_action_;
QAction* preferences_action_;
QAction* delete_action_;
QAction* last_highlighted_menu_entry_;
HashMap<Position, QMenu*> id_to_menu_;
QPoint last_point_;
QSize last_size_;
QByteArray last_state_;
};
# ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/VIEW/KERNEL/mainControl.iC>
# endif
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_KERNEL_MAINCONTROL_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
INIFile.h
UIOperationMode.h
BALL::Composite
Definition composite.h:74
BALL::Embeddable::Embeddable
Embeddable(const String &identifier="<Embeddable>")
BALL::File
Definition file.h:136
BALL::FragmentDB
Definition fragmentDB.h:45
BALL::HashMap
HashMap class based on the STL map (containing serveral convenience functions).
Definition hashMap.h:74
BALL::HashSet
Definition hashSet.h:46
BALL::INIFile
Definition INIFile.h:29
BALL::String
Definition string.h:57
BALL::System
Definition KERNEL/system.h:40
BALL::VIEW::CompositeManager
Definition compositeManager.h:27
BALL::VIEW::ConnectionObject::ConnectionObject
ConnectionObject()
BALL::VIEW::GeometricObjectSelectionMessage
Definition message.h:517
BALL::VIEW::MainControlPreferences
Definition mainControlPreferences.h:41
BALL::VIEW::MainControl::stop_simulation_action_
QAction * stop_simulation_action_
Definition mainControl.h:951
BALL::VIEW::MainControl::restoreWindows
virtual void restoreWindows(const INIFile &inifile)
Restore the positions the main window and of all DockWindow's from a given inifile.
BALL::VIEW::MainControl::getShortcutRegistry
ShortcutRegistry & getShortcutRegistry()
Definition mainControl.h:308
BALL::VIEW::MainControl::delete_action_
QAction * delete_action_
Definition mainControl.h:957
BALL::VIEW::MainControl::openFile
virtual void openFile(const String &file)
BALL::VIEW::MainControl::rep_label_
QLabel * rep_label_
Definition mainControl.h:933
BALL::VIEW::MainControl::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::MainControl::getLoggingFilename
const String & getLoggingFilename() const
See above.
BALL::VIEW::MainControl::getStatusbarText
String getStatusbarText() const
BALL::VIEW::MainControl::quickLoadConfirm
void quickLoadConfirm()
BALL::VIEW::MainControl::simulation_icon_
QLabel * simulation_icon_
Definition mainControl.h:932
BALL::VIEW::MainControl::~MainControl
virtual ~MainControl()
BALL::VIEW::MainControl::update
void update(Composite &composite, bool changed_hierarchy=true)
BALL::VIEW::MainControl::remove
bool remove(Composite &composite, bool to_delete=true, bool update=true)
BALL::VIEW::MainControl::isAboutToQuit
bool isAboutToQuit()
Definition mainControl.h:694
BALL::VIEW::MainControl::insert
bool insert(Representation &rep)
BALL::VIEW::MainControl::setup_
void setup_()
BALL::VIEW::MainControl::primitive_manager_
RepresentationManager primitive_manager_
Definition mainControl.h:910
BALL::VIEW::MainControl::update
bool update(Representation &rep)
BALL::VIEW::MainControl::last_highlighted_menu_entry_
QAction * last_highlighted_menu_entry_
Definition mainControl.h:959
BALL::VIEW::MainControl::important_text_in_statusbar_
bool important_text_in_statusbar_
Definition mainControl.h:944
BALL::VIEW::MainControl::loadBALLViewProjectFile
void loadBALLViewProjectFile(const String &filename)
Load a BALLView project file.
BALL::VIEW::MainControl::updateRepLabel_
void updateRepLabel_()
BALL::VIEW::MainControl::setContentSize
void setContentSize(int w, int h)
BALL::VIEW::MainControl::open_save_preferences_
OpenSavePreferences * open_save_preferences_
Definition mainControl.h:915
BALL::VIEW::MainControl::selectComposites_
void selectComposites_(GeometricObjectSelectionMessage &message)
BALL::VIEW::MainControl::fetchPreferences
virtual void fetchPreferences(INIFile &inifile)
BALL::VIEW::MainControl::resize
virtual void resize(int w, int h)
overloaded from QT for Python Interface
BALL::VIEW::MainControl::stopSimulation
void stopSimulation()
Stop a currently running calculation.
BALL::VIEW::MainControl::timer_
QTimer timer_
Definition mainControl.h:947
BALL::VIEW::MainControl::useMultithreading
bool useMultithreading()
BALL::VIEW::MainControl::setStatusbarText
void setStatusbarText(const String &text, bool important=false, bool beep=false)
BALL::VIEW::MainControl::wait
void wait()
Wait until the MainControl is not busy anymore.
BALL::VIEW::MainControl::sendMessage
void sendMessage(Message &message)
BALL::VIEW::MainControl::applyPreferences
virtual void applyPreferences()
BALL::VIEW::MainControl::network_preferences_
NetworkPreferences * network_preferences_
Definition mainControl.h:916
BALL::VIEW::MainControl::quickSave
void quickSave()
Create a BALLView project file with the name quick.bvp in the users home dir.
BALL::VIEW::MainControl::clear_selection_action_
QAction * clear_selection_action_
Definition mainControl.h:954
BALL::VIEW::MainControl::logging_to_file_
bool logging_to_file_
Definition mainControl.h:941
BALL::VIEW::MainControl::open_action_
QAction * open_action_
Definition mainControl.h:955
BALL::VIEW::MainControl::render_timer_
QTimer render_timer_
Definition mainControl.h:948
BALL::VIEW::MainControl::insertDeleteEntry
void insertDeleteEntry()
BALL::VIEW::MainControl::getLastHighLightedMenuEntry
QAction * getLastHighLightedMenuEntry()
Get the ID of the last highlighted menu entry.
Definition mainControl.h:566
BALL::VIEW::MainControl::stopedSimulation
bool stopedSimulation()
Returns true, if the simulation was told to stop, but hasnt done this so far.
Definition mainControl.h:595
BALL::VIEW::MainControl::preferences_file_
INIFile preferences_file_
Definition mainControl.h:918
BALL::VIEW::MainControl::enableLoggingToFile
void enableLoggingToFile()
BALL::VIEW::MainControl::init_
void init_()
BALL::VIEW::MainControl::preferences_dialog_
Preferences * preferences_dialog_
Definition mainControl.h:917
BALL::VIEW::MainControl::clear
virtual void clear()
BALL::VIEW::MainControl::fullscreen_action_
QAction * fullscreen_action_
Definition mainControl.h:952
BALL::VIEW::MainControl::getFragmentDB
const FragmentDB & getFragmentDB() const
Get a const reference for the fragment database.
Definition mainControl.h:658
BALL::VIEW::MainControl::redrawAllRepresentations
void redrawAllRepresentations(bool rebuild_display_lists=false)
BALL::VIEW::MainControl::clearData
void clearData()
BALL::VIEW::MainControl::saveBALLViewProjectFile
void saveBALLViewProjectFile()
BALL::VIEW::MainControl::composites_locked_mutex_
Mutex composites_locked_mutex_
Definition mainControl.h:949
BALL::VIEW::MainControl::complement_selection_action_
QAction * complement_selection_action_
Definition mainControl.h:953
BALL::VIEW::MainControl::lockComposites_
void lockComposites_()
BALL::VIEW::MainControl::compositesAreLocked
bool compositesAreLocked() const
BALL::VIEW::MainControl::rep_label_nr_
Position rep_label_nr_
Definition mainControl.h:936
BALL::VIEW::MainControl::message_label_
QLabel * message_label_
Definition mainControl.h:908
BALL::VIEW::MainControl::SimulationThread
friend class SimulationThread
Definition mainControl.h:120
BALL::VIEW::MainControl::lockCompositesFor
bool lockCompositesFor(ModularWidget *widget)
BALL::VIEW::MainControl::restoreWindows
virtual void restoreWindows()
Restore the positions the main window and of all DockWindow's from the INIFile assigned to this insta...
BALL::VIEW::MainControl::simulation_thread_
SimulationThread * simulation_thread_
Definition mainControl.h:924
BALL::VIEW::MainControl::was_not_busy_
bool was_not_busy_
Definition mainControl.h:945
BALL::VIEW::MainControl::last_state_
QByteArray last_state_
Definition mainControl.h:963
BALL::VIEW::MainControl::complementSelectionHelper_
void complementSelectionHelper_(Composite &c)
BALL::VIEW::MainControl::initPopupMenu
virtual QMenu * initPopupMenu(int ID, UIOperationMode::OperationMode mode=UIOperationMode::MODE_ALL)
BALL::VIEW::MainControl::getINIFile
const INIFile & getINIFile() const
BALL::VIEW::MainControl::id_to_menu_
HashMap< Position, QMenu * > id_to_menu_
Definition mainControl.h:960
BALL::VIEW::MainControl::about_to_quit_
bool about_to_quit_
Definition mainControl.h:888
BALL::VIEW::MainControl::insertMenuEntry
QAction * insertMenuEntry(Position parent_id, const QString &name, const QObject *receiver=0, const char *slot=0, const QString &description="", QKeySequence accel=QKeySequence(), UIOperationMode::OperationMode minimal_mode=UIOperationMode::MODE_ALL)
BALL::VIEW::MainControl::getMolecularControlSelection
std::list< Composite * > & getMolecularControlSelection()
Get the selection (highlighted items) of the MolecularControl (not the selection with checkboxes).
BALL::VIEW::MainControl::remove
bool remove(Representation &rep)
BALL::VIEW::MainControl::saveBALLViewProjectFile
void saveBALLViewProjectFile(const String &filename, bool binary=true)
Save the current configuration, structures and representations to a BALLView project file (*....
BALL::VIEW::MainControl::clearStatusBarText_
void clearStatusBarText_()
BALL::VIEW::MainControl::getSelectedSystem
System * getSelectedSystem()
If exactly one System is selected in the Control, return a pointer to this system,...
BALL::VIEW::MainControl::working_dir_
String working_dir_
Definition mainControl.h:938
BALL::VIEW::MainControl::okPreferencesClicked_
virtual void okPreferencesClicked_()
BALL::VIEW::MainControl::removeModularWidget
void removeModularWidget(ModularWidget *widget)
BALL::VIEW::MainControl::clearSelection
void clearSelection()
BALL::VIEW::MainControl::insert
bool insert(Composite &composite, String name="", bool normalize=true)
BALL::VIEW::MainControl::addModularWidget
void addModularWidget(ModularWidget *widget)
BALL::VIEW::MainControl::setBusyMode_
void setBusyMode_(bool state)
BALL::VIEW::MainControl::event
virtual bool event(QEvent *e)
Interface to QT events, e.g. to communicate with other threads.
BALL::VIEW::MainControl::menuItemHighlighted
void menuItemHighlighted(QAction *action)
BALL::VIEW::MainControl::remove_
bool remove_(Composite &composite, bool update_representations_of_parent=true, bool to_delete=true)
BALL::VIEW::MainControl::rep_label_delta_
Index rep_label_delta_
Definition mainControl.h:946
BALL::VIEW::MainControl::insertPopupMenuSeparator
void insertPopupMenuSeparator(int ID, UIOperationMode::OperationMode mode=UIOperationMode::MODE_ALL)
BALL::VIEW::MainControl::setMenuHint
void setMenuHint(QAction *id, const String &hint)
Set a hint for a menu entry.
BALL::VIEW::MainControl::toggleFullScreen
void toggleFullScreen()
BALL::VIEW::MainControl::getSelection
HashSet< Composite * > & getSelection()
Get the HashSet with the selected (e.g. picked) Composite objects.
BALL::VIEW::MainControl::composites_locked_
bool composites_locked_
Definition mainControl.h:920
BALL::VIEW::MainControl::closeEvent
virtual void closeEvent(QCloseEvent *evt)
BALL::VIEW::MainControl::aboutToExit
virtual void aboutToExit()
BALL::VIEW::MainControl::logging_file_name_
String logging_file_name_
Definition mainControl.h:940
BALL::VIEW::MainControl::selection_
HashSet< Composite * > selection_
Definition mainControl.h:898
BALL::VIEW::MainControl::quit
virtual void quit(int return_value=0)
Make the program exit.
BALL::VIEW::MainControl::getINIFile
INIFile & getINIFile()
BALL::VIEW::MainControl::stopedSimulation_
void stopedSimulation_()
BALL::VIEW::MainControl::getSelection
const HashSet< Composite * > & getSelection() const
Get the HashSet with the selected (e.g. picked) Composite objects (const).
BALL::VIEW::MainControl::processEvents
void processEvents(Size ms)
Added overloaded method from QApplication for access in Python.
BALL::VIEW::MainControl::preferences_action_
QAction * preferences_action_
Definition mainControl.h:956
BALL::VIEW::MainControl::unlockCompositesFor
bool unlockCompositesFor(ModularWidget *widget)
Lock the Composites for a given Modular Widget.
BALL::VIEW::MainControl::shortcut_registry_
ShortcutRegistry shortcut_registry_
Definition mainControl.h:912
BALL::VIEW::MainControl::getRepresentationManager
RepresentationManager & getRepresentationManager()
Definition mainControl.h:256
BALL::VIEW::MainControl::show
virtual void show()
BALL::VIEW::MainControl::getModelInformation
const ModelInformation & getModelInformation() const
BALL::VIEW::MainControl::model_information_
ModelInformation * model_information_
Definition mainControl.h:894
BALL::VIEW::MainControl::control_selection_
std::list< Composite * > control_selection_
Definition mainControl.h:903
BALL::VIEW::MainControl::writePreferences
virtual void writePreferences(INIFile &inifile)
BALL::VIEW::MainControl::setDeleteEntryEnabled
void setDeleteEntryEnabled(bool state)
BALL::VIEW::MainControl::MainControl
MainControl(const MainControl &main_control)
BALL::VIEW::MainControl::deleteClicked
virtual void deleteClicked()
BALL::VIEW::MainControl::fragment_db_
FragmentDB fragment_db_
Definition mainControl.h:892
BALL::VIEW::MainControl::loadBALLViewProjectFile
void loadBALLViewProjectFile()
BALL::VIEW::MainControl::onNotify
virtual void onNotify(Message *message)
BALL::VIEW::MainControl::reduceSelection_
void reduceSelection_(Composite *const composite)
BALL::VIEW::MainControl::addMenu
virtual QMenu * addMenu(const QString &title, UIOperationMode::OperationMode mode=UIOperationMode::MODE_ALL)
BALL::VIEW::MainControl::main_control_preferences_
MainControlPreferences * main_control_preferences_
Definition mainControl.h:914
BALL::VIEW::MainControl::setModelInformation
void setModelInformation(ModelInformation *mi)
BALL::VIEW::MainControl::initializePreferencesTab_
virtual void initializePreferencesTab_()
BALL::VIEW::MainControl::last_point_
QPoint last_point_
Definition mainControl.h:961
BALL::VIEW::MainControl::simulation_stoped_xpm_
static const char * simulation_stoped_xpm_[]
Definition mainControl.h:935
BALL::VIEW::MainControl::disableLoggingToFile
void disableLoggingToFile()
BALL::VIEW::MainControl::getSimulationThread
SimulationThread * getSimulationThread()
BALL::VIEW::MainControl::last_size_
QSize last_size_
Definition mainControl.h:962
BALL::VIEW::MainControl::getMenuHint
String getMenuHint(QAction *id) const
Get the hint for a menu entry.
BALL::VIEW::MainControl::applyPreferencesClicked_
virtual void applyPreferencesClicked_()
BALL::VIEW::MainControl::simulation_running_xpm_
static const char * simulation_running_xpm_[]
Definition mainControl.h:934
BALL::VIEW::MainControl::multi_threading_mode_
bool multi_threading_mode_
Definition mainControl.h:889
BALL::VIEW::MainControl::deselectCompositeRecursive
void deselectCompositeRecursive(Composite *composite, bool first_call=false)
Select a Composite recursive and add all Atom and AtomContainer objects to the selection.
BALL::VIEW::MainControl::updateRepresentationsOf
bool updateRepresentationsOf(const Composite &composite, bool rebuild=true, bool force=false)
BALL::VIEW::MainControl::setWorkingDir
void setWorkingDir(const String &dir)
Set the working directory for the next file dialog and file operation to the given directory.
BALL::VIEW::MainControl::locking_widget_
ModularWidget * locking_widget_
Definition mainControl.h:921
BALL::VIEW::MainControl::setSimulationThread
bool setSimulationThread(SimulationThread *thread)
BALL::VIEW::MainControl::getWorkingDir
String getWorkingDir() const
Definition mainControl.h:671
BALL::VIEW::MainControl::createPopupMenu
virtual QMenu * createPopupMenu()
BALL::VIEW::MainControl::selectCompositeRecursive
void selectCompositeRecursive(Composite *composite, bool first_call=false)
Select a Composite recursive and add all Atom and AtomContainer objects to the selection.
BALL::VIEW::MainControl::complementSelection
void complementSelection()
BALL::VIEW::MainControl::getPreferences
Preferences * getPreferences()
BALL::VIEW::MainControl::PopUpID
PopUpID
Definition mainControl.h:137
BALL::VIEW::MainControl::CHOOSE_FF
@ CHOOSE_FF
Molmec submenu for force field selection.
Definition mainControl.h:185
BALL::VIEW::MainControl::DISPLAY_STEREO
@ DISPLAY_STEREO
Display Stereo submenu.
Definition mainControl.h:172
BALL::VIEW::MainControl::FILE_OPEN
@ FILE_OPEN
File menu sub menu open.
Definition mainControl.h:142
BALL::VIEW::MainControl::DISPLAY
@ DISPLAY
Display menu.
Definition mainControl.h:163
BALL::VIEW::MainControl::FILE_IMPORT
@ FILE_IMPORT
File menu sub menu import [currently unused].
Definition mainControl.h:148
BALL::VIEW::MainControl::DISPLAY_ANIMATION
@ DISPLAY_ANIMATION
Display Animation submenu.
Definition mainControl.h:175
BALL::VIEW::MainControl::FILE_MONITOR
@ FILE_MONITOR
Definition mainControl.h:154
BALL::VIEW::MainControl::USER
@ USER
Userdefined menus.
Definition mainControl.h:200
BALL::VIEW::MainControl::FILE_OPEN_GRID
@ FILE_OPEN_GRID
File menu sub menu open grid.
Definition mainControl.h:145
BALL::VIEW::MainControl::FILE
@ FILE
File menu.
Definition mainControl.h:139
BALL::VIEW::MainControl::BUILD
@ BUILD
Build menu.
Definition mainControl.h:160
BALL::VIEW::MainControl::TOOLS_PYTHON
@ TOOLS_PYTHON
Python submenu in Tools.
Definition mainControl.h:194
BALL::VIEW::MainControl::FILE_EXPORT
@ FILE_EXPORT
File menu sub menu export.
Definition mainControl.h:151
BALL::VIEW::MainControl::DISPLAY_CREATE
@ DISPLAY_CREATE
Display Create submenu.
Definition mainControl.h:166
BALL::VIEW::MainControl::TOOLS_GRID
@ TOOLS_GRID
Grid submenu in Tools.
Definition mainControl.h:191
BALL::VIEW::MainControl::EDIT
@ EDIT
Edit menu.
Definition mainControl.h:157
BALL::VIEW::MainControl::MOLECULARMECHANICS
@ MOLECULARMECHANICS
Simulations menu.
Definition mainControl.h:182
BALL::VIEW::MainControl::TOOLS
@ TOOLS
Tools menu.
Definition mainControl.h:188
BALL::VIEW::MainControl::HELP
@ HELP
Definition mainControl.h:207
BALL::VIEW::MainControl::MACRO
@ MACRO
Macros e.g. for Testing.
Definition mainControl.h:203
BALL::VIEW::MainControl::WINDOWS
@ WINDOWS
Windows menu.
Definition mainControl.h:197
BALL::VIEW::MainControl::DISPLAY_VIEWPOINT
@ DISPLAY_VIEWPOINT
Display Viewpoint submenu.
Definition mainControl.h:169
BALL::VIEW::MainControl::setMultithreading
void setMultithreading(bool state)
See above.
Definition mainControl.h:624
BALL::VIEW::MainControl::removeMenuEntry
void removeMenuEntry(Index parent_id, QAction *action)
BALL::VIEW::MainControl::printSelectionInfos
void printSelectionInfos()
BALL::VIEW::MainControl::checkMenus
virtual void checkMenus()
BALL::VIEW::MainControl::MainControl
MainControl(QWidget *parent=0, const char *name=0, String inifile=".BALL.preferences")
BALL::VIEW::MainControl::insertMenuEntry
QAction * insertMenuEntry(Position parent_id, const String &name, const QObject *receiver=0, const char *slot=0, const String &description="", QKeySequence accel=QKeySequence(), UIOperationMode::OperationMode minimal_mode=UIOperationMode::MODE_ALL)
BALL::VIEW::MainControl::getMainControl
static MainControl * getMainControl(const QObject *object)
BALL::VIEW::MainControl::setLoggingFilename
void setLoggingFilename(const String &string)
BALL::VIEW::MainControl::setStatusbarText
void setStatusbarText(const QString &text, bool important=false, bool beep=false)
BALL::VIEW::MainControl::RepresentationManager
friend class RepresentationManager
Definition mainControl.h:119
BALL::VIEW::MainControl::composite_manager_
CompositeManager composite_manager_
Definition mainControl.h:911
BALL::VIEW::MainControl::stop_simulation_
bool stop_simulation_
Definition mainControl.h:922
BALL::VIEW::MainControl::updateOfRepresentationRunning
bool updateOfRepresentationRunning()
Return true if Representations are (re)calculated.
BALL::VIEW::MainControl::getLockingWidget
ModularWidget * getLockingWidget()
Get the ModularWidget with excluse access to the Composites.
BALL::VIEW::MainControl::setPreferencesEnabled_
void setPreferencesEnabled_(bool state)
BALL::VIEW::MainControl::getCompositeManager
CompositeManager & getCompositeManager()
Definition mainControl.h:320
BALL::VIEW::MainControl::isBusy
bool isBusy() const
BALL::VIEW::MainControl::quickLoad
void quickLoad()
Quickload quick.bvp in the users home die (see above).
BALL::VIEW::MainControl::modular_widgets_
std::list< ModularWidget * > modular_widgets_
Definition mainControl.h:930
BALL::VIEW::MainControl::logging_file_
File logging_file_
Definition mainControl.h:942
BALL::VIEW::Message
Definition message.h:53
BALL::VIEW::ModelInformation
Definition modelInformation.h:27
BALL::VIEW::ModularWidget
Definition modularWidget.h:63
BALL::VIEW::NetworkPreferences
Definition networkPreferences.h:33
BALL::VIEW::OpenSavePreferences
Definition openSavePreferences.h:20
BALL::VIEW::Preferences
Definition preferences.h:43
BALL::VIEW::Representation
Definition representation.h:59
BALL::VIEW::ShortcutRegistry
Definition shortcutRegistry.h:40
BALL::VIEW::SimulationThread
Definition threads.h:191
BALL::VIEW::UIOperationMode::OperationMode
OperationMode
Definition UIOperationMode.h:30
BALL::VIEW::UIOperationMode::MODE_ALL
@ MODE_ALL
Definition UIOperationMode.h:34
QEvent
QMainWindow
QObject
QWidget
compositeManager.h
connectionObject.h
embeddable.h
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
file.h
fragmentDB.h
hashMap.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
BALL::Position
BALL_SIZE_TYPE Position
Definition COMMON/global.h:140
BALL::Mutex
TMutex< BALL_DEFAULT_MUTEX_TYPE > Mutex
Definition mutex.h:224
BALL::Index
BALL_INDEX_TYPE Index
Definition COMMON/global.h:105
representationManager.h
shortcutRegistry.h