CondorAbstractView Class Reference

Implements an Abstract class with the common implementation of every Condor view. More...

#include <condorabstractview.h>

Inheritance diagram for CondorAbstractView:

CondorQView CondorStatusView List of all members.

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 ()

Detailed Description

Implements an Abstract class with the common implementation of every Condor view.

Author:
Author
Nuria Fernández
Version:
Revision
1.0
Date:
2007/01/11 14:16:20


Constructor & Destructor Documentation

CondorAbstractView::CondorAbstractView (  ) 

Abstract constructor.

CondorAbstractView::CondorAbstractView ( QStandardItemModel *  model  ) 

Makes a view associated to a model

Parameters:
model 

CondorAbstractView::~CondorAbstractView (  ) 

Destructor


Member Function Documentation

void CondorAbstractView::clearFilter (  )  [slot]

Clear all filters applyed before

int CondorAbstractView::columnCount (  ) 

return the number of columns in the model

Returns:
num_columns

void CondorAbstractView::contextMenuEvent ( QContextMenuEvent *  event  )  [protected, virtual]

Implements the context menu with the same actions specify in createActions()

Parameters:
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]

Shows the filter dialog associated to a column

Todo:
: no sale el nombre de la columna correctamente

int CondorAbstractView::getColumn (  ) 

return the number of columns

Returns:
num_colums

QSortFilterProxyModel * CondorAbstractView::getFilterModel (  ) 

return the filter model

Returns:
model

QStandardItemModel * CondorAbstractView::getStandardModel (  ) 

returns the model of the view

Returns:
model

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

Parameters:
paths list of paths

void CondorAbstractView::resizeColumns (  )  [slot]

resize all columns to contents

Bug:
is clear

void CondorAbstractView::setColumn ( int  column  ) 

Set the number of columns

Parameters:
column number of columns

void CondorAbstractView::setFilterModel ( QSortFilterProxyModel *  model  ) 

Set a new filter model to a view

Parameters:
model 

void CondorAbstractView::setStandardModel ( QStandardItemModel *  model  ) 

Set a new model to view

Parameters:
model 

void CondorAbstractView::showAllColumns (  )  [virtual, slot]

Show all columns of the model

void CondorAbstractView::showColumns ( QStringList  columns  )  [virtual, slot]

Show only selected columns

Parameters:
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.


The documentation for this class was generated from the following files:
Generated on Sun Jan 14 23:38:42 2007 for QCondor by  doxygen 1.4.7