1 #ifndef TableMainWindow_h 
    2 #define TableMainWindow_h 
    7 #include <QListWidgetItem> 
   83         return  p_selectedRows;
 
   93         return  p_currentIndex;
 
  106       void addToTable(
bool setOn, 
const QString &heading,
 
  107                       const QString &menuText = 
"", 
int insertAt = -1,
 
  108                       Qt::Orientation o = Qt::Horizontal, QString toolTip = 
"");
 
  141                             bool defaultChecked);
 
  144       std::string p_appName; 
 
  152       QTableWidget *p_table; 
 
  153       QPointer<QListWidget> p_listWidget; 
 
  158       int p_visibleColumns; 
 
QTableWidget * table() const 
Returns the table. 
Definition: TableMainWindow.h:58
 
void setStatusMessage(QString message)
sets the status message in the lower lefthand corner of the window. 
Definition: TableMainWindow.cpp:166
 
~TableMainWindow()
Definition: TableMainWindow.cpp:38
 
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed in the constructor. 
Definition: TableMainWindow.cpp:747
 
void saveAsTable()
This method will select a file, set it as the current file and save the table. 
Definition: TableMainWindow.cpp:431
 
void clearRow(int row)
This method clears the text of the given row. 
Definition: TableMainWindow.cpp:418
 
void deleteColumn(int item)
This method deletes a column from the table. 
Definition: TableMainWindow.cpp:330
 
QListWidget * listWidget() const 
Returns the list widget. 
Definition: TableMainWindow.h:72
 
void hideEvent(QHideEvent *event)
Definition: TableMainWindow.cpp:779
 
int selectedRows() const 
Returns the selected rows. 
Definition: TableMainWindow.h:82
 
int currentRow() const 
Returns the current row. 
Definition: TableMainWindow.h:102
 
bool trackListItems()
Returns whether or not we should track items. 
Definition: TableMainWindow.cpp:802
 
void createTable()
This creates the table main window. 
Definition: TableMainWindow.cpp:67
 
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:380
 
void saveTable()
This method allows the user to save the data from the table to the current file. 
Definition: TableMainWindow.cpp:462
 
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:791
 
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:537
 
QList< QListWidgetItem * > itemList() const 
Definition: TableMainWindow.cpp:51
 
void closeEvent(QCloseEvent *event)
Definition: TableMainWindow.cpp:766
 
void writeSettings() const 
This overriden method is called when the Tablemainwindow is closed or hidden to write the size and lo...
Definition: TableMainWindow.cpp:556
 
void clear()
Definition: TableMainWindow.cpp:42
 
void syncColumns()
This method hides and shows the columns according to which items the user has selected to be view-abl...
Definition: TableMainWindow.cpp:265
 
void setCurrentRow(int row)
Sets the current row to row. 
Definition: TableMainWindow.cpp:812
 
a subclass of the qisis mainwindow, tablemainwindow handles all of the table tasks. 
Definition: TableMainWindow.h:45
 
TableMainWindow(QString title, QWidget *parent=0)
Constructs a new TableMainWindow object. 
Definition: TableMainWindow.cpp:23
 
void clearTable()
This method clears all items from each row and column. 
Definition: TableMainWindow.cpp:360
 
void loadTable()
This method loads a text file into the table. 
Definition: TableMainWindow.cpp:572
 
int currentIndex() const 
Returns the current index. 
Definition: TableMainWindow.h:92
 
Base class for the Qisis main windows. 
Definition: MainWindow.h:24
 
void fileLoaded()
Signal emitted when a file has loaded. 
Definition: moc_TableMainWindow.cpp:195
 
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:183
 
void showTable()
This method checks to see if the table has been created. 
Definition: TableMainWindow.cpp:349
 
void setCurrentIndex(int currentIndex)
Sets the current index to currentIndex. 
Definition: TableMainWindow.cpp:822
 
void syncRows()
Use this method to sync the table with the dock widget list if the table orientation is horizontal...
Definition: TableMainWindow.cpp:297