scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

future_Table.h
Go to the documentation of this file.
1 
13 
31 #ifndef FUTURE_TABLE_H
32 #define FUTURE_TABLE_H
33 
34 #include "core/AbstractPart.h"
35 #ifndef LEGACY_CODE_0_2_x
36 #include "AbstractScriptingEngine.h"
37 #endif
38 #include "globals.h"
39 #include <QList>
40 #include <QStringList>
41 #include <QPointer>
42 
43 class TableView;
44 class QUndoStack;
45 class QMenu;
46 class Column;
47 class QPoint;
48 class QAction;
49 class AbstractColumn;
50 class ActionManager;
51 class TableStatistics;
52 class TeXTableSettings;
53 class Table;
54 
55 namespace future
56 {
57 
81 #ifndef LEGACY_CODE_0_2_x
82 class Table : public AbstractPart, public scripted
83 #else
84 class Table : public AbstractPart
85 #endif
86 {
87  Q_OBJECT
88 
89 public:
90  class Private; // This could also be private, but then all commands need to be friend classes
91  friend class Private;
92 
93 #ifndef LEGACY_CODE_0_2_x
94  Table(AbstractScriptingEngine *engine, int rows, int columns, const QString &name);
95 #else
96  Table(int rows, int columns, const QString &name);
97  friend class ::TableStatistics;
98 #endif
99  virtual ~Table();
100 
102  void setView(TableView * view);
103 
105  virtual QIcon icon() const;
107 
110  virtual QMenu *createContextMenu() const;
112 
116  virtual QWidget *view();
117 
119 
124  void insertColumns(int before, QList<Column *> new_cols);
126  /*
127  * Convenience function, same as:
128  * <code>
129  * insertColumns(columnCount(), new_cols);
130  * </code>
131  */
132  void appendColumns(QList<Column*> new_cols) { insertColumns(columnCount(), new_cols); }
133  void removeColumns(int first, int count);
134  void removeColumn(Column * col);
135  void removeRows(int first, int count);
136  void insertRows(int before, int count);
137  void appendRows(int count) { insertRows(rowCount(), count); }
139  void setRowCount(int new_size);
141  int columnCount() const;
143  int rowCount() const;
147  Column* column(int index) const;
149 
154  Column* column(const QString & name, bool legacy_kludge=true) const;
155  int columnIndex(const Column * col) const;
157  void setColumnCount(int new_size);
158  QVariant headerData(int section, Qt::Orientation orientation,int role) const;
159 
161 
166  QMenu * createSelectionMenu(QMenu * append_to = 0);
168 
173  QMenu * createColumnMenu(QMenu * append_to = 0);
175 
180  QMenu * createRowMenu(QMenu * append_to = 0);
182 
187  QMenu * createTableMenu(QMenu * append_to = 0);
189 
192  virtual bool fillProjectMenu(QMenu * menu);
194 
197  virtual bool fillProjectToolBar(QToolBar * bar);
198 
200  int colX(int col);
202  int colY(int col);
204 
207  void setPlotMenu(QMenu * menu);
209  void sortDialog(QList<Column*> cols);
211  static void setDefaultCommentVisibility(bool visible) { d_default_comment_visibility = visible; }
215  QString text(int row, int col);
217  using AbstractPart::copy;
218  void copy(Table * other);
219 
221 
222  virtual void save(QXmlStreamWriter *) const;
225  virtual bool load(XmlStreamReader *);
228 
229 public:
230  static ActionManager * actionManager();
231  static void initActionManager();
232  static int defaultColumnWidth() { return default_column_width; }
233  static void setDefaultColumnWidth(int width) { default_column_width = width; }
234 private:
236  // TODO: the default sizes are to be controlled by the global Table settings
239  Table();
240 
241 public slots:
243  void clear();
244 #ifndef LEGACY_CODE_0_2_x
245  void clearMasks();
247 #endif
248 
250  void addColumn();
252  void addColumns();
254  void addRows();
255  void cutSelection();
256  void copySelection();
257  void pasteIntoSelection();
258  void clearSelectedCells();
259  void goToCell();
260 #ifndef LEGACY_CODE_0_2_x
261  void maskSelection();
262  void unmaskSelection();
263 #endif
264  void setFormulaForSelection();
269  void sortTable();
271  void insertEmptyColumns();
272  void removeSelectedColumns();
273  void clearSelectedColumns();
274  void setSelectedColumnsAsX();
275  void setSelectedColumnsAsY();
276  void setSelectedColumnsAsZ();
280  void normalizeColumns(QList< Column* > cols);
282  void normalizeSelection();
283  void sortSelectedColumns();
287  void insertEmptyRows();
288  void removeSelectedRows();
289  void selectAll();
290  void dimensionsDialog();
293  void moveColumn(int from, int to);
295  /*
296  * If 'leading' is a null pointer, each column is sorted separately.
297  */
298  void sortColumns(Column * leading, QList<Column*> cols, bool ascending);
300 
303  void showTableViewContextMenu(const QPoint& pos);
305 
308  void showTableViewColumnContextMenu(const QPoint& pos);
310 
313  void showTableViewRowContextMenu(const QPoint& pos);
314 
317 
319  /*
320  * \param file name
321  * \param TeX tale settings
322  */
323  bool export_to_TeX( QString fileName, TeXTableSettings& tex_settings );
324 
325 
326 
327 protected:
329 
333  virtual void completeAspectInsertion(AbstractAspect * aspect, int index);
335 
339  virtual void prepareAspectRemoval(AbstractAspect * aspect);
340 
341 public:
343 
346  void setColumnWidth(int col, int width);
347  int columnWidth(int col) const;
348 
349 private:
351  void connectColumn(const Column* col);
353  void disconnectColumn(const Column* col);
354 
355 private slots:
357 
358  void handleDescriptionChange(const AbstractAspect * aspect);
359  void handleModeChange(const AbstractColumn * col);
361  void handleDataChange(const AbstractColumn * col);
362  void handleRowsAboutToBeInserted(const AbstractColumn * col, int before, int count);
363  void handleRowsInserted(const AbstractColumn * col, int before, int count);
364  void handleRowsAboutToBeRemoved(const AbstractColumn * col, int first, int count);
365  void handleRowsRemoved(const AbstractColumn * col, int first, int count);
367  void adjustActionNames();
368 
369 signals:
370  void columnsAboutToBeInserted(int before, QList<Column*> new_cols);
371  void columnsInserted(int first, int count);
372  void columnsAboutToBeReplaced(int first, int count);
373  void columnsReplaced(int first, int count);
374  void columnsAboutToBeRemoved(int first, int count);
375  void columnsRemoved(int first, int count);
376  void rowsAboutToBeInserted(int before, int count);
377  void rowsInserted(int first, int count);
378  void rowsAboutToBeRemoved(int first, int count);
379  void rowsRemoved(int first, int count);
380  void dataChanged(int top, int left, int bottom, int right);
381  void headerDataChanged(Qt::Orientation orientation, int first, int last);
382 #ifdef LEGACY_CODE_0_2_x
383  void recalculate();
384  void requestRowStatistics();
385  void requestColumnStatistics();
386 #endif
387 
388 private:
389  void createActions();
390  void connectActions();
391  void addActionsToView();
393  QMenu * d_plot_menu;
395 
397 
401 #ifndef LEGACY_CODE_0_2_x
404 #endif
412 
416  QAction * action_select_all;
417  QAction * action_add_column;
420 #ifndef LEGACY_CODE_0_2_x
422 #endif
423  QAction * action_sort_table;
424  QAction * action_go_to_cell;
428 
434  QAction * action_set_as_x;
435  QAction * action_set_as_y;
436  QAction * action_set_as_z;
446 
450  QAction * action_clear_rows;
451  QAction * action_add_rows;
454 
455  QPointer<TableView> d_view;
456 
484 public:
485  class Private
486  {
487  public:
488  Private(Table& owner) : d_owner(owner), d_column_count(0), d_row_count(0) {}
490 
495  void replaceColumns(int first, QList<Column*> new_cols);
497 
503  void insertColumns(int before, QList<Column*> cols);
505 
511  void removeColumns(int first, int count);
513 
516  void appendColumns(QList<Column*> cols);
518  void moveColumn(int from, int to);
520  int columnCount() const { return d_column_count; }
522  int rowCount() const { return d_row_count; }
524  void setRowCount(int count);
526  QString columnHeader(int col);
530  Column* column(int index) const;
532 
535  int columnIndex(const Column * col) const
536  {
537  for(int i=0; i<d_columns.size(); i++)
538  if(d_columns.at(i) == col) return i;
539  return -1;
540  }
541  QString name() const { return d_owner.name(); }
542  QVariant headerData(int section, Qt::Orientation orientation,int role) const;
543 
545 
550  void updateVerticalHeader(int start_row);
552 
559  void updateHorizontalHeader(int start_col, int end_col);
560  void setColumnWidth(int col, int width) { d_column_widths[col] = width; }
561  int columnWidth(int col) const { return d_column_widths.at(col); }
562 
563  private:
575  QList<Column *> d_columns;
577 
580  void composeColumnHeader(int col, const QString& label);
582  QList<int> d_column_widths;
583  };
584 
585 private:
587 };
588 
589 
590 } // namespace
591 
592 #endif
593 
future::Table::setDefaultCommentVisibility
static void setDefaultCommentVisibility(bool visible)
Set default for comment visibility for table views.
Definition: future_Table.h:211
future::Table::action_fill_random
QAction * action_fill_random
Definition: future_Table.h:409
AbstractPart.h
future::Table::Private::columnWidth
int columnWidth(int col) const
Definition: future_Table.h:561
future::Table::Private::setRowCount
void setRowCount(int count)
Set the number of rows of the table.
Definition: future_Table.cpp:2551
future::Table::copySelection
void copySelection()
Definition: future_Table.cpp:354
future::Table::initActionManager
static void initActionManager()
Definition: future_Table.cpp:2441
future::Table::save
virtual void save(QXmlStreamWriter *) const
Save as XML.
Definition: future_Table.cpp:2288
future::Table::Private::headerData
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: future_Table.cpp:2674
future
Definition: AbstractAspect.h:43
future::Table::action_fill_row_numbers
QAction * action_fill_row_numbers
Definition: future_Table.h:408
future::Table::addActionsToView
void addActionsToView()
Definition: future_Table.cpp:1373
future::Table::action_clear_selection
QAction * action_clear_selection
Definition: future_Table.h:406
future::Table::columnWidth
int columnWidth(int col) const
Definition: future_Table.cpp:2424
future::Table::insertEmptyColumns
void insertEmptyColumns()
Insert columns depending on the selection.
Definition: future_Table.cpp:693
future::Table::Private::Private
Private(Table &owner)
Definition: future_Table.h:488
future::Table::moveColumn
void moveColumn(int from, int to)
Definition: future_Table.cpp:1811
future::Table::Table
Table()
Private ctor for initActionManager() only.
Definition: future_Table.cpp:115
future::Table::adjustActionNames
void adjustActionNames()
Definition: future_Table.cpp:2377
future::Table::action_set_formula
QAction * action_set_formula
Definition: future_Table.h:405
future::Table::normalizeSelection
void normalizeSelection()
Definition: future_Table.cpp:838
future::Table::clearSelectedCells
void clearSelectedCells()
Definition: future_Table.cpp:933
future::Table::clearSelectedColumns
void clearSelectedColumns()
Definition: future_Table.cpp:740
future::Table::fillSelectedCellsWithRowNumbers
void fillSelectedCellsWithRowNumbers()
Definition: future_Table.cpp:580
future::Table::Private::d_column_count
int d_column_count
The number of columns.
Definition: future_Table.h:567
future::Table::action_clear_rows
QAction * action_clear_rows
Definition: future_Table.h:450
future::Table::setRowCount
void setRowCount(int new_size)
Set the number of rows of the table.
Definition: future_Table.cpp:228
future::Table::Private::removeColumns
void removeColumns(int first, int count)
Remove Columns.
Definition: future_Table.cpp:2511
future::Table::action_insert_columns
QAction * action_insert_columns
Definition: future_Table.h:430
future::Table::Private::rowCount
int rowCount() const
Return the number of rows in the table.
Definition: future_Table.h:522
future::Table::Private::appendColumns
void appendColumns(QList< Column * > cols)
Append columns to the table.
Definition: future_Table.cpp:2532
future::Table::appendRows
void appendRows(int count)
Definition: future_Table.h:137
future::Table::editDescriptionOfCurrentColumn
void editDescriptionOfCurrentColumn()
Definition: future_Table.cpp:970
future::Table::setSelectedColumnsAsX
void setSelectedColumnsAsX()
Definition: future_Table.cpp:776
future::Table::createTableMenu
QMenu * createTableMenu(QMenu *append_to=0)
Create a menu with table related operations.
Definition: future_Table.cpp:1730
future::Table::setView
void setView(TableView *view)
set's the view attribute. Ownership not passed to this
Definition: future_Table.cpp:149
future::Table::columnsAboutToBeInserted
void columnsAboutToBeInserted(int before, QList< Column * > new_cols)
future::Table::createSelectionMenu
QMenu * createSelectionMenu(QMenu *append_to=0)
Create a menu with selection related operations.
Definition: future_Table.cpp:1653
future::Table::Private::d_row_count
int d_row_count
The maximum number of rows of all columns.
Definition: future_Table.h:569
future::Table::Private::setColumnWidth
void setColumnWidth(int col, int width)
Definition: future_Table.h:560
future::Table::action_toggle_comments
QAction * action_toggle_comments
Definition: future_Table.h:414
XmlStreamReader
XML stream parser that supports errors as well as warnings.
Definition: XmlStreamReader.h:42
future::Table::translateActionsStrings
void translateActionsStrings()
Definition: future_Table.cpp:1427
future::Table::Private::updateVerticalHeader
void updateVerticalHeader(int start_row)
Update the vertical header labels.
Definition: future_Table.cpp:2589
future::Table::columnsAboutToBeReplaced
void columnsAboutToBeReplaced(int first, int count)
future::Table::rowsAboutToBeInserted
void rowsAboutToBeInserted(int before, int count)
future::Table::action_set_as_none
QAction * action_set_as_none
Definition: future_Table.h:439
future::Table::setSelectionAs
void setSelectionAs(SciDAVis::PlotDesignation pd)
Definition: future_Table.cpp:762
future::Table::Private::columnHeader
QString columnHeader(int col)
Return the full column header string.
Definition: future_Table.cpp:2573
future::Table::setSelectedColumnsAsZ
void setSelectedColumnsAsZ()
Definition: future_Table.cpp:786
future::Table
Aspect providing a spreadsheet table with column logic.
Definition: future_Table.h:86
future::Table::fillProjectToolBar
virtual bool fillProjectToolBar(QToolBar *bar)
Fill the part specific tool bar for the main window including setting the title.
Definition: future_Table.cpp:1039
future::Table::rowsAboutToBeRemoved
void rowsAboutToBeRemoved(int first, int count)
future::Table::columnsAboutToBeRemoved
void columnsAboutToBeRemoved(int first, int count)
Column
Aspect that manages a column.
Definition: Column.h:59
future::Table::addColumn
void addColumn()
Append one column.
Definition: future_Table.cpp:320
future::Table::setSelectedColumnsAsXError
void setSelectedColumnsAsXError()
Definition: future_Table.cpp:796
future::Table::action_statistics_columns
QAction * action_statistics_columns
Definition: future_Table.h:442
AbstractAspect::index
int index() const
Return my position in my parent's list of children.
Definition: AbstractAspect.h:137
future::Table::columnsInserted
void columnsInserted(int first, int count)
future::Table::Private::insertColumns
void insertColumns(int before, QList< Column * > cols)
Insert columns before column number 'before'.
Definition: future_Table.cpp:2482
future::Table::Private::d_owner
Table & d_owner
The owner aspect.
Definition: future_Table.h:565
AbstractPart::copy
virtual void copy()
Copy current selection.
Definition: AbstractPart.h:79
TableStatistics
Table that computes and displays statistics on another Table.
Definition: TableStatistics.h:41
future::Table::removeSelectedRows
void removeSelectedRows()
Definition: future_Table.cpp:921
future::Table::default_column_width
static int default_column_width
Definition: future_Table.h:237
future::Table::recalculateSelectedCells
void recalculateSelectedCells()
Definition: future_Table.cpp:568
future::Table::rowsRemoved
void rowsRemoved(int first, int count)
future::Table::pasteIntoSelection
void pasteIntoSelection()
Definition: future_Table.cpp:403
future::Table::icon
virtual QIcon icon() const
Return an icon to be used for decorating my views.
Definition: future_Table.cpp:2144
future::Table::sortColumns
void sortColumns(Column *leading, QList< Column * > cols, bool ascending)
Sort the given list of column.
Definition: future_Table.cpp:1913
future::Table::defaultColumnWidth
static int defaultColumnWidth()
Definition: future_Table.h:232
future::Table::action_copy_selection
QAction * action_copy_selection
Definition: future_Table.h:399
future::Table::Private::columnCount
int columnCount() const
Return the number of columns in the table.
Definition: future_Table.h:520
future::Table::action_sort_columns
QAction * action_sort_columns
Definition: future_Table.h:441
future::Table::action_paste_into_selection
QAction * action_paste_into_selection
Definition: future_Table.h:400
future::Table::action_manager
static ActionManager * action_manager
Definition: future_Table.h:235
Table
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:51
future::Table::sortDialog
void sortDialog(QList< Column * > cols)
Open the sort dialog for the given columns.
Definition: future_Table.cpp:1901
scripted
Interface for maintaining a reference to the current ScriptingEnv.
Definition: Script.h:149
future::Table::removeColumns
void removeColumns(int first, int count)
Definition: future_Table.cpp:181
future::Table::handleDataChange
void handleDataChange(const AbstractColumn *col)
Definition: future_Table.cpp:2193
future::Table::columnsReplaced
void columnsReplaced(int first, int count)
future::Table::Private::composeColumnHeader
void composeColumnHeader(int col, const QString &label)
Internal function to put together the column header.
Definition: future_Table.cpp:2666
future::Table::action_cut_selection
QAction * action_cut_selection
Definition: future_Table.h:398
future::Table::action_recalculate
QAction * action_recalculate
Definition: future_Table.h:407
future::Table::colX
int colX(int col)
Determine the corresponding X column.
Definition: future_Table.cpp:1851
future::Table::action_normalize_columns
QAction * action_normalize_columns
Definition: future_Table.h:440
future::Table::d_view
QPointer< TableView > d_view
Definition: future_Table.h:455
future::Table::action_dimensions_dialog
QAction * action_dimensions_dialog
Definition: future_Table.h:425
future::Table::showTableViewRowContextMenu
void showTableViewRowContextMenu(const QPoint &pos)
Show a context menu for the selected rows.
Definition: future_Table.cpp:1516
future::Table::sortSelectedColumns
void sortSelectedColumns()
Definition: future_Table.cpp:872
future::Table::clear
void clear()
Clear the whole table.
Definition: future_Table.cpp:296
future::Table::removeSelectedColumns
void removeSelectedColumns()
Definition: future_Table.cpp:726
future::Table::action_add_columns
QAction * action_add_columns
Definition: future_Table.h:433
TableView
View class for Table.
Definition: TableView.h:89
globals.h
future::Table::selectAll
void selectAll()
Definition: future_Table.cpp:2166
future::Table::sortTable
void sortTable()
Open the sort dialog for all columns.
Definition: future_Table.cpp:683
future::Table::action_clear_columns
QAction * action_clear_columns
Definition: future_Table.h:432
future::Table::Private::moveColumn
void moveColumn(int from, int to)
Move a column to another position.
Definition: future_Table.cpp:2537
future::Table::action_clear_masks
QAction * action_clear_masks
Definition: future_Table.h:421
future::Table::Private::d_horizontal_header_data
QStringList d_horizontal_header_data
Horizontal header data.
Definition: future_Table.h:573
future::Table::normalizeColumns
void normalizeColumns(QList< Column * > cols)
Definition: future_Table.cpp:806
future::Table::clearMasks
void clearMasks()
Clear all mask in the table.
Definition: future_Table.cpp:308
future::Table::handleModeChange
void handleModeChange(const AbstractColumn *col)
Definition: future_Table.cpp:2172
future::Table::Private::updateHorizontalHeader
void updateHorizontalHeader(int start_col, int end_col)
Update the horizontal header labels.
Definition: future_Table.cpp:2599
future::Table::colY
int colY(int col)
Determine the corresponding Y column.
Definition: future_Table.cpp:1867
future::Table::statisticsOnSelectedRows
void statisticsOnSelectedRows()
Definition: future_Table.cpp:887
future::Table::handleRowsRemoved
void handleRowsRemoved(const AbstractColumn *col, int first, int count)
Definition: future_Table.cpp:2227
future::Table::showTeXTableExportDialog
void showTeXTableExportDialog()
Open export to TeX dialog.
Definition: future_Table.cpp:1530
future::Table::dataChanged
void dataChanged(int top, int left, int bottom, int right)
future::Table::action_statistics_rows
QAction * action_statistics_rows
Definition: future_Table.h:452
future::Table::disconnectColumn
void disconnectColumn(const Column *col)
Internal function to disconnect a column.
Definition: future_Table.cpp:2259
future::Table::Private::d_columns
QList< Column * > d_columns
List of pointers to the column data vectors.
Definition: future_Table.h:575
future::Table::Private::name
QString name() const
Definition: future_Table.h:541
future::Table::columnsRemoved
void columnsRemoved(int first, int count)
future::Table::action_type_format
QAction * action_type_format
Definition: future_Table.h:443
future::Table::action_unmask_selection
QAction * action_unmask_selection
Definition: future_Table.h:403
future::Table::unmaskSelection
void unmaskSelection()
Definition: future_Table.cpp:541
future::Table::prepareAspectRemoval
virtual void prepareAspectRemoval(AbstractAspect *aspect)
Called before a child is removed.
Definition: future_Table.cpp:2278
AbstractAspect::name
QString name() const
Definition: AbstractAspect.cpp:229
future::Table::Private::column
Column * column(int index) const
Return column number 'index'.
Definition: future_Table.cpp:2453
future::Table::rowsInserted
void rowsInserted(int first, int count)
future::Table::headerData
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: future_Table.cpp:2264
future::Table::insertRows
void insertRows(int before, int count)
Definition: future_Table.cpp:214
future::Table::load
virtual bool load(XmlStreamReader *)
Load from XML.
Definition: future_Table.cpp:2310
future::Table::action_go_to_cell
QAction * action_go_to_cell
Definition: future_Table.h:424
future::Table::action_export_to_TeX
QAction * action_export_to_TeX
Definition: future_Table.h:419
future::Table::appendColumns
void appendColumns(QList< Column * > new_cols)
Append columns.
Definition: future_Table.h:132
future::Table::action_edit_description
QAction * action_edit_description
Definition: future_Table.h:444
future::Table::action_set_as_z
QAction * action_set_as_z
Definition: future_Table.h:436
future::Table::cutSelection
void cutSelection()
Definition: future_Table.cpp:340
future::Table::action_remove_columns
QAction * action_remove_columns
Definition: future_Table.h:431
future::Table::setPlotMenu
void setPlotMenu(QMenu *menu)
Set a plot menu.
Definition: future_Table.cpp:1896
future::Table::d_default_comment_visibility
static bool d_default_comment_visibility
Definition: future_Table.h:394
future::Table::readColumnWidthElement
bool readColumnWidthElement(XmlStreamReader *reader)
Definition: future_Table.cpp:2395
future::Table::~Table
virtual ~Table()
Definition: future_Table.cpp:126
future::Table::handleRowsAboutToBeInserted
void handleRowsAboutToBeInserted(const AbstractColumn *col, int before, int count)
Definition: future_Table.cpp:2204
future::Table::setSelectedColumnsAsNone
void setSelectedColumnsAsNone()
Definition: future_Table.cpp:801
future::Table::Private::columnIndex
int columnIndex(const Column *col) const
Return the index of the given column in the table.
Definition: future_Table.h:535
future::Table::action_normalize_selection
QAction * action_normalize_selection
Definition: future_Table.h:410
TeXTableSettings
TeXTableSettings class.
Definition: TeXTableSettings.h:42
future::Table::action_add_rows
QAction * action_add_rows
Definition: future_Table.h:451
future::Table::setColumnWidth
void setColumnWidth(int col, int width)
This method should only be called by the view.
Definition: future_Table.cpp:2419
future::Table::showTableViewColumnContextMenu
void showTableViewColumnContextMenu(const QPoint &pos)
Show a context menu for the selected columns.
Definition: future_Table.cpp:1495
future::Table::Private::replaceColumns
void replaceColumns(int first, QList< Column * > new_cols)
Replace columns completely.
Definition: future_Table.cpp:2458
future::Table::action_remove_rows
QAction * action_remove_rows
Definition: future_Table.h:449
future::Table::action_set_as_y
QAction * action_set_as_y
Definition: future_Table.h:435
future::Table::fillProjectMenu
virtual bool fillProjectMenu(QMenu *menu)
Fill the part specific menu for the main window including setting the title.
Definition: future_Table.cpp:987
future::Table::createContextMenu
virtual QMenu * createContextMenu() const
Return a new context menu.
Definition: future_Table.cpp:1049
future::Table::headerDataChanged
void headerDataChanged(Qt::Orientation orientation, int first, int last)
future::Table::text
QString text(int row, int col)
Return the text displayed in the given cell.
Definition: future_Table.cpp:2153
future::Table::dimensionsDialog
void dimensionsDialog()
Definition: future_Table.cpp:1793
future::Table::setSelectedColumnsAsY
void setSelectedColumnsAsY()
Definition: future_Table.cpp:781
future::Table::action_toggle_tabbar
QAction * action_toggle_tabbar
Definition: future_Table.h:415
future::Table::Private::d_vertical_header_data
QList< int > d_vertical_header_data
Vertical header data.
Definition: future_Table.h:571
future::Table::fillSelectedCellsWithRandomNumbers
void fillSelectedCellsWithRandomNumbers()
Definition: future_Table.cpp:623
future::Table::action_insert_rows
QAction * action_insert_rows
Definition: future_Table.h:448
future::Table::action_set_as_xerr
QAction * action_set_as_xerr
Definition: future_Table.h:437
future::Table::removeColumn
void removeColumn(Column *col)
Definition: future_Table.cpp:196
future::Table::columnIndex
int columnIndex(const Column *col) const
Definition: future_Table.cpp:291
future::Table::editTypeAndFormatOfSelectedColumns
void editTypeAndFormatOfSelectedColumns()
Definition: future_Table.cpp:964
future::Table::createColumnMenu
QMenu * createColumnMenu(QMenu *append_to=0)
Create a menu with column related operations.
Definition: future_Table.cpp:1685
future::Table::setSelectedColumnsAsYError
void setSelectedColumnsAsYError()
Definition: future_Table.cpp:791
future::Table::handleRowsInserted
void handleRowsInserted(const AbstractColumn *col, int before, int count)
Definition: future_Table.cpp:2211
future::Table::maskSelection
void maskSelection()
Definition: future_Table.cpp:521
future::Table::action_select_all
QAction * action_select_all
Definition: future_Table.h:416
future::Table::statisticsOnSelectedColumns
void statisticsOnSelectedColumns()
Definition: future_Table.cpp:879
future::Table::action_set_as_yerr
QAction * action_set_as_yerr
Definition: future_Table.h:438
future::Table::columnCount
int columnCount() const
Return the total number of columns in the table.
Definition: future_Table.cpp:248
future::Table::d_table_private
Private d_table_private
Definition: future_Table.h:586
future::Table::Private::numColsWithPD
int numColsWithPD(SciDAVis::PlotDesignation pd)
Return the number of columns with a given plot designation.
Definition: future_Table.cpp:2578
future::Table::handlePlotDesignationChange
void handlePlotDesignationChange(const AbstractColumn *col)
Definition: future_Table.cpp:2186
SciDAVis::PlotDesignation
PlotDesignation
Types of plot designations.
Definition: globals.h:55
future::Table::setFormulaForSelection
void setFormulaForSelection()
Definition: future_Table.cpp:562
future::Table::copy
virtual void copy()
Copy current selection.
Definition: AbstractPart.h:79
ActionManager
Manages QActions and their shortcuts.
Definition: ActionManager.h:84
future::Table::createRowMenu
QMenu * createRowMenu(QMenu *append_to=0)
Create a menu with row related operations.
Definition: future_Table.cpp:1756
future::Table::column
Column * column(int index) const
Return column number 'index'.
Definition: future_Table.cpp:129
future::Table::d_plot_menu
QMenu * d_plot_menu
Definition: future_Table.h:393
future::Table::normalizeSelectedColumns
void normalizeSelectedColumns()
Definition: future_Table.cpp:833
future::Table::handleDescriptionChange
void handleDescriptionChange(const AbstractAspect *aspect)
Definition: future_Table.cpp:2179
future::Table::defaultCommentVisibility
static bool defaultCommentVisibility()
Return the default for comment visibility for table views.
Definition: future_Table.h:213
future::Table::addRows
void addRows()
Append as many rows as are selected.
Definition: future_Table.cpp:976
future::Table::goToCell
void goToCell()
Definition: future_Table.cpp:1777
future::Table::setColumnCount
void setColumnCount(int new_size)
Set the number of columns.
Definition: future_Table.cpp:268
future::Table::connectActions
void connectActions()
Definition: future_Table.cpp:1323
future::Table::action_sort_table
QAction * action_sort_table
Definition: future_Table.h:423
future::Table::connectColumn
void connectColumn(const Column *col)
Internal function to connect all column signals.
Definition: future_Table.cpp:2235
future::Table::removeRows
void removeRows(int first, int count)
Definition: future_Table.cpp:201
future::Table::showTableViewContextMenu
void showTableViewContextMenu(const QPoint &pos)
Show a context menu for the selected cells.
Definition: future_Table.cpp:1472
future::Table::setDefaultColumnWidth
static void setDefaultColumnWidth(int width)
Definition: future_Table.h:233
future::Table::rowCount
int rowCount() const
Return the total number of rows in the table.
Definition: future_Table.cpp:253
future::Table::addColumns
void addColumns()
Append as many columns as are selected.
Definition: future_Table.cpp:329
future::Table::view
virtual QWidget * view()
Construct a primary view on me.
Definition: future_Table.cpp:157
future::Table::insertColumns
void insertColumns(int before, QList< Column * > new_cols)
Insert columns.
Definition: future_Table.cpp:168
future::Table::action_add_column
QAction * action_add_column
Definition: future_Table.h:417
future::Table::insertEmptyRows
void insertEmptyRows()
Insert rows depending on the selection.
Definition: future_Table.cpp:895
future::Table::action_formula_mode
QAction * action_formula_mode
Definition: future_Table.h:426
future::Table::action_clear_table
QAction * action_clear_table
Definition: future_Table.h:418
future::Table::completeAspectInsertion
virtual void completeAspectInsertion(AbstractAspect *aspect, int index)
Called after a new child has been inserted or added.
Definition: future_Table.cpp:2269
AbstractAspect
Base class of all persistent objects in a Project.
Definition: AbstractAspect.h:86
future::Table::Private::d_column_widths
QList< int > d_column_widths
Columns widths.
Definition: future_Table.h:582
future::Table::action_mask_selection
QAction * action_mask_selection
Definition: future_Table.h:402
future::Table::handleRowsAboutToBeRemoved
void handleRowsAboutToBeRemoved(const AbstractColumn *col, int first, int count)
Definition: future_Table.cpp:2220
future::Table::action_set_as_x
QAction * action_set_as_x
Definition: future_Table.h:434
future::Table::Private
Definition: future_Table.h:486
future::Table::actionManager
static ActionManager * actionManager()
Definition: future_Table.cpp:2433
AbstractColumn
Interface definition for data with column logic.
Definition: AbstractColumn.h:82
future::Table::export_to_TeX
bool export_to_TeX(QString fileName, TeXTableSettings &tex_settings)
Export to TeX.
Definition: future_Table.cpp:1559
future::Table::createActions
void createActions()
Definition: future_Table.cpp:1069
AbstractPart
Base class of Aspects with MDI windows as views.
Definition: AbstractPart.h:44