SciDAVis  1.D4
Classes | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | Friends
future::Table Class Reference

Aspect providing a spreadsheet table with column logic. More...

#include <future_Table.h>

Inheritance diagram for future::Table:
AbstractPart scripted AbstractAspect

List of all members.

Classes

class  Private

Public Slots

void addColumn ()
 Append one column.
void addColumns ()
 Append as many columns as are selected.
void addRows ()
 Append as many rows as are selected.
void clear ()
 Clear the whole table.
void clearMasks ()
 Clear all mask in the table.
void clearSelectedCells ()
void clearSelectedColumns ()
void copySelection ()
void cutSelection ()
void dimensionsDialog ()
void editDescriptionOfCurrentColumn ()
void editTypeAndFormatOfSelectedColumns ()
bool export_to_TeX (QString fileName, TeXTableSettings &tex_settings)
 Export to TeX.
void fillSelectedCellsWithRandomNumbers ()
void fillSelectedCellsWithRowNumbers ()
void goToCell ()
void insertEmptyColumns ()
 Insert columns depending on the selection.
void insertEmptyRows ()
 Insert rows depending on the selection.
void maskSelection ()
void moveColumn (int from, int to)
void normalizeColumns (QList< Column * > cols)
void normalizeSelectedColumns ()
void normalizeSelection ()
void pasteIntoSelection ()
void recalculateSelectedCells ()
void removeSelectedColumns ()
void removeSelectedRows ()
void selectAll ()
void setFormulaForSelection ()
void setSelectedColumnsAsNone ()
void setSelectedColumnsAsX ()
void setSelectedColumnsAsXError ()
void setSelectedColumnsAsY ()
void setSelectedColumnsAsYError ()
void setSelectedColumnsAsZ ()
void showTableViewColumnContextMenu (const QPoint &pos)
 Show a context menu for the selected columns.
void showTableViewContextMenu (const QPoint &pos)
 Show a context menu for the selected cells.
void showTableViewRowContextMenu (const QPoint &pos)
 Show a context menu for the selected rows.
void showTeXTableExportDialog ()
 Open export to TeX dialog.
void sortColumns (Column *leading, QList< Column * > cols, bool ascending)
 Sort the given list of column.
void sortSelectedColumns ()
void sortTable ()
 Open the sort dialog for all columns.
void statisticsOnSelectedColumns ()
void statisticsOnSelectedRows ()
void unmaskSelection ()
- Public Slots inherited from AbstractPart
virtual void copy ()
 Copy current selection.
virtual void cut ()
 Cut current selection.
virtual void paste ()
 Paste at the current location or into the current selection.
- Public Slots inherited from AbstractAspect
virtual void remove ()
 Remove me from my parent's list of children.
void setCaptionSpec (const QString &value)
 Set the specification string used for constructing the caption().
void setComment (const QString &value)
void setName (const QString &value)
QString uniqueNameFor (const QString &current_name) const
 Make the specified name unique among my children by incrementing a trailing number.

Signals

void columnsAboutToBeInserted (int before, QList< Column * > new_cols)
void columnsAboutToBeRemoved (int first, int count)
void columnsAboutToBeReplaced (int first, int count)
void columnsInserted (int first, int count)
void columnsRemoved (int first, int count)
void columnsReplaced (int first, int count)
void dataChanged (int top, int left, int bottom, int right)
void headerDataChanged (Qt::Orientation orientation, int first, int last)
void rowsAboutToBeInserted (int before, int count)
void rowsAboutToBeRemoved (int first, int count)
void rowsInserted (int first, int count)
void rowsRemoved (int first, int count)

Public Member Functions

void appendColumns (QList< Column * > new_cols)
 Append columns.
void appendRows (int count)
Columncolumn (int index) const
 Return column number 'index'.
Columncolumn (const QString &name, bool legacy_kludge=true) const
 Return the column determined by the given name.
int columnCount () const
 Return the total number of columns in the table.
int columnCount (SciDAVis::PlotDesignation pd) const
 Return the number of columns matching the given designation.
int columnIndex (const Column *col) const
int columnWidth (int col) const
int colX (int col)
 Determine the corresponding X column.
int colY (int col)
 Determine the corresponding Y column.
void copy (Table *other)
QMenu * createColumnMenu (QMenu *append_to=0)
 Create a menu with column related operations.
virtual QMenu * createContextMenu () const
 Return a new context menu.
QMenu * createRowMenu (QMenu *append_to=0)
 Create a menu with row related operations.
QMenu * createSelectionMenu (QMenu *append_to=0)
 Create a menu with selection related operations.
QMenu * createTableMenu (QMenu *append_to=0)
 Create a menu with table related operations.
virtual bool fillProjectMenu (QMenu *menu)
 Fill the part specific menu for the main window including setting the title.
virtual bool fillProjectToolBar (QToolBar *bar)
 Fill the part specific tool bar for the main window including setting the title.
QVariant headerData (int section, Qt::Orientation orientation, int role) const
virtual QIcon icon () const
 Return an icon to be used for decorating my views.
void insertColumns (int before, QList< Column * > new_cols)
 Insert columns.
void insertRows (int before, int count)
void removeColumn (Column *col)
void removeColumns (int first, int count)
void removeRows (int first, int count)
int rowCount () const
 Return the total number of rows in the table.
void setColumnCount (int new_size)
 Set the number of columns.
void setColumnWidth (int col, int width)
 This method should only be called by the view.
void setPlotMenu (QMenu *menu)
 Set a plot menu.
void setRowCount (int new_size)
 Set the number of rows of the table.
void setSelectionAs (SciDAVis::PlotDesignation pd)
void sortDialog (QList< Column * > cols)
 Open the sort dialog for the given columns.
 Table (AbstractScriptingEngine *engine, int rows, int columns, const QString &name)
QString text (int row, int col)
 Return the text displayed in the given cell.
virtual QWidget * view ()
 Construct a primary view on me.
virtual ~Table ()
serialize/deserialize
virtual void save (QXmlStreamWriter *) const
 Save as XML.
virtual bool load (XmlStreamReader *)
 Load from XML.
bool readColumnWidthElement (XmlStreamReader *reader)
- Public Member Functions inherited from AbstractPart
 AbstractPart (const QString &name)
 Constructor.
PartMdiViewmdiSubWindow ()
 Wrap the view() into a PartMdiView.
- Public Member Functions inherited from AbstractAspect
 AbstractAspect (const QString &name)
void addChild (AbstractAspect *child)
 Add the given Aspect to my list of children.
QString caption () const
QString captionSpec () const
 Return the specification string used for constructing the caption().
AbstractAspectchild (int index) const
 Get a child by its position in my list of children.
int childCount () const
 Return the number of child Aspects.
QString comment () const
QDateTime creationTime () const
QList< AbstractAspect * > descendantsThatInherit (const char *class_name)
 Get all descendents that inherit the given class.
future::Folderfolder ()
 Return the folder the Aspect is contained in or 0 if not.
void importV0x0001XXCreationTime (const QString &str)
int index () const
 Return my position in my parent's list of children.
int indexOfChild (const AbstractAspect *child) const
 Return the position of child in my list of children.
void insertChild (AbstractAspect *child, int index)
 Insert the given Aspect at a specific position in my list of children.
bool isDescendantOf (AbstractAspect *other)
 Return whether the there is a path upwards to the given aspect.
void moveChild (int from, int to)
 Change the positon of a child in my list of children.
QString name () const
AbstractAspectparentAspect () const
 Return my parent Aspect or 0 if I currently don't have one.
virtual QString path () const
 Return the path that leads from the top-most Aspect (usually a Project) to me.
virtual const Projectproject () const
 Return the Project this Aspect belongs to, or 0 if it is currently not part of one.
virtual Projectproject ()
 Return the Project this Aspect belongs to, or 0 if it is currently not part of one.
virtual void removeAllChildAspects ()
 Remove all child aspects.
void removeChild (AbstractAspect *child, bool detach=false)
 Remove the given Aspect from my list of children.
void removeChild (int index)
 Remove the Aspect at the given index from my list of children.
void reparentChild (AbstractAspect *new_parent, AbstractAspect *child, int d_new_index)
 Move a child to another aspect and transfer ownership.
void reparentChild (AbstractAspect *new_parent, AbstractAspect *child)
 Move a child to another aspect and transfer ownership.
virtual ~AbstractAspect ()
virtual QUndoStack * undoStack () const
 Return the undo stack of the Project, or 0 if this Aspect is not part of a Project.
void exec (QUndoCommand *command)
 Execute the given command, pushing it on the undoStack() if available.
void beginMacro (const QString &text)
 Begin an undo stack macro (series of commands)
void endMacro ()
 End the undo stack macro.
- Public Member Functions inherited from scripted
 scripted (ScriptingEnv *env)
void scriptingChangeEvent (ScriptingChangeEvent *)
 ~scripted ()

Static Public Member Functions

static ActionManageractionManager ()
static int defaultColumnWidth ()
static bool defaultCommentVisibility ()
 Return the default for comment visibility for table views.
static void initActionManager ()
static void setDefaultColumnWidth (int width)
static void setDefaultCommentVisibility (bool visible)
 Set default for comment visibility for table views.

Protected Member Functions

virtual void completeAspectInsertion (AbstractAspect *aspect, int index)
 Called after a new child has been inserted or added.
virtual void prepareAspectRemoval (AbstractAspect *aspect)
 Called before a child is removed.

Private Slots

void adjustActionNames ()
Column event handlers
void handleDescriptionChange (const AbstractAspect *aspect)
void handleModeChange (const AbstractColumn *col)
void handlePlotDesignationChange (const AbstractColumn *col)
void handleDataChange (const AbstractColumn *col)
void handleRowsAboutToBeInserted (const AbstractColumn *col, int before, int count)
void handleRowsInserted (const AbstractColumn *col, int before, int count)
void handleRowsAboutToBeRemoved (const AbstractColumn *col, int first, int count)
void handleRowsRemoved (const AbstractColumn *col, int first, int count)

Private Member Functions

void addActionsToView ()
void connectActions ()
void connectColumn (const Column *col)
 Internal function to connect all column signals.
void createActions ()
void disconnectColumn (const Column *col)
 Internal function to disconnect a column.
 Table ()
 Private ctor for initActionManager() only.

Private Attributes

QMenu * d_plot_menu
Privated_table_private
TableViewd_view
selection related actions
QAction * action_cut_selection
QAction * action_copy_selection
QAction * action_paste_into_selection
QAction * action_mask_selection
QAction * action_unmask_selection
QAction * action_set_formula
QAction * action_clear_selection
QAction * action_recalculate
QAction * action_fill_row_numbers
QAction * action_fill_random
QAction * action_normalize_selection
table related actions
QAction * action_toggle_comments
QAction * action_toggle_tabbar
QAction * action_select_all
QAction * action_add_column
QAction * action_clear_table
QAction * action_export_to_TeX
QAction * action_clear_masks
QAction * action_sort_table
QAction * action_go_to_cell
QAction * action_dimensions_dialog
QAction * action_formula_mode
column related actions
QAction * action_insert_columns
QAction * action_remove_columns
QAction * action_clear_columns
QAction * action_add_columns
QAction * action_set_as_x
QAction * action_set_as_y
QAction * action_set_as_z
QAction * action_set_as_xerr
QAction * action_set_as_yerr
QAction * action_set_as_none
QAction * action_normalize_columns
QAction * action_sort_columns
QAction * action_statistics_columns
QAction * action_type_format
QAction * action_edit_description
row related actions
QAction * action_insert_rows
QAction * action_remove_rows
QAction * action_clear_rows
QAction * action_add_rows
QAction * action_statistics_rows

Static Private Attributes

static ActionManageraction_manager = 0
static bool d_default_comment_visibility = false
static int default_column_width = 120

Friends

class Private

Additional Inherited Members

- Protected Attributes inherited from scripted
ScriptingEnvscriptEnv

Detailed Description

Aspect providing a spreadsheet table with column logic.

This class (incl. Table::Private and its commands) is one aspect in the projet hierarchy that represents a spreadsheet table with column logic. Table provides the public API while Table::Private completely encapsulates the data. The table commands (derived from QUndoCommand) encapsulate all write operations which can be undone and redone, if the table has an undo stack associated with it (usually by the project root aspect).

The underlying private data object is not visible to any classes other then those meantioned above with one exeption: Pointers to columns can be passed around an manipulated directly. The owner Table (parent aspect of the Column objects) will be notified by emission of signals and react accordingly. All public methods of Table and Column are undo aware.

Table also manages its main view of class TableView. Table and TableView can call each others API in both directions. User interaction ist party handled in TableView and translated into Table API calls (e.g., when a user edits a cell this will be handled by the delegate of TableView and Table will not know whether a script or a user changed the data.). Other parts of the user interaction are handled by actions provides by Table, e.g., via a context menu.

Selections are handled by TableView and can be queried by Table. All selection based functions do nothing unless the view exists. The view is created by the first call to view();


Constructor & Destructor Documentation

Table::Table ( AbstractScriptingEngine *  engine,
int  rows,
int  columns,
const QString &  name 
)
Table::~Table ( )
virtual

References d_table_private, and d_view.

Table::Table ( )
private

Private ctor for initActionManager() only.

References createActions(), d_table_private, and d_view.

Referenced by initActionManager().


Member Function Documentation

ActionManager * Table::actionManager ( )
static

References action_manager, and initActionManager().

Referenced by createActions().

void Table::addActionsToView ( )
private
void Table::addColumn ( )
slot
void Table::addColumns ( )
slot
void Table::addRows ( )
slot
void Table::adjustActionNames ( )
privateslot
void future::Table::appendColumns ( QList< Column * >  new_cols)
inline
void future::Table::appendRows ( int  count)
inline

References insertRows(), and rowCount().

Referenced by pasteIntoSelection().

void Table::clear ( )
slot
void Table::clearMasks ( )
slot
void Table::clearSelectedCells ( )
slot
void Table::clearSelectedColumns ( )
slot
Column * Table::column ( int  index) const
Column * Table::column ( const QString &  name,
bool  legacy_kludge = true 
) const

Return the column determined by the given name.

This method should not be used unless absolutely necessary. Columns should be addressed by their index. This method is mainly meant to be used in scripts.

References future::Table::Private::column(), columnCount(), d_table_private, and AbstractAspect::name().

int Table::columnCount ( ) const
int Table::columnCount ( SciDAVis::PlotDesignation  pd) const

Return the number of columns matching the given designation.

References column(), and columnCount().

int Table::columnIndex ( const Column col) const
void future::Table::columnsAboutToBeInserted ( int  before,
QList< Column * >  new_cols 
)
signal
void future::Table::columnsAboutToBeRemoved ( int  first,
int  count 
)
signal
void future::Table::columnsAboutToBeReplaced ( int  first,
int  count 
)
signal
void future::Table::columnsInserted ( int  first,
int  count 
)
signal
void future::Table::columnsRemoved ( int  first,
int  count 
)
signal
void future::Table::columnsReplaced ( int  first,
int  count 
)
signal
int Table::columnWidth ( int  col) const
int Table::colX ( int  col)

Determine the corresponding X column.

References column(), columnCount(), and SciDAVis::X.

Referenced by Table::colX().

int Table::colY ( int  col)

Determine the corresponding Y column.

References column(), columnCount(), SciDAVis::xErr, SciDAVis::Y, and SciDAVis::yErr.

Referenced by Table::colY().

void Table::completeAspectInsertion ( AbstractAspect aspect,
int  index 
)
protectedvirtual

Called after a new child has been inserted or added.

Unlike the aspectAdded() signals, this method does not get called inside undo/redo actions; allowing subclasses to execute undo commands of their own.

Reimplemented from AbstractAspect.

References column(), d_table_private, and AbstractAspect::exec().

void Table::connectActions ( )
private

References action_add_column, action_add_columns, action_add_rows, action_clear_columns, action_clear_masks, action_clear_rows, action_clear_selection, action_clear_table, action_copy_selection, action_cut_selection, action_dimensions_dialog, action_edit_description, action_export_to_TeX, action_fill_random, action_fill_row_numbers, action_go_to_cell, action_insert_columns, action_insert_rows, action_mask_selection, action_normalize_columns, action_normalize_selection, action_paste_into_selection, action_recalculate, action_remove_columns, action_remove_rows, action_select_all, action_set_as_none, action_set_as_x, action_set_as_xerr, action_set_as_y, action_set_as_yerr, action_set_as_z, action_set_formula, action_sort_columns, action_sort_table, action_statistics_columns, action_statistics_rows, action_type_format, action_unmask_selection, addColumn(), addColumns(), addRows(), clear(), clearMasks(), clearSelectedCells(), clearSelectedColumns(), copySelection(), cutSelection(), dimensionsDialog(), editDescriptionOfCurrentColumn(), editTypeAndFormatOfSelectedColumns(), fillSelectedCellsWithRandomNumbers(), fillSelectedCellsWithRowNumbers(), goToCell(), insertEmptyColumns(), insertEmptyRows(), maskSelection(), normalizeSelectedColumns(), normalizeSelection(), pasteIntoSelection(), recalculateSelectedCells(), removeSelectedColumns(), removeSelectedRows(), selectAll(), setFormulaForSelection(), setSelectedColumnsAsNone(), setSelectedColumnsAsX(), setSelectedColumnsAsXError(), setSelectedColumnsAsY(), setSelectedColumnsAsYError(), setSelectedColumnsAsZ(), showTeXTableExportDialog(), sortSelectedColumns(), sortTable(), statisticsOnSelectedColumns(), statisticsOnSelectedRows(), and unmaskSelection().

Referenced by Table().

void Table::connectColumn ( const Column col)
private
void Table::copy ( Table other)
void Table::copySelection ( )
slot
void Table::createActions ( )
private
QMenu * Table::createColumnMenu ( QMenu *  append_to = 0)
QMenu * Table::createContextMenu ( ) const
virtual

Return a new context menu.

The caller takes ownership of the menu.

Reimplemented from AbstractPart.

QMenu * Table::createRowMenu ( QMenu *  append_to = 0)

Create a menu with row related operations.

Parameters:
append_toif a pointer to a QMenu is passed to the function, the actions are appended to it instead of the creation of a new menu.

References action_add_rows, action_clear_rows, action_fill_random, action_fill_row_numbers, action_insert_rows, action_remove_rows, and action_statistics_rows.

Referenced by showTableViewRowContextMenu().

QMenu * Table::createSelectionMenu ( QMenu *  append_to = 0)

Create a menu with selection related operations.

Parameters:
append_toif a pointer to a QMenu is passed to the function, the actions are appended to it instead of the creation of a new menu.

References action_clear_selection, action_copy_selection, action_cut_selection, action_fill_random, action_fill_row_numbers, action_mask_selection, action_normalize_selection, action_paste_into_selection, action_recalculate, action_set_formula, and action_unmask_selection.

Referenced by showTableViewContextMenu().

QMenu * Table::createTableMenu ( QMenu *  append_to = 0)

Create a menu with table related operations.

Parameters:
append_toif a pointer to a QMenu is passed to the function, the actions are appended to it instead of the creation of a new menu.

References action_add_column, action_clear_masks, action_clear_table, action_export_to_TeX, action_formula_mode, action_go_to_cell, action_select_all, action_sort_table, action_toggle_comments, action_toggle_tabbar, and adjustActionNames().

Referenced by showTableViewContextMenu().

void Table::cutSelection ( )
slot
void future::Table::dataChanged ( int  top,
int  left,
int  bottom,
int  right 
)
signal
static int future::Table::defaultColumnWidth ( )
inlinestatic
static bool future::Table::defaultCommentVisibility ( )
inlinestatic

Return the default for comment visibility for table views.

References d_default_comment_visibility.

void Table::dimensionsDialog ( )
slot
void Table::disconnectColumn ( const Column col)
private

Internal function to disconnect a column.

void Table::editDescriptionOfCurrentColumn ( )
slot
void Table::editTypeAndFormatOfSelectedColumns ( )
slot

References d_view, and TableView::showControlTypeTab().

Referenced by connectActions().

bool Table::export_to_TeX ( QString  fileName,
TeXTableSettings tex_settings 
)
slot
bool Table::fillProjectMenu ( QMenu *  menu)
virtual
bool Table::fillProjectToolBar ( QToolBar *  bar)
virtual

Fill the part specific tool bar for the main window including setting the title.

Returns:
true on success, otherwise false (e.g. part has no actions to be shown in a toolbar).

Reimplemented from AbstractPart.

References action_add_column, action_dimensions_dialog, action_statistics_columns, and action_statistics_rows.

void Table::fillSelectedCellsWithRandomNumbers ( )
slot
void Table::fillSelectedCellsWithRowNumbers ( )
slot
void Table::goToCell ( )
slot
void Table::handleDataChange ( const AbstractColumn col)
privateslot
void Table::handleDescriptionChange ( const AbstractAspect aspect)
privateslot
void Table::handleModeChange ( const AbstractColumn col)
privateslot
void Table::handlePlotDesignationChange ( const AbstractColumn col)
privateslot
void Table::handleRowsAboutToBeInserted ( const AbstractColumn col,
int  before,
int  count 
)
privateslot
void Table::handleRowsAboutToBeRemoved ( const AbstractColumn col,
int  first,
int  count 
)
privateslot

Referenced by connectColumn().

void Table::handleRowsInserted ( const AbstractColumn col,
int  before,
int  count 
)
privateslot
void Table::handleRowsRemoved ( const AbstractColumn col,
int  first,
int  count 
)
privateslot
QVariant Table::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
void future::Table::headerDataChanged ( Qt::Orientation  orientation,
int  first,
int  last 
)
signal
QIcon Table::icon ( ) const
virtual

Return an icon to be used for decorating my views.

Reimplemented from AbstractAspect.

void Table::initActionManager ( )
static

References action_manager, and Table().

Referenced by actionManager().

void Table::insertColumns ( int  before,
QList< Column * >  new_cols 
)
void Table::insertEmptyColumns ( )
slot
void Table::insertEmptyRows ( )
slot
void Table::insertRows ( int  before,
int  count 
)
bool Table::load ( XmlStreamReader reader)
virtual
void Table::maskSelection ( )
slot
void Table::moveColumn ( int  from,
int  to 
)
slot
void Table::normalizeColumns ( QList< Column * >  cols)
slot
void Table::normalizeSelectedColumns ( )
slot
void Table::normalizeSelection ( )
slot
void Table::pasteIntoSelection ( )
slot
void Table::prepareAspectRemoval ( AbstractAspect aspect)
protectedvirtual

Called before a child is removed.

Unlike the aspectAboutToBeRemoved() signals, this method does not get called inside undo/redo actions; allowing subclasses to execute undo commands of their own.

Reimplemented from AbstractAspect.

References column(), columnIndex(), d_table_private, and AbstractAspect::exec().

bool Table::readColumnWidthElement ( XmlStreamReader reader)
void Table::recalculateSelectedCells ( )
slot
void Table::removeColumn ( Column col)

References columnIndex(), and removeColumns().

Referenced by removeSelectedColumns().

void Table::removeColumns ( int  first,
int  count 
)
void Table::removeRows ( int  first,
int  count 
)
void Table::removeSelectedColumns ( )
slot
void Table::removeSelectedRows ( )
slot
int Table::rowCount ( ) const
void future::Table::rowsAboutToBeInserted ( int  before,
int  count 
)
signal

Referenced by connectColumn().

void future::Table::rowsAboutToBeRemoved ( int  first,
int  count 
)
signal

Referenced by connectColumn().

void future::Table::rowsInserted ( int  first,
int  count 
)
signal

Referenced by connectColumn().

void future::Table::rowsRemoved ( int  first,
int  count 
)
signal

Referenced by connectColumn().

void Table::save ( QXmlStreamWriter *  writer) const
virtual
void Table::selectAll ( )
slot

References d_view, and TableView::selectAll().

Referenced by connectActions().

void Table::setColumnCount ( int  new_size)
void Table::setColumnWidth ( int  col,
int  width 
)

This method should only be called by the view.

This method does not change the view, it only changes the values that are saved when the table is saved. The view has to take care of reading and applying these values

References d_table_private, and future::Table::Private::setColumnWidth().

Referenced by copy(), TableView::handleHorizontalSectionResized(), and readColumnWidthElement().

static void future::Table::setDefaultColumnWidth ( int  width)
inlinestatic

References default_column_width.

static void future::Table::setDefaultCommentVisibility ( bool  visible)
inlinestatic

Set default for comment visibility for table views.

References d_default_comment_visibility.

void Table::setFormulaForSelection ( )
slot
void Table::setPlotMenu ( QMenu *  menu)

Set a plot menu.

The table takes ownership of the menu.

References d_plot_menu.

Referenced by ApplicationWindow::initTable().

void Table::setRowCount ( int  new_size)
void Table::setSelectedColumnsAsNone ( )
slot
void Table::setSelectedColumnsAsX ( )
slot

References setSelectionAs(), and SciDAVis::X.

Referenced by connectActions().

void Table::setSelectedColumnsAsXError ( )
slot

References setSelectionAs(), and SciDAVis::xErr.

Referenced by connectActions().

void Table::setSelectedColumnsAsY ( )
slot

References setSelectionAs(), and SciDAVis::Y.

Referenced by connectActions().

void Table::setSelectedColumnsAsYError ( )
slot

References setSelectionAs(), and SciDAVis::yErr.

Referenced by connectActions().

void Table::setSelectedColumnsAsZ ( )
slot

References setSelectionAs(), and SciDAVis::Z.

Referenced by connectActions().

void Table::setSelectionAs ( SciDAVis::PlotDesignation  pd)
void Table::showTableViewColumnContextMenu ( const QPoint &  pos)
slot

Show a context menu for the selected columns.

Parameters:
posglobal position of the event

References createColumnMenu(), d_plot_menu, and d_view.

Referenced by TableView::eventFilter().

void Table::showTableViewContextMenu ( const QPoint &  pos)
slot

Show a context menu for the selected cells.

Parameters:
posglobal position of the event

References createSelectionMenu(), createTableMenu(), d_plot_menu, and d_view.

Referenced by TableView::eventFilter().

void Table::showTableViewRowContextMenu ( const QPoint &  pos)
slot

Show a context menu for the selected rows.

Parameters:
posglobal position of the event

References createRowMenu(), and d_view.

Referenced by TableView::eventFilter().

void Table::showTeXTableExportDialog ( )
slot

Open export to TeX dialog.

References export_to_TeX(), AbstractAspect::name(), and TeXTableExportDialog::tex_TableSettings().

Referenced by connectActions().

void Table::sortColumns ( Column leading,
QList< Column * >  cols,
bool  ascending 
)
slot
void Table::sortDialog ( QList< Column * >  cols)

Open the sort dialog for the given columns.

References future::SortDialog::setColumnsList(), and sortColumns().

Referenced by sortSelectedColumns(), and sortTable().

void Table::sortSelectedColumns ( )
slot
void Table::sortTable ( )
slot

Open the sort dialog for all columns.

References column(), columnCount(), and sortDialog().

Referenced by connectActions().

void Table::statisticsOnSelectedColumns ( )
slot

Referenced by connectActions().

void Table::statisticsOnSelectedRows ( )
slot

Referenced by connectActions().

QString Table::text ( int  row,
int  col 
)
void Table::unmaskSelection ( )
slot
QWidget * Table::view ( )
virtual

Construct a primary view on me.

This method may be called multiple times during the life time of an Aspect, or it might not get called at all. Aspects must not depend on the existence of a view for their operation.

Implements AbstractPart.

References addActionsToView(), d_default_comment_visibility, d_view, and TableView::showComments().

Referenced by ApplicationWindow::handleAspectAboutToBeRemoved(), ApplicationWindow::handleAspectAdded(), and ApplicationWindow::removeDependentTableStatistics().


Friends And Related Function Documentation

friend class Private
friend

Reimplemented from AbstractAspect.

Referenced by Table().


Member Data Documentation

QAction* future::Table::action_add_column
private
QAction* future::Table::action_add_columns
private
QAction* future::Table::action_add_rows
private
QAction* future::Table::action_clear_columns
private
QAction* future::Table::action_clear_masks
private
QAction* future::Table::action_clear_rows
private
QAction* future::Table::action_clear_selection
private
QAction* future::Table::action_clear_table
private
QAction* future::Table::action_copy_selection
private
QAction* future::Table::action_cut_selection
private
QAction* future::Table::action_dimensions_dialog
private
QAction* future::Table::action_edit_description
private
QAction* future::Table::action_export_to_TeX
private
QAction* future::Table::action_fill_random
private
QAction* future::Table::action_fill_row_numbers
private
QAction* future::Table::action_formula_mode
private
QAction* future::Table::action_go_to_cell
private
QAction* future::Table::action_insert_columns
private
QAction* future::Table::action_insert_rows
private
ActionManager * Table::action_manager = 0
staticprivate

Referenced by actionManager(), and initActionManager().

QAction* future::Table::action_mask_selection
private
QAction* future::Table::action_normalize_columns
private
QAction* future::Table::action_normalize_selection
private
QAction* future::Table::action_paste_into_selection
private
QAction* future::Table::action_recalculate
private
QAction* future::Table::action_remove_columns
private
QAction* future::Table::action_remove_rows
private
QAction* future::Table::action_select_all
private
QAction* future::Table::action_set_as_none
private
QAction* future::Table::action_set_as_x
private
QAction* future::Table::action_set_as_xerr
private
QAction* future::Table::action_set_as_y
private
QAction* future::Table::action_set_as_yerr
private
QAction* future::Table::action_set_as_z
private
QAction* future::Table::action_set_formula
private
QAction* future::Table::action_sort_columns
private
QAction* future::Table::action_sort_table
private
QAction* future::Table::action_statistics_columns
private
QAction* future::Table::action_statistics_rows
private
QAction* future::Table::action_toggle_comments
private
QAction* future::Table::action_toggle_tabbar
private
QAction* future::Table::action_type_format
private
QAction* future::Table::action_unmask_selection
private
bool Table::d_default_comment_visibility = false
staticprivate
QMenu* future::Table::d_plot_menu
private
Private* future::Table::d_table_private
private
TableView* future::Table::d_view
private
int Table::default_column_width = 120
staticprivate

The documentation for this class was generated from the following files: