1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
class MainControl
: Embeddable
{
%TypeHeaderCode
#include <BALL/VIEW/KERNEL/mainControl.h>
%End
public:
MainControl(const MainControl&) throw();
~MainControl() throw();
virtual void clear() throw();
void clearData() throw();
static Size countInstances();
static MainControl* getInstance(Position);
RepresentationManager& getRepresentationManager() throw();
CompositeManager& getCompositeManager() throw();
bool updateRepresentationsOf(const Composite&, bool rebuild = true, bool = false) throw();
void redrawAllRepresentations(bool rebuild_display_lists = false) throw();
void update(Composite&, bool changed_hierarchy = true) throw();
// we get a seg fault under windows if we use default parameters here:
bool insert(Composite& /Transfer/, String) throw();
bool insert(Composite& /Transfer/) throw();
bool remove(Composite&, bool = true, bool = true) throw();
bool update(Representation&) throw();
bool insert(Representation& /Transfer/) throw();
bool remove(Representation&) throw();
Preferences* getPreferences() throw();
INIFile& getINIFile() throw();
void sendMessage(Message& /Transfer/) throw();
virtual void show();
virtual void checkMenus();
void stopSimulation();
void complementSelection();
virtual void aboutToExit();
virtual void quit(int = 0);
virtual bool isAboutToQuit();
virtual void resize(int, int);
void setContentSize(int, int);
void toggleFullScreen();
void showFullScreen();
void insertPopupMenuSeparator(int) throw();
void applyPreferences() throw();
void fetchPreferences(INIFile&) throw();
void writePreferences(INIFile&) throw();
void restoreWindows(const INIFile&) throw();
void addModularWidget(ModularWidget*) throw();
void removeModularWidget(ModularWidget*) throw();
PyCompositeList getSelection() throw();
PyCompositeList getMolecularControlSelection() throw();
System* getSelectedSystem() throw();
void selectCompositeRecursive(Composite*, bool first_call = false) throw();
void deselectCompositeRecursive(Composite*, bool first_call = false) throw();
void clearSelection() throw();
void printSelectionInfos() throw();
void setStatusbarText(const String&, bool = false, bool = false);
String getStatusbarText() const throw();
const FragmentDB& getFragmentDB() const throw();
bool compositesAreLocked() const throw();
bool lockCompositesFor(ModularWidget*) throw();
bool unlockCompositesFor(ModularWidget*) throw();
ModularWidget* getLockingWidget() throw();
bool updateOfRepresentationRunning() throw();
bool stopedSimulation();
bool isBusy();
void wait();
void setDeleteEntryEnabled(bool) throw();
void insertDeleteEntry() throw();
String getWorkingDir() const throw();
void setWorkingDir(const String&) throw();
void enableLoggingToFile() throw();
void disableLoggingToFile() throw();
void setLoggingFilename(const String&) throw();
const String& getLoggingFilename() const throw();
bool useMultithreading() throw();
void setMultithreading(bool) throw();
virtual void openFile(const String&) throw();
void saveBALLViewProjectFile(const String&);
void loadBALLViewProjectFile(const String&) throw();
void quickSave();
void quickLoad();
void processEvents(Size);
};
|