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 
) [inline]
template<class TLIST , class TID >
GUIListHelper< TLIST, TID >::GUIListHelper ( TLIST *  list,
const QMap< TID, QString > &  data,
SORT_KEY  skey 
) [inline]
template<class TLIST , class TID >
GUIListHelper< TLIST, TID >::GUIListHelper ( TLIST *  list,
const QList< QString > &  data,
SORT_KEY  skey 
) [inline]
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  )  [inline]
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 [inline]
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]
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setCurrentItemID ( const TID &  id  )  [inline]
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setData ( const QList< QString > &  data  )  [inline, protected]
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setData ( const QMap< TID, QString > &  data  )  [inline, protected]
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setDirty ( bool  userDirty,
bool  alternativesDirty 
) [inline, protected]
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  )  [inline]
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 >::setUserDirty (  )  [inline, protected]

Definition at line 91 of file gui_list_helper.h.

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

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.

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

template<class TLIST , class TID >
bool GUIListHelper< TLIST, TID >::m_ignoreGUIChange [protected]
template<class TLIST , class TID >
TLIST* GUIListHelper< TLIST, TID >::m_List [protected]
template<class TLIST , class TID >
TID GUIListHelper< TLIST, TID >::m_orgID [protected]
template<class TLIST , class TID >
SORT_KEY GUIListHelper< TLIST, TID >::m_skey [protected]

Definition at line 101 of file gui_list_helper.h.

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

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

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

Generated on 22 Aug 2012 for kradio4 by  doxygen 1.6.1