Objects List Widget. More...
#include <qgobjectslist.h>
Public Types | |
enum | oType { Nothing, Docs, Links, Topics, CompTopics, IdealTopics, Users, Profiles, Communities, CompCommunities, IdealCommunities, Assessments, Subjects, Classes } |
Signals | |
void | Show (GDoc *doc) |
void | Show (GTopic *topic) |
void | Show (GProfile *profile) |
void | Show (GCommunity *community) |
void | Show (GClass *theclass) |
Public Member Functions | |
QGObjectsList (QWidget *parent=0) | |
void | Set (GSession *session, oType type) |
void | Set (oType type, GDoc *doc) |
void | Set (oType type, GProfile *profile) |
void | Set (oType type, GTopic *topic) |
void | Set (oType type, GCommunity *community) |
void | Set (oType type, GMetaEngine *engine, size_t nbres, size_t fragsize, size_t caller) |
QTreeWidget * | tree (void) |
QTreeWidgetItem * | currentItem (void) |
GUser * | GetCurrentUser (void) |
GProfile * | GetCurrentProfile (void) |
GDoc * | GetCurrentDoc (void) |
GTopic * | GetCurrentTopic (void) |
GCommunity * | GetCurrentCommunity (void) |
void | FindNext (const QString &what, bool desc) |
Private Slots | |
void | HandleItem (QTreeWidgetItem *item, int column) |
Private Member Functions | |
QString | PrintExtract (const R::RString &extract) |
virtual | ~QGObjectsList (void) |
Private Attributes | |
void * | Ui |
Detailed Description
Objects List Widget.
The QGObjectsList provides a widget to list a given set of objects. When the user double clicks on one object, the widget emits a corresponding signal.
Member Enumeration Documentation
enum oType |
Type of the list managed by the widget.
Constructor & Destructor Documentation
QGObjectsList | ( | QWidget * | parent = 0 | ) |
Construct the list.
- Parameters
-
parent Parent widget.
|
privatevirtual |
Destruct the list.
- Returns
Member Function Documentation
Set the list with a given type.
- Parameters
-
session Session. type Type of the list.
Set the list with a given type for a given document.
- Parameters
-
type Type of the list. doc Document.
Set the list with a given type for a given profile.
- Parameters
-
type Type of the list. profile Profile.
Set the list with a given type for a given topic.
- Parameters
-
type Type of the list. topic Topic.
void Set | ( | oType | type, |
GCommunity * | community | ||
) |
Set the list with a given type for a given community.
- Parameters
-
type Type of the list. community Community.
void Set | ( | oType | type, |
GMetaEngine * | engine, | ||
size_t | nbres, | ||
size_t | fragsize, | ||
size_t | caller | ||
) |
Set the list for a given engine.
- Parameters
-
type Type of the list. engine Engine. nbres Number of results to show. fragsize Maximum number of characters of shown fragments. caller Identifier of the caller (for example a thread).
QTreeWidget* tree | ( | void | ) |
Get the tree.
- Returns
- Pointer.
QTreeWidgetItem* currentItem | ( | void | ) |
Get the current item.
- Returns
- Pointer.
GUser* GetCurrentUser | ( | void | ) |
Get the current user selected in this window.
- Returns
- Pointer to GUser or 0 if no user is currently selected.
GProfile* GetCurrentProfile | ( | void | ) |
Get the current profile selected in this window.
- Returns
- Pointer to GProfile or 0 if no profile is currently selected.
GDoc* GetCurrentDoc | ( | void | ) |
Get the current document selected in this window.
- Returns
- Pointer to GDoc or 0 if no document is currently selected.
GTopic* GetCurrentTopic | ( | void | ) |
Get the current topic selected in this window.
- Returns
- Pointer to GTopic or 0 if no topic is currently selected.
GCommunity* GetCurrentCommunity | ( | void | ) |
Get the current community selected in this window.
- Returns
- Pointer to GCommunity or 0 if no community is currently selected.
void FindNext | ( | const QString & | what, |
bool | desc | ||
) |
Find the next item containing a given string.
- Parameters
-
what Text to search for. desc Search (eventually) in the descriptions.
|
private |
Function that transform an extract in a string that can be printed.
- Parameters
-
extract Extract to print.
- Returns
- a QString.
|
privateslot |
This slot is called when the user double clicks on a given item.
- Parameters
-
item Item chosen. column Corresponding column.
|
signal |
A document must be shown.
|
signal |
A topic must be shown.
|
signal |
A profile must be shown.
|
signal |
A community must be shown.
|
signal |
A class must be shown.
Member Data Documentation
|
private |
Pointer to the widget created by Qt.