#include <condorabstractview.h>
Inheritance diagram for CondorAbstractView:

Public Slots | |
| virtual void | filterDialog () |
| void | clearFilter () |
| virtual void | hideSelectedColumn () |
| virtual void | showAllColumns () |
| virtual void | showColumns (QStringList) |
| void | resizeColumns () |
| void | reconfigPaths (QStringList) |
Signals | |
| void | showedView (QStringList columns) |
| void | updateModel () |
Public Member Functions | |
| setClassname0 ("abstractview") | |
| Set the class name "abstractview". | |
| CondorAbstractView () | |
| CondorAbstractView (QStandardItemModel *) | |
| ~CondorAbstractView () | |
| QStandardItemModel * | getStandardModel () |
| void | setStandardModel (QStandardItemModel *) |
| QSortFilterProxyModel * | getFilterModel () |
| void | setFilterModel (QSortFilterProxyModel *) |
| int | columnCount () |
| void | setColumn (int) |
| int | getColumn () |
Protected Member Functions | |
| virtual void | contextMenuEvent (QContextMenuEvent *e) |
Protected Attributes | |
| int | m_column |
| Contains the number of columns. | |
| QMenu | m_menu |
| Contains the menu object. | |
| QAction * | m_filterAct |
| Contains filter action. | |
| QAction * | m_clearFilterAct |
| Contains clear filter action. | |
| QAction * | m_hideAct |
| Contains hide action. | |
| QAction * | m_showAllAct |
| Contains show all action. | |
| QStandardItemModel * | m_model |
| contains the model of the view | |
| QSortFilterProxyModel * | m_filterModel |
| Contains the filtered model of the view. | |
| QItemSelectionModel * | m_selectionModel |
| Contains the selected model of the view. | |
| QStringList | m_paths |
| Contains the path of the configuration file. | |
Private Member Functions | |
| virtual void | createActions () |
| virtual void | readSettings () |
| virtual void | writeSettings () |
| CondorAbstractView::CondorAbstractView | ( | ) |
Abstract constructor.
| CondorAbstractView::CondorAbstractView | ( | QStandardItemModel * | model | ) |
Makes a view associated to a model
| model |
| CondorAbstractView::~CondorAbstractView | ( | ) |
Destructor
| void CondorAbstractView::clearFilter | ( | ) | [slot] |
Clear all filters applyed before
| int CondorAbstractView::columnCount | ( | ) |
return the number of columns in the model
| void CondorAbstractView::contextMenuEvent | ( | QContextMenuEvent * | event | ) | [protected, virtual] |
Implements the context menu with the same actions specify in createActions()
| event |
Reimplemented in CondorQView.
| void CondorAbstractView::createActions | ( | ) | [private, virtual] |
Initialize all the actions that the user can use in the view Nowadays that actions are:
Reimplemented in CondorQView.
| void CondorAbstractView::filterDialog | ( | ) | [virtual, slot] |
| int CondorAbstractView::getColumn | ( | ) |
return the number of columns
| QSortFilterProxyModel * CondorAbstractView::getFilterModel | ( | ) |
return the filter model
| QStandardItemModel * CondorAbstractView::getStandardModel | ( | ) |
returns the model of the view
| void CondorAbstractView::hideSelectedColumn | ( | ) | [virtual, slot] |
Hide the selected column (with mouse)
| void CondorAbstractView::readSettings | ( | ) | [private, virtual] |
Virtual function to read settings
Reimplemented in CondorQView, and CondorStatusView.
| void CondorAbstractView::reconfigPaths | ( | QStringList | paths | ) | [slot] |
Reconfig the paths associated to the view
| paths | list of paths |
| void CondorAbstractView::resizeColumns | ( | ) | [slot] |
| void CondorAbstractView::setColumn | ( | int | column | ) |
Set the number of columns
| column | number of columns |
| void CondorAbstractView::setFilterModel | ( | QSortFilterProxyModel * | model | ) |
Set a new filter model to a view
| model |
| void CondorAbstractView::setStandardModel | ( | QStandardItemModel * | model | ) |
Set a new model to view
| model |
| void CondorAbstractView::showAllColumns | ( | ) | [virtual, slot] |
Show all columns of the model
| void CondorAbstractView::showColumns | ( | QStringList | columns | ) | [virtual, slot] |
Show only selected columns
| columns | QStringList with selected columns. |
| void CondorAbstractView::showedView | ( | QStringList | columns | ) | [signal] |
emit a singal to update the view with the specify columns in list
| void CondorAbstractView::updateModel | ( | ) | [signal] |
emit a signal to update the model
| void CondorAbstractView::writeSettings | ( | ) | [private, virtual] |
Virtual function to write settings
Reimplemented in CondorQView, and CondorStatusView.
1.4.7