kradio4  r778
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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]

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 ()
 
- Public Member Functions inherited from GUIListHelperQObjectBase
 GUIListHelperQObjectBase ()
 
virtual ~GUIListHelperQObjectBase ()
 

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 Member Functions inherited from GUIListHelperQObjectBase
void emitSigDirtyChanged (bool d)
 

Protected Attributes

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

Additional Inherited Members

- Public Slots inherited from GUIListHelperQObjectBase
- Signals inherited from GUIListHelperQObjectBase
void sigDirtyChanged (bool dirty)
 
- Protected Slots inherited from GUIListHelperQObjectBase

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)
template<class TLIST , class TID >
bool GUIListHelper< TLIST, TID >::containsItemID ( const TID &  id) const
inlineprotected

Definition at line 89 of file gui_list_helper.h.

template<class TLIST , class TID >
int GUIListHelper< TLIST, TID >::count ( ) const
inline
template<class TLIST , class TID >
const TID GUIListHelper< TLIST, TID >::getCurrentItemID ( ) const
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setAlternativeDirty ( )
inlineprotected
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setAlternativeDirty ( bool  dirty)
inlineprotected

Definition at line 94 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setCurrentItemID ( const TID &  id)
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
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setDirty ( bool  userDirty,
bool  alternativesDirty 
)
inlineprotected
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)
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setUserDirty ( )
inlineprotected

Definition at line 91 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setUserDirty ( bool  dirty)
inlineprotected

Definition at line 92 of file gui_list_helper.h.

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::slotCancel ( )
virtual
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::slotOK ( )
virtual
template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::slotUserSelection ( )
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: