#include <gui_list_helper.h>
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 |
Definition at line 58 of file gui_list_helper.h.
enum GUIListHelper::SORT_KEY |
Definition at line 61 of file gui_list_helper.h.
GUIListHelper< TLIST, TID >::GUIListHelper | ( | TLIST * | list, | |
SORT_KEY | skey | |||
) | [inline] |
Definition at line 136 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::slotUserSelection().
GUIListHelper< TLIST, TID >::GUIListHelper | ( | TLIST * | list, | |
const QMap< TID, QString > & | data, | |||
SORT_KEY | skey | |||
) | [inline] |
Definition at line 149 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::setData(), and GUIListHelper< TLIST, TID >::slotUserSelection().
GUIListHelper< TLIST, TID >::GUIListHelper | ( | TLIST * | list, | |
const QList< QString > & | data, | |||
SORT_KEY | skey | |||
) | [inline] |
Definition at line 162 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::setData(), and GUIListHelper< TLIST, TID >::slotUserSelection().
GUIListHelper< TLIST, TID >::~GUIListHelper | ( | ) | [inline] |
Definition at line 66 of file gui_list_helper.h.
void GUIListHelper< TLIST, TID >::alternativesChanged | ( | const TData & | data | ) | [inline] |
Definition at line 204 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::m_orgID, GUIListHelper< TLIST, TID >::m_userDirty, GUIListHelper< TLIST, TID >::m_userSelID, GUIListHelper< TLIST, TID >::setAlternativeDirty(), GUIListHelper< TLIST, TID >::setCurrentItemID(), and GUIListHelper< TLIST, TID >::setData().
bool GUIListHelper< TLIST, TID >::containsItemID | ( | const TID & | id | ) | const [inline, protected] |
Definition at line 89 of file gui_list_helper.h.
int GUIListHelper< TLIST, TID >::count | ( | ) | const [inline] |
Definition at line 78 of file gui_list_helper.h.
const TID GUIListHelper< TLIST, TID >::getCurrentItemID | ( | ) | const [inline] |
Definition at line 284 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::m_List.
Referenced by GUIListHelper< TLIST, TID >::slotOK(), and GUIListHelper< TLIST, TID >::slotUserSelection().
void GUIListHelper< TLIST, TID >::setAlternativeDirty | ( | bool | dirty | ) | [inline, protected] |
Definition at line 94 of file gui_list_helper.h.
void GUIListHelper< TLIST, TID >::setAlternativeDirty | ( | ) | [inline, protected] |
Definition at line 93 of file gui_list_helper.h.
Referenced by GUIListHelper< TLIST, TID >::alternativesChanged(), and GUIListHelper< TLIST, TID >::setCurrentItemID().
void GUIListHelper< TLIST, TID >::setCurrentItemID | ( | const TID & | id | ) | [inline] |
Definition at line 258 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::m_ignoreGUIChange, GUIListHelper< TLIST, TID >::m_List, and GUIListHelper< TLIST, TID >::setAlternativeDirty().
Referenced by GUIListHelper< TLIST, TID >::alternativesChanged(), GUIListHelper< TLIST, TID >::setOrgItemID(), and GUIListHelper< TLIST, TID >::slotCancel().
void GUIListHelper< TLIST, TID >::setData | ( | const QList< QString > & | data | ) | [inline, protected] |
Definition at line 242 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::m_List, GUIListHelper< TLIST, TID >::m_skey, and GUIListHelper< TLIST, TID >::SORT_NONE.
void GUIListHelper< TLIST, TID >::setData | ( | const QMap< TID, QString > & | data | ) | [inline, protected] |
Definition at line 223 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::THelpData::descr, GUIListHelper< TLIST, TID >::THelpData::id, GUIListHelper< TLIST, TID >::m_List, GUIListHelper< TLIST, TID >::m_skey, and GUIListHelper< TLIST, TID >::SORT_NONE.
Referenced by GUIListHelper< TLIST, TID >::alternativesChanged(), and GUIListHelper< TLIST, TID >::GUIListHelper().
void GUIListHelper< TLIST, TID >::setDirty | ( | bool | userDirty, | |
bool | alternativesDirty | |||
) | [inline, protected] |
Definition at line 95 of file gui_list_helper.h.
References GUIListHelperQObjectBase::emitSigDirtyChanged().
Referenced by GUIListHelper< TLIST, TID >::slotCancel(), GUIListHelper< TLIST, TID >::slotOK(), and GUIListHelper< TLIST, TID >::slotUserSelection().
void GUIListHelper< TLIST, TID >::setList | ( | TLIST * | list | ) | [inline] |
Definition at line 68 of file gui_list_helper.h.
void GUIListHelper< TLIST, TID >::setOrgItemID | ( | const TID & | id | ) | [inline] |
Definition at line 275 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::m_orgID, GUIListHelper< TLIST, TID >::m_userDirty, and GUIListHelper< TLIST, TID >::setCurrentItemID().
Referenced by GUIListHelper< TLIST, TID >::slotOK().
void GUIListHelper< TLIST, TID >::setUserDirty | ( | bool | dirty | ) | [inline, protected] |
Definition at line 92 of file gui_list_helper.h.
void GUIListHelper< TLIST, TID >::setUserDirty | ( | ) | [inline, protected] |
Definition at line 91 of file gui_list_helper.h.
void GUIListHelper< TLIST, TID >::slotCancel | ( | ) | [inline, virtual] |
Implements GUIListHelperQObjectBase.
Definition at line 187 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::m_orgID, GUIListHelper< TLIST, TID >::setCurrentItemID(), and GUIListHelper< TLIST, TID >::setDirty().
void GUIListHelper< TLIST, TID >::slotOK | ( | ) | [inline, virtual] |
Implements GUIListHelperQObjectBase.
Definition at line 178 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::getCurrentItemID(), GUIListHelper< TLIST, TID >::m_alternativeDirty, GUIListHelper< TLIST, TID >::m_userDirty, GUIListHelper< TLIST, TID >::setDirty(), and GUIListHelper< TLIST, TID >::setOrgItemID().
void GUIListHelper< TLIST, TID >::slotUserSelection | ( | ) | [inline, virtual] |
Implements GUIListHelperQObjectBase.
Definition at line 194 of file gui_list_helper.h.
References GUIListHelper< TLIST, TID >::getCurrentItemID(), GUIListHelper< TLIST, TID >::m_ignoreGUIChange, GUIListHelper< TLIST, TID >::m_userSelID, and GUIListHelper< TLIST, TID >::setDirty().
Referenced by GUIListHelper< TLIST, TID >::GUIListHelper().
bool GUIListHelper< TLIST, TID >::m_alternativeDirty [protected] |
Definition at line 104 of file gui_list_helper.h.
Referenced by GUIListHelper< TLIST, TID >::slotOK().
bool GUIListHelper< TLIST, TID >::m_ignoreGUIChange [protected] |
Definition at line 109 of file gui_list_helper.h.
Referenced by GUIListHelper< TLIST, TID >::setCurrentItemID(), and GUIListHelper< TLIST, TID >::slotUserSelection().
TLIST* GUIListHelper< TLIST, TID >::m_List [protected] |
Definition at line 102 of file gui_list_helper.h.
Referenced by GUIListHelper< TLIST, TID >::getCurrentItemID(), GUIListHelper< TLIST, TID >::setCurrentItemID(), and GUIListHelper< TLIST, TID >::setData().
TID GUIListHelper< TLIST, TID >::m_orgID [protected] |
Definition at line 106 of file gui_list_helper.h.
Referenced by GUIListHelper< TLIST, TID >::alternativesChanged(), GUIListHelper< TLIST, TID >::setOrgItemID(), and GUIListHelper< TLIST, TID >::slotCancel().
SORT_KEY GUIListHelper< TLIST, TID >::m_skey [protected] |
Definition at line 101 of file gui_list_helper.h.
Referenced by GUIListHelper< TLIST, TID >::setData().
bool GUIListHelper< TLIST, TID >::m_userDirty [protected] |
Definition at line 103 of file gui_list_helper.h.
Referenced by GUIListHelper< TLIST, TID >::alternativesChanged(), GUIListHelper< TLIST, TID >::setOrgItemID(), and GUIListHelper< TLIST, TID >::slotOK().
TID GUIListHelper< TLIST, TID >::m_userSelID [protected] |
Definition at line 107 of file gui_list_helper.h.
Referenced by GUIListHelper< TLIST, TID >::alternativesChanged(), and GUIListHelper< TLIST, TID >::slotUserSelection().