UserInfo Class Reference
The widget for the User Info tab page. More...
#include <userinfo.h>
Inherits QWidget.
Inheritance diagram for UserInfo:
Public Slots | |
void | refreshList () |
void | slotUpdateList (SetiLoc *loc, int type) |
Public Methods | |
UserInfo (QWidget *parent=0, const char *name=0) | |
~UserInfo () | |
Protected Types | |
enum | ColumnIds |
Protected Slots | |
void | slotUpdateUserInfoData () |
void | toggleSorting (int column) |
Protected Methods | |
void | resizeEvent (QResizeEvent *e) |
void | paintEvent (QPaintEvent *e) |
void | refreshListItem (SetiLoc *loc, UserInfoListViewItem *it=0) |
Protected Attributes | |
popListView * | QListView_1 |
QDict< UserInfoListViewItem > | lvDict |
Detailed Description
The widget for the User Info tab page.This widget contains a list view with information about the users running the S@h clients.
Definition at line 49 of file userinfo.h.
Member Enumeration Documentation
|
Identifiers for the columns in the User Info list view.
Definition at line 121 of file userinfo.h. |
Constructor & Destructor Documentation
|
The constructor.
Definition at line 63 of file userinfo.cpp. References QListView::addColumn(), QObject::connect(), QListView::header(), lvDict, QWidget::move(), QListView_1, refreshList(), QListView::setColumnAlignment(), QListView::setColumnWidth(), popListView::setPopupStyle(), QListView::setShowSortIndicator(), toggleSorting(), QWidget::width(), and Ksetiwatch::TableColumn::width. |
|
The destructor.
Definition at line 98 of file userinfo.cpp. |
Member Function Documentation
|
Refreshes all items in the list view. If corresponding list view item for a S@h location does not exist, it is created on-the-fly. Definition at line 116 of file userinfo.cpp. References QList< SetiLoc >::first(), SetiLoc::id(), Ksetiwatch::locationList(), lvDict, QList< SetiLoc >::next(), refreshListItem(), and slotUpdateList(). Referenced by UserInfo(). |
|
Updates the private dictionary of S@h locations. Updates the private list of S@h locations with the location loc. The type parameter specifies what to do with loc.
Definition at line 161 of file userinfo.cpp. References QObject::connect(), QObject::disconnect(), SetiLoc::id(), QDict< UserInfoListViewItem >::insert(), lvDict, QListView_1, refreshListItem(), QDict< UserInfoListViewItem >::remove(), and slotUpdateUserInfoData(). Referenced by refreshList(). |
|
Resizes and rearranges widgets in the tab page when the window size changes. A relict from ancient times when there were no layout widgets.
Reimplemented from QWidget. Definition at line 103 of file userinfo.cpp. References QWidget::height(), QListView_1, and QWidget::resize(). |
|
Reimplemented to tell the list view whether it shall draw grid lines.
Reimplemented from QWidget. Definition at line 109 of file userinfo.cpp. References globalopts, QWidget::paintEvent(), QListView_1, and popListView::setGridEnabled(). |
|
Refreshes all columns of the list view item of location loc.
Definition at line 132 of file userinfo.cpp. References SetiContainer::averageCPUTime(), SetiContainer::convertTime(), SetiLoc::description(), SetiContainer::exists(), globalopts, SetiLoc::id(), SetiContainer::lastResultTimeString(), lvDict, QString::number(), SetiContainer::numberOfResults(), SetiContainer::registerTimeString(), QListViewItem::setText(), SetiContainer::totalCPUTime(), and SetiContainer::userName(). Referenced by refreshList(), slotUpdateList(), and slotUpdateUserInfoData(). |
|
Determines the sender of the signal and refreshes the corresponding item in the Data Info list.
Definition at line 202 of file userinfo.cpp. References refreshListItem(), and QObject::sender(). Referenced by slotUpdateList(). |
|
Toggles the sorting order of column column.
Definition at line 195 of file userinfo.cpp. References QListView_1, and QListView::setSorting(). Referenced by UserInfo(). |
Member Data Documentation
|
The list view shown in the Data Info tab page.
Definition at line 114 of file userinfo.h. Referenced by paintEvent(), resizeEvent(), slotUpdateList(), toggleSorting(), and UserInfo(). |
|
A dictionary that stores all the list view items currently shown in the Data Info tab page. Items are identified by the unique ID of a S@h location. Definition at line 118 of file userinfo.h. Referenced by refreshList(), refreshListItem(), slotUpdateList(), and UserInfo(). |
The documentation for this class was generated from the following files: