QcalcListView Class Reference

This class implements a list/tree view. This class specialises the QSAS class QguListView.
It displays 2 column items one for the name of the object and the second is its alias. More...

#include <qcalc.h>

Inheritance diagram for QcalcListView:

QguListView

List of all members.

Public Slots

void makeGroup ()
 Method that creates a new folder containing all items on localList (ie selected). Inserts folder in place of selected items or at root if nothing is selected.
void paste ()
 Method that pastes a new item into the current list view using the content of the clipboard as WLcontext.
void renameSelectedItemAlias ()
void deleteListItems ()
void deleteAllItems ()
void insertVirtualItem ()
void tabChanged (QWidget *qwdgt)
void validateWLitems ()
 Method that validates all items on this list view against the Working List
Exceptions:
None. 

void propagateSelection (const char *, const char *)
void propagateDrop (const char *)

Signals

void pasteDetected ()
void SelectionUpdated ()
void listItemDeleted ()

Public Member Functions

 QcalcListView (QWidget *parent, QcalcWindow *QjW, const char *name=0)
 ~QcalcListView ()
void insertEntries (const QString &context)
void insertEntries (QguListItem *dropAt, QguListItem *item)
 Method that inserts a new item at target dropAt in the current list view. Item takes WLcontext as its name.
virtual void dropEvent (QDropEvent *event)
 Event handler called when the drag is dropped on this list view. Re-implemented from QWidget. Drop uses dragList.
bool reNameItemAlias (QcalcListVirtualItem *item)
void setSelectedList (QguListItem *item)
 Method that sets the selected list (localList) to contain item and all its descendents.
virtual void getAliasArrDim (QString, Dim_var &)
virtual QguAliasObjType getAliasObjectType (QString)
virtual QguAliasType getAliasObject (QString, QdObject_var)
virtual QdObject_var getAliasResultObject (QString)

Public Attributes

QcalcWindowowner
QString m_qstrWidgetText
QdTimeSeq_var qdtargetTT

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
virtual void contentsMouseReleaseEvent (QMouseEvent *event)
 Method that processes the mouse up event. It has been re-implemented from Q3ListView.
virtual void contentsMousePressEvent (QMouseEvent *event)
 Method to process mouse down events. Re-implemented from Q3ListView. Handles select, multi-select and drag.
virtual void contentsMouseMoveEvent (QMouseEvent *event)
 Method that processes the mouse move event. It has been re-implemented from Q3ListView.
virtual void dragMoveEvent (QDragMoveEvent *event)
 Event handler that is called when a drag is in progress. Re-implemented from QWidget.
virtual void contentsMouseDoubleClickEvent (QMouseEvent *event)
 Method that processes the mouse double-click event. It has been re-implemented from Q3ListView.

Private Types

typedef void(QCheckBox::* CheckBoxFnPtr )(bool bOn)

Private Attributes

QString m_strAliseName
char m_chChar

Friends

Vostreamoperator<< (Vostream &, QcalcListView &)
Vistreamoperator>> (Vistream &, QcalcListView &)


Detailed Description

This class implements a list/tree view. This class specialises the QSAS class QguListView.
It displays 2 column items one for the name of the object and the second is its alias.

The main signals that are processed in this class are:

The main slots for this class are grouped into 5 categories:


Member Typedef Documentation

typedef void( QCheckBox::* QcalcListView::CheckBoxFnPtr)(bool bOn) [private]


Constructor & Destructor Documentation

QcalcListView::QcalcListView ( QWidget *  parent,
QcalcWindow QjW,
const char *  name = 0 
)

QcalcListView::~QcalcListView (  ) 


Member Function Documentation

void QcalcListView::contentsMouseDoubleClickEvent ( QMouseEvent *  event  )  [protected, virtual]

Method that processes the mouse double-click event. It has been re-implemented from Q3ListView.

Parameters:
event of type QMouseEvent *
Exceptions:
None 
Returns:
None

Reimplemented from QguListView.

void QcalcListView::contentsMouseMoveEvent ( QMouseEvent *  event  )  [protected, virtual]

Method that processes the mouse move event. It has been re-implemented from Q3ListView.

Parameters:
event of type QMouseEvent *
Exceptions:
none 
Returns:
none

Reimplemented from QguListView.

void QcalcListView::contentsMousePressEvent ( QMouseEvent *  event  )  [protected, virtual]

Method to process mouse down events. Re-implemented from Q3ListView. Handles select, multi-select and drag.

Parameters:
event of type QMouseEvent *
Exceptions:
none 
Returns:
none

Reimplemented from QguListView.

void QcalcListView::contentsMouseReleaseEvent ( QMouseEvent *  event  )  [protected, virtual]

Method that processes the mouse up event. It has been re-implemented from Q3ListView.

Parameters:
event of type QMouseEvent *
Exceptions:
none 
Returns:
none

Reimplemented from QguListView.

void QcalcListView::deleteAllItems (  )  [slot]

void QcalcListView::deleteListItems (  )  [slot]

Reimplemented from QguListView.

void QcalcListView::dragMoveEvent ( QDragMoveEvent *  event  )  [protected, virtual]

Event handler that is called when a drag is in progress. Re-implemented from QWidget.

Parameters:
event of type QDragMoveEvent *
Exceptions:
none 
Returns:
none

Reimplemented from QguListView.

void QcalcListView::dropEvent ( QDropEvent *  event  )  [virtual]

Event handler called when the drag is dropped on this list view. Re-implemented from QWidget. Drop uses dragList.

Parameters:
event of type QDropEvent *
Exceptions:
None 
Returns:
None

Reimplemented from QguListView.

void QcalcListView::getAliasArrDim ( QString  objName,
Dim_var dim 
) [virtual]

Reimplemented from QguListView.

QguAliasType QcalcListView::getAliasObject ( QString  objName,
QdObject_var  dobj 
) [virtual]

Reimplemented from QguListView.

QguAliasObjType QcalcListView::getAliasObjectType ( QString  objName  )  [virtual]

Reimplemented from QguListView.

QdObject_var QcalcListView::getAliasResultObject ( QString  objName  )  [virtual]

Reimplemented from QguListView.

void QcalcListView::insertEntries ( QguListItem dropAt,
QguListItem item 
) [virtual]

Method that inserts a new item at target dropAt in the current list view. Item takes WLcontext as its name.

Parameters:
dropAt of type QguListItem*
item of type QguListItem*
Exceptions:
none 
Returns:
None

Reimplemented from QguListView.

void QcalcListView::insertEntries ( const QString &  context  )  [virtual]

Reimplemented from QguListView.

void QcalcListView::insertVirtualItem (  )  [slot]

void QcalcListView::keyPressEvent ( QKeyEvent *  e  )  [protected]

void QcalcListView::listItemDeleted (  )  [signal]

void QcalcListView::makeGroup (  )  [slot]

Method that creates a new folder containing all items on localList (ie selected). Inserts folder in place of selected items or at root if nothing is selected.

Parameters:
None 
Exceptions:
None 
Returns:
None

Reimplemented from QguListView.

void QcalcListView::paste (  )  [slot]

Method that pastes a new item into the current list view using the content of the clipboard as WLcontext.

Parameters:
None 
Exceptions:
None 
Returns:
None

Reimplemented from QguListView.

void QcalcListView::pasteDetected (  )  [signal]

void QcalcListView::propagateDrop ( const char *  objString  )  [slot]

void QcalcListView::propagateSelection ( const char *  compString,
const char *  compType 
) [slot]

bool QcalcListView::reNameItemAlias ( QcalcListVirtualItem item  ) 

void QcalcListView::renameSelectedItemAlias (  )  [slot]

void QcalcListView::SelectionUpdated (  )  [signal]

void QcalcListView::setSelectedList ( QguListItem item  ) 

Method that sets the selected list (localList) to contain item and all its descendents.

Parameters:
item of type QguListItem *
Exceptions:
none 
Returns:
none

Reimplemented from QguListView.

void QcalcListView::tabChanged ( QWidget *  qwdgt  )  [slot]

void QcalcListView::validateWLitems (  )  [slot]

Method that validates all items on this list view against the Working List

Exceptions:
None. 

Returns:
None

Reimplemented from QguListView.


Friends And Related Function Documentation

Vostream& operator<< ( Vostream ,
QcalcListView  
) [friend]

Vistream& operator>> ( Vistream ,
QcalcListView  
) [friend]


Member Data Documentation

char QcalcListView::m_chChar [private]

QString QcalcListView::m_strAliseName [private]


The documentation for this class was generated from the following files:

Generated on Fri Jan 8 12:51:28 2010 for QSAS by  doxygen 1.5.7