BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
BALL::VIEW::DockResultController Class Reference

#include <BALL/VIEW/DATATYPE/standardDatasets.h>

Inheritance diagram for BALL::VIEW::DockResultController:
BALL::VIEW::DatasetController QObject BALL::Embeddable

Public Slots

void showDockResult ()
 
bool saveDockTrajectory ()
 
- Public Slots inherited from BALL::VIEW::DatasetController
virtual bool write ()
 Show a file dialog for writing the selected Dataset. More...
 
bool open ()
 
virtual bool deleteDatasets ()
 Delete all Datasets. More...
 
virtual bool deleteDataset ()
 Delete the currently highlighted Dataset. More...
 

Public Member Functions

 DockResultController ()
 
 DockResultController (DockResultController &dc)
 
virtual ~DockResultController ()
 
virtual bool write (Dataset *set, String filetype, String filename)
 
virtual Datasetopen (String filetype, String filename)
 
virtual bool createMenuEntries ()
 
virtual QMenu * buildContextMenu (QTreeWidgetItem *item)
 
DockResultgetData (Dataset *set)
 
- Public Member Functions inherited from BALL::VIEW::DatasetController
 DatasetController ()
 
 DatasetController (DatasetController &dc)
 
virtual ~DatasetController ()
 
void setDatasetControl (DatasetControl *dc)
 
DatasetControlgetDatasetControl ()
 
virtual bool handle (DatasetMessage *msg)
 
virtual bool insertDataset (Dataset *set)
 
virtual bool deleteDataset (Dataset *set)
 
vector< Dataset * > getDatasets ()
 Get all Datasets of this type in the DatasetControl. More...
 
vector< Dataset * > getSelectedDatasets ()
 Get all selected Datasets of this type in the DatasetControl. More...
 
DatasetgetSelectedDataset ()
 
bool hasDataset (Dataset *set)
 
bool hasItem (QTreeWidgetItem *item)
 Test if a given QTreeWidgetItem corresponds to a registered Dataset. More...
 
DatasetgetDataset (QTreeWidgetItem *item)
 Get the Dataset for a QTreeWidgetItem. More...
 
String getType ()
 
virtual void checkMenu (MainControl &mc)
 
vector< StringgetSupportedFileFormats ()
 
- Public Member Functions inherited from BALL::Embeddable
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 
 Embeddable (const String &identifier="<Embeddable>")
 
 Embeddable (const Embeddable &embeddable)
 
virtual ~Embeddable ()
 
void setIdentifier (const String &identifier)
 
const StringgetIdentifier () const
 
void unregisterThis ()
 
virtual void registerThis ()
 

Static Public Attributes

static String type
 

Protected Member Functions

void deleteDataset_ (Dataset *set)
 
- Protected Member Functions inherited from BALL::VIEW::DatasetController
void setStatusbarText (const String &text, bool important=false)
 
void setStatusbarText (const QString &text, bool important=false)
 
String getFileTypes_ ()
 
String getNameFromFileName_ (String filename)
 
QAction * insertMenuEntry_ (Position pid, const QString &name, const char *slot, const String &description="", QKeySequence accel=QKeySequence(), const QString &menu_hint="", UIOperationMode::OperationMode initial_mode=UIOperationMode::MODE_ALL)
 

Additional Inherited Members

- Public Types inherited from BALL::Embeddable
typedef std::vector< Embeddable * > EmbeddableVector
 
- Static Protected Member Functions inherited from BALL::Embeddable
static void registerInstance_ (const std::type_info &type, const Embeddable *instance)
 
static void unregisterInstance_ (const Embeddable *instance)
 
static Size countInstances_ (const std::type_info &type)
 
static EmbeddablegetInstance_ (const std::type_info &type, Position index)
 
static EmbeddablegetInstance_ (const std::type_info &type, const String &identifier)
 
- Protected Attributes inherited from BALL::VIEW::DatasetController
String type_
 
vector< Stringfile_formats_
 
DatasetControlcontrol_
 
vector< QAction * > actions_
 
HashSet< QAction * > actions_for_one_set_
 
HashMap< QTreeWidgetItem
*, Dataset * > 
item_to_dataset_
 
HashMap< Dataset
*, QTreeWidgetItem * > 
dataset_to_item_
 

Detailed Description

Controller base class for one type of Dataset

Definition at line 201 of file standardDatasets.h.

Constructor & Destructor Documentation

BALL::VIEW::DockResultController::DockResultController ( )
BALL::VIEW::DockResultController::DockResultController ( DockResultController dc)
virtual BALL::VIEW::DockResultController::~DockResultController ( )
virtual

Member Function Documentation

virtual QMenu* BALL::VIEW::DockResultController::buildContextMenu ( QTreeWidgetItem item)
virtual

Create a context menu for this data type. Initial support for deleting and saving entries is included. Overload this method for providing further entries.

Reimplemented from BALL::VIEW::DatasetController.

virtual bool BALL::VIEW::DockResultController::createMenuEntries ( )
virtual

Create menu entries for this data type. Initial support for open file menu entry is included. Overload this method for providing further entries.

Reimplemented from BALL::VIEW::DatasetController.

void BALL::VIEW::DockResultController::deleteDataset_ ( Dataset )
protectedvirtual

In the derived class: cast to concrete type and delete the data!

Reimplemented from BALL::VIEW::DatasetController.

DockResult* BALL::VIEW::DockResultController::getData ( Dataset set)
virtual Dataset* BALL::VIEW::DockResultController::open ( String  filetype,
String  filename 
)
virtual

Reimplemented from BALL::VIEW::DatasetController.

bool BALL::VIEW::DockResultController::saveDockTrajectory ( )
slot
void BALL::VIEW::DockResultController::showDockResult ( )
slot
virtual bool BALL::VIEW::DockResultController::write ( Dataset set,
String  filetype,
String  filename 
)
virtual

Reimplemented from BALL::VIEW::DatasetController.

Member Data Documentation

String BALL::VIEW::DockResultController::type
static

Definition at line 234 of file standardDatasets.h.