1#ifndef TableMainWindow_h 
    2#define TableMainWindow_h 
    7#include <QListWidgetItem> 
   75      QList<QListWidgetItem *> 
itemList() 
const;
 
   95        return  p_selectedRows;
 
 
  105        return  p_currentIndex;
 
 
  118      void addToTable(
bool setOn, 
const QString &heading,
 
  119                      const QString &menuText = 
"", 
int insertAt = -1,
 
  120                      Qt::Orientation o = Qt::Horizontal, QString toolTip = 
"");
 
  154                            bool defaultChecked);
 
  159      std::string p_appName; 
 
  167      QTableWidget *p_table; 
 
  168      QPointer<QListWidget> p_listWidget; 
 
  173      int p_visibleColumns; 
 
  174      QList<int>p_startColumn; 
 
  175      QList<int>p_endColumn; 
 
 
Base class for the Qisis main windows.
Definition MainWindow.h:24
 
a subclass of the qisis mainwindow, tablemainwindow handles all of the table tasks.
Definition TableMainWindow.h:57
 
QTableWidget * table() const
Returns the table.
Definition TableMainWindow.h:70
 
void loadTable()
This method loads a text file into the table.
Definition TableMainWindow.cpp:656
 
QList< QListWidgetItem * > itemList() const
Definition TableMainWindow.cpp:53
 
void showTable()
This method checks to see if the table has been created.
Definition TableMainWindow.cpp:383
 
void addToTable(bool setOn, const QString &heading, const QString &menuText="", int insertAt=-1, Qt::Orientation o=Qt::Horizontal, QString toolTip="")
Adds a new column to the table when a new curve is added to the plot.
Definition TableMainWindow.cpp:208
 
void setCurrentRow(int row)
Sets the current row to row.
Definition TableMainWindow.cpp:896
 
void fileLoaded()
Signal emitted when a file has loaded.
 
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed in the constructor.
Definition TableMainWindow.cpp:831
 
void createTable()
This creates the table main window.
Definition TableMainWindow.cpp:86
 
~TableMainWindow()
Definition TableMainWindow.cpp:39
 
void writeSettings() const
This overriden method is called when the Tablemainwindow is closed or hidden to write the size and lo...
Definition TableMainWindow.cpp:624
 
void hideEvent(QHideEvent *event)
Definition TableMainWindow.cpp:863
 
void resizeColumn(int columnIndex)
Definition TableMainWindow.cpp:62
 
void clearTable()
This method clears all items from each row and column.
Definition TableMainWindow.cpp:394
 
bool trackListItems()
Returns whether or not we should track items.
Definition TableMainWindow.cpp:886
 
void readColumnSettings()
This method reads the columns in the table and sets their size to the appropriate size,...
Definition TableMainWindow.cpp:588
 
int currentRow() const
Returns the current row.
Definition TableMainWindow.h:114
 
void clear()
Definition TableMainWindow.cpp:44
 
int currentIndex() const
Returns the current index.
Definition TableMainWindow.h:104
 
void syncColumns()
This method hides and shows the columns according to which items the user has selected to be view-abl...
Definition TableMainWindow.cpp:291
 
void setTrackListItems(bool track=false)
If this property is true, the class will keep track of the checked/unchecked items in the dock area w...
Definition TableMainWindow.cpp:875
 
void deleteRows()
This method is called when the user selects a row or rows uses the delete button or selects the delet...
Definition TableMainWindow.cpp:414
 
int selectedRows() const
Returns the selected rows.
Definition TableMainWindow.h:94
 
void closeEvent(QCloseEvent *event)
Definition TableMainWindow.cpp:850
 
void clearRow(int row)
This method clears the text of the given row.
Definition TableMainWindow.cpp:452
 
void deleteColumn(int item)
This method deletes a column from the table.
Definition TableMainWindow.cpp:356
 
void syncRows()
Use this method to sync the table with the dock widget list if the table orientation is horizontal.
Definition TableMainWindow.cpp:323
 
void readItemSettings(QString heading, QListWidgetItem *item, bool defaultChecked)
This method reads the 'checked' settings on the items listed in the dock area which determine which t...
Definition TableMainWindow.cpp:571
 
TableMainWindow(QString title, QWidget *parent=0)
Constructs a new TableMainWindow object.
Definition TableMainWindow.cpp:24
 
void saveAsTable()
This method will select a file, set it as the current file and save the table.
Definition TableMainWindow.cpp:465
 
void saveTable()
This method allows the user to save the data from the table to the current file.
Definition TableMainWindow.cpp:496
 
void setCurrentIndex(int currentIndex)
Sets the current index to currentIndex.
Definition TableMainWindow.cpp:906
 
void setStatusMessage(QString message)
sets the status message in the lower lefthand corner of the window.
Definition TableMainWindow.cpp:191
 
QListWidget * listWidget() const
Returns the list widget.
Definition TableMainWindow.h:84
 
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16