Logo Search packages:      
Sourcecode: scidavis version File versions  Download package

TableView Class Reference

#include <TableView.h>

Inheritance diagram for TableView:

MyWidget Table TableStatistics

List of all members.

Detailed Description

View class for Table.

Definition at line 87 of file TableView.h.

Public Types

enum  CaptionPolicy { Name = 0, Label = 1, Both = 2 }
 Possible window captions. More...
enum  Status { Hidden = -1, Normal = 0, Minimized = 1, Maximized = 2 }

Public Slots

void activateFormulaMode (bool on)
void deselectAll ()
void goToCell (int row, int col)
void goToNextColumn ()
void goToPreviousColumn ()
void handleHorizontalSectionResized (int logicalIndex, int oldSize, int newSize)
void rereadSectionSizes ()
void selectAll ()
void showControlDescriptionTab ()
void showControlFormulaTab ()
void showControlTypeTab ()
void toggleComments ()
void toggleControlTabBar ()


void closedWindow (MyWidget *)
 Emitted when the window was closed.
void hiddenWindow (MyWidget *)
 Emitted when the window was hidden.
void modifiedWindow (QWidget *)
void resizedWindow (QWidget *)
void showTitleBarMenu ()
 Emitted when the title bar recieves a QContextMenuEvent.
void statusChanged (MyWidget *)
 Emitted when the window status changed.

Public Member Functions

bool areCommentsShown () const
 Return whether comments are show currently.
void askOnCloseEvent (bool ask)
 Toggle the "ask on close" flag.
QString aspect ()
 Return the window status as a string.
virtual QString birthDate ()
 Return the creation date.
virtual CaptionPolicy captionPolicy ()
 Return the caption policy.
void closeEvent (QCloseEvent *)
 Close event handler.
int columnWidth (int col) const
virtual void exportPDF (const QString &)
Folderfolder ()
 Returns the pointer to the parent folder of the window.
bool formulaModeActive () const
bool isControlTabBarVisible ()
virtual QString name ()
 Return the window name.
void notifyChanges ()
 Notifies the main application that the window has been modified.
virtual void print ()
virtual void restore (const QStringList &)
 Not implemented yet.
virtual QString saveAsTemplate (const QString &)
virtual QString saveToString (const QString &)
virtual void setBirthDate (const QString &s)
 Set the creation date.
virtual void setCaptionPolicy (CaptionPolicy policy)
 Set the caption policy.
void setColumnWidth (int col, int width)
void setFolder (Folder *f)
 Initializes the pointer to the parent folder of the window.
virtual void setHidden ()
 Notifies that a window was hidden by a direct user action.
void setMaximized ()
void setMinimized ()
virtual void setName (const QString &s)
 Set the window name.
void setNormal ()
void setStatus (Status s)
 Set the window status flag (hidden, normal, minimized or maximized).
virtual void setWindowLabel (const QString &s)
 Set the window label.
void showComments (bool on=true)
 Show or hide (if on = false) the column comments.
Status status ()
 Return the window status flag (hidden, normal, minimized or maximized).
 TableView (future::Table *table)
virtual QString windowLabel ()
 Return the window label.
virtual ~TableView ()
selection related functions
int firstSelectedColumn (bool full=false)
 Return the index of the first selected column.
int firstSelectedRow (bool full=false)
 Return the index of the first selected row.
void getCurrentCell (int *row, int *col)
 Determine the current cell (-1 if no cell is designated as the current).
bool isCellSelected (int row, int col)
 Return whether a cell is selected.
bool isColumnSelected (int col, bool full=false)
 Returns true if column 'col' is selected; otherwise false.
bool isRowSelected (int row, bool full=false)
 Returns true if row 'row' is selected; otherwise false.
int lastSelectedColumn (bool full=false)
 Return the index of the last selected column.
int lastSelectedRow (bool full=false)
 Return the index of the last selected row.
int selectedColumnCount (SciDAVis::PlotDesignation pd)
 Return how many columns with the given plot designation are (at least partly) selected.
int selectedColumnCount (bool full=false)
 Return how many columns are selected.
QList< Column * > selectedColumns (bool full=false)
 Return all selected columns.
int selectedRowCount (bool full=false)
 Return how many rows are (at least partly) selected.
IntervalAttribute< bool > selectedRows (bool full=false)
 Get the complete set of selected rows.
void setCellSelected (int row, int col, bool select=true)
 Select/Deselect a cell.
void setCellsSelected (int first_row, int first_col, int last_row, int last_col, bool select=true)
 Select/Deselect a range of cells.

Protected Slots

void advanceCell ()
 Advance current cell after [Return] or [Enter] was pressed.
void applyDescription ()
void applyType ()
void currentColumnChanged (const QModelIndex &current, const QModelIndex &previous)
void handleAspectAboutToBeRemoved (const AbstractAspect *aspect, int index)
void handleAspectAdded (const AbstractAspect *aspect)
void handleAspectDescriptionChanged (const AbstractAspect *aspect)
void handleHeaderDataChanged (Qt::Orientation orientation, int first, int last)
void handleHorizontalHeaderDoubleClicked (int index)
void handleHorizontalSectionMoved (int index, int from, int to)
void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
void updateCaption ()
 Set caption according to current CaptionPolicy, name and label.
void updateFormatBox ()
void updateTypeInfo ()

Protected Member Functions

virtual void changeEvent (QEvent *event)
 Catches parent changes (in order to gain access to the title bar).
bool eventFilter (QObject *watched, QEvent *event)
 Filters other object's events (customizes title bar's context menu).
void init ()
void retranslateStrings ()
void setColumnForControlTabs (int col)

Protected Attributes

bool askOnClose
 Toggle on/off: Ask the user "delete, hide, or cancel?" on a close event.
QString birthdate
 The creation date.
CaptionPolicy caption_policy
 The caption policy.
QWidget * d_control_tabs
 Widget that contains the control tabs UI from ui.
 Pointer to the item delegate.
QToolButton * d_hide_button
 Button to toogle the visibility of d_tool_box.
QHBoxLayout * d_main_layout
 Pointer to the current underlying model.
 The table view (first part of the UI).
 Pointer to the parent folder of the window.
QWidget * titleBar
 Title bar of this MDI window if it currently belongs to a QWorkspace, NULL else.
Ui::ControlTabs ui
 UI with options tabs (description, format, formula etc.).
QString w_label
 The window label.
Status w_status
 The window status.

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

Generated by  Doxygen 1.6.0   Back to index