|
Isis 3 Programmer Reference
|
1 #ifndef TableMainWindow_h
2 #define TableMainWindow_h
7 #include <QListWidgetItem>
10 #include "MainWindow.h"
118 void addToTable(
bool setOn,
const QString &heading,
119 const QString &menuText =
"",
int insertAt = -1,
120 Qt::Orientation o = Qt::Horizontal, QString toolTip =
"");
141 void resizeColumn(
int columnIndex);
154 bool defaultChecked);
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed in the constructor.
int p_currentIndex
Current index.
QPointer< QListWidget > p_listWidget
List widget.
QListWidget * listWidget() const
Returns the list widget.
void setCurrentIndex(int currentIndex)
Sets the current index to currentIndex.
QTableWidget * table() const
Returns the table.
void fileLoaded()
Signal emitted when a file has loaded.
QFile p_currentFile
The current file.
void writeSettings() const
This overriden method is called when the Tablemainwindow is closed or hidden to write the size and lo...
std::string p_appName
The application name.
void syncColumns()
This method hides and shows the columns according to which items the user has selected to be view-abl...
int p_selectedRows
Number of selected rows.
bool trackListItems()
Returns whether or not we should track items.
QAction * p_save
Action to save the table to the current file.
TableMainWindow(QString title, QWidget *parent=0)
Constructs a new TableMainWindow object.
void readColumnSettings()
This method reads the columns in the table and sets their size to the appropriate size,...
void saveTable()
This method allows the user to save the data from the table to the current file.
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.
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...
void showTable()
This method checks to see if the table has been created.
void clearRow(int row)
This method clears the text of the given row.
int currentIndex() const
Returns the current index.
int selectedRows() const
Returns the selected rows.
QDockWidget * p_dock
The dock widget.
int p_visibleColumns
Number of visible columns.
bool p_trackItems
Boolean to track items.
void clearTable()
This method clears all items from each row and column.
void closeEvent(QCloseEvent *event)
void setCurrentRow(int row)
Sets the current row to row.
QList< int > p_startColumn
List of start columns.
QList< int > p_endColumn
List of end columns.
int p_currentRow
Current row.
QTableWidget * p_table
The table.
a subclass of the qisis mainwindow, tablemainwindow handles all of the table tasks.
void saveAsTable()
This method will select a file, set it as the current file and save the table.
QString p_title
The title string.
void deleteColumn(int item)
This method deletes a column from the table.
QWidget * p_parent
The parent widget.
void setStatusMessage(QString message)
sets the status message in the lower lefthand corner of the window.
void createTable()
This creates the table main window.
int currentRow() const
Returns the current row.
void deleteRows()
This method is called when the user selects a row or rows uses the delete button or selects the delet...
Base class for the Qisis main windows.
void syncRows()
Use this method to sync the table with the dock widget list if the table orientation is horizontal.
void hideEvent(QHideEvent *event)
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...
void loadTable()
This method loads a text file into the table.
This is free and unencumbered software released into the public domain.