kradio4 r778
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
GUIListHelper< TLIST, TID > Class Template Reference

#include <gui_list_helper.h>

Inheritance diagram for GUIListHelper< TLIST, TID >:
Inheritance graph
[legend]
Collaboration diagram for GUIListHelper< TLIST, TID >:
Collaboration graph
[legend]

List of all members.

Classes

struct  THelpData

Public Types

enum  SORT_KEY { SORT_BY_ID, SORT_BY_DESCR, SORT_NONE }

Public Member Functions

 GUIListHelper (TLIST *list, SORT_KEY skey)
 GUIListHelper (TLIST *list, const QMap< TID, QString > &data, SORT_KEY skey)
 GUIListHelper (TLIST *list, const QList< QString > &data, SORT_KEY skey)
 ~GUIListHelper ()
void setList (TLIST *list)
void setCurrentItemID (const TID &id)
void setOrgItemID (const TID &id)
template<class TData >
void alternativesChanged (const TData &data)
const TID getCurrentItemID () const
int count () const
virtual void slotOK ()
virtual void slotCancel ()
virtual void slotUserSelection ()

Protected Member Functions

void setData (const QMap< TID, QString > &data)
void setData (const QList< QString > &data)
bool containsItemID (const TID &id) const
void setUserDirty ()
void setUserDirty (bool dirty)
void setAlternativeDirty ()
void setAlternativeDirty (bool dirty)
void setDirty (bool userDirty, bool alternativesDirty)

Protected Attributes

SORT_KEY m_skey
TLIST * m_List
bool m_userDirty
bool m_alternativeDirty
TID m_orgID
TID m_userSelID
bool m_ignoreGUIChange

Detailed Description

template<class TLIST, class TID>
class GUIListHelper< TLIST, TID >

Definition at line 58 of file gui_list_helper.h.


Member Enumeration Documentation

template<class TLIST , class TID >
enum GUIListHelper::SORT_KEY
Enumerator:
SORT_BY_ID 
SORT_BY_DESCR 
SORT_NONE 

Definition at line 61 of file gui_list_helper.h.


Constructor & Destructor Documentation

template<class TLIST , class TID >
GUIListHelper< TLIST, TID >::GUIListHelper ( TLIST *  list,
SORT_KEY  skey 
)
template<class TLIST , class TID >
GUIListHelper< TLIST, TID >::GUIListHelper ( TLIST *  list,
const QMap< TID, QString > &  data,
SORT_KEY  skey 
)
template<class TLIST , class TID >
GUIListHelper< TLIST, TID >::GUIListHelper ( TLIST *  list,
const QList< QString > &  data,
SORT_KEY  skey 
)
template<class TLIST , class TID >
GUIListHelper< TLIST, TID >::~GUIListHelper ( ) [inline]

Definition at line 66 of file gui_list_helper.h.


Member Function Documentation

template<class TLIST , class TID >
template<class TData >
void GUIListHelper< TLIST, TID >::alternativesChanged ( const TData &  data)

Definition at line 204 of file gui_list_helper.h.

template<class TLIST , class TID >
bool GUIListHelper< TLIST, TID >::containsItemID ( const TID &  id) const [inline, protected]

Definition at line 89 of file gui_list_helper.h.

template<class TLIST , class TID >
int GUIListHelper< TLIST, TID >::count ( ) const [inline]

Definition at line 78 of file gui_list_helper.h.

template<class TLIST , class TID >
const TID GUIListHelper< TLIST, TID >::getCurrentItemID ( ) const

Definition at line 284 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setAlternativeDirty ( bool  dirty) [inline, protected]

Definition at line 94 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setAlternativeDirty ( ) [inline, protected]

Definition at line 93 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setCurrentItemID ( const TID &  id)

Definition at line 258 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setData ( const QMap< TID, QString > &  data) [protected]
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setData ( const QList< QString > &  data) [protected]

Definition at line 242 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setDirty ( bool  userDirty,
bool  alternativesDirty 
) [inline, protected]

Definition at line 95 of file gui_list_helper.h.

References GUIListHelperQObjectBase::emitSigDirtyChanged().

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setList ( TLIST *  list) [inline]

Definition at line 68 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setOrgItemID ( const TID &  id)

Definition at line 275 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setUserDirty ( ) [inline, protected]

Definition at line 91 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setUserDirty ( bool  dirty) [inline, protected]

Definition at line 92 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::slotCancel ( ) [virtual]

Implements GUIListHelperQObjectBase.

Definition at line 187 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::slotOK ( ) [virtual]

Implements GUIListHelperQObjectBase.

Definition at line 178 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::slotUserSelection ( ) [virtual]

Implements GUIListHelperQObjectBase.

Definition at line 194 of file gui_list_helper.h.

Referenced by GUIListHelper< TLIST, TID >::GUIListHelper().


Member Data Documentation

template<class TLIST , class TID >
bool GUIListHelper< TLIST, TID >::m_alternativeDirty [protected]

Definition at line 104 of file gui_list_helper.h.

template<class TLIST , class TID >
bool GUIListHelper< TLIST, TID >::m_ignoreGUIChange [protected]

Definition at line 109 of file gui_list_helper.h.

template<class TLIST , class TID >
TLIST* GUIListHelper< TLIST, TID >::m_List [protected]

Definition at line 102 of file gui_list_helper.h.

template<class TLIST , class TID >
TID GUIListHelper< TLIST, TID >::m_orgID [protected]

Definition at line 106 of file gui_list_helper.h.

template<class TLIST , class TID >
SORT_KEY GUIListHelper< TLIST, TID >::m_skey [protected]

Definition at line 101 of file gui_list_helper.h.

template<class TLIST , class TID >
bool GUIListHelper< TLIST, TID >::m_userDirty [protected]

Definition at line 103 of file gui_list_helper.h.

template<class TLIST , class TID >
TID GUIListHelper< TLIST, TID >::m_userSelID [protected]

Definition at line 107 of file gui_list_helper.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines