Ksetiwatch API Documentation


DataInfo Class Reference

The widget for the Data Info tab page. More...

#include <datainfo.h>

Inherits QWidget.

Inheritance diagram for DataInfo:

Inheritance graph
[legend]
Collaboration diagram for DataInfo:

Collaboration graph
[legend]
List of all members.

Public Slots

void refreshList ()
void slotUpdateList (SetiLoc *loc, int type)

Public Methods

 DataInfo (QWidget *parent=0, const char *name=0)
 ~DataInfo ()

Protected Types

enum  ColumnIds

Protected Slots

void slotUpdateWorkUnitData ()
void showMap ()
void toggleSorting (int column)

Protected Methods

void resizeEvent (QResizeEvent *e)
void paintEvent (QPaintEvent *e)
void refreshListItem (SetiLoc *loc, DataInfoListViewItem *it=0)

Protected Attributes

popListViewQListView_1
QDict< DataInfoListViewItemlvDict
QPushButtonQPushButton_1

Detailed Description

The widget for the Data Info tab page.

This widget contains a list view with information about the work units currently being processed.

Definition at line 52 of file datainfo.h.


Member Enumeration Documentation

enum DataInfo::ColumnIds [protected]
 

Identifiers for the columns in the Data Info list view.

Definition at line 128 of file datainfo.h.


Constructor & Destructor Documentation

DataInfo::DataInfo QWidget   parent = 0,
const char *    name = 0
 

The constructor.

Parameters:
parent  The parent widget. If 0, this widget becomes a top-level widget.
name  A text that can be used to identify this widget.

Definition at line 54 of file datainfo.cpp.

References QListView::addColumn(), QObject::connect(), QListView::header(), lvDict, QWidget::move(), QListView_1, QPushButton_1, refreshList(), QListView::setColumnAlignment(), QListView::setColumnWidth(), popListView::setPopupStyle(), QListView::setShowSortIndicator(), QPushButton::setText(), showMap(), toggleSorting(), and QWidget::width().

DataInfo::~DataInfo  
 

The destructor.

Definition at line 96 of file datainfo.cpp.


Member Function Documentation

void DataInfo::refreshList   [slot]
 

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 datainfo.cpp.

References QList< SetiLoc >::first(), SetiLoc::id(), Ksetiwatch::locationList(), lvDict, QList< SetiLoc >::next(), refreshListItem(), and slotUpdateList().

Referenced by DataInfo().

void DataInfo::slotUpdateList SetiLoc   loc,
int    type
[slot]
 

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.

Parameters:
loc  The S@h location to be updated.
type  The type of action to be performed with loc. See Ksetiwatch::ListId for details.

Definition at line 132 of file datainfo.cpp.

References QObject::connect(), QObject::disconnect(), SetiLoc::id(), QDict< DataInfoListViewItem >::insert(), lvDict, QListView_1, refreshListItem(), QDict< DataInfoListViewItem >::remove(), and slotUpdateWorkUnitData().

Referenced by refreshList().

void DataInfo::resizeEvent QResizeEvent   e [protected]
 

Resizes and rearranges widgets in the tab page when the window size changes.

A relict from ancient times when there were no layout widgets.

Parameters:
e  An object containing details about the resize event.

Reimplemented from QWidget.

Definition at line 101 of file datainfo.cpp.

References QWidget::height(), QListView_1, QPushButton_1, QWidget::resize(), and QWidget::y().

void DataInfo::paintEvent QPaintEvent   e [protected]
 

Reimplemented to tell the list view whether it shall draw grid lines.

Parameters:
e  An object containing details about the paint event.

Reimplemented from QWidget.

Definition at line 109 of file datainfo.cpp.

References globalopts, QWidget::paintEvent(), QListView_1, and popListView::setGridEnabled().

void DataInfo::refreshListItem SetiLoc   loc,
DataInfoListViewItem   it = 0
[protected]
 

Refreshes all columns of the list view item of location loc.

Parameters:
loc  A pointer to the SetiLoc object.
it  A pointer to the list view item to be updated. If 0, the item will be looked up in the private dictionary.

Definition at line 166 of file datainfo.cpp.

References SetiContainer::angleRange(), SetiContainer::baseFrequency(), SetiContainer::convertDecToString(), SetiContainer::convertRAToString(), SetiLoc::description(), SetiContainer::exists(), SetiLoc::id(), lvDict, QString::number(), SetiContainer::receiver(), QString::setNum(), QListViewItem::setText(), SetiContainer::startDec(), SetiContainer::startRA(), SetiContainer::teraFlops(), and SetiContainer::timeRecordedString().

Referenced by refreshList(), slotUpdateList(), and slotUpdateWorkUnitData().

void DataInfo::slotUpdateWorkUnitData   [protected, slot]
 

Determines the sender of the signal and refreshes the corresponding item in the Data Info list.

Definition at line 229 of file datainfo.cpp.

References refreshListItem(), and QObject::sender().

Referenced by slotUpdateList().

void DataInfo::showMap   [protected, slot]
 

Opens the skymap window.

Definition at line 205 of file datainfo.cpp.

References SkyMap::addLocation(), SkyMap::clearMap(), QList< SetiLoc >::first(), Ksetiwatch::locationList(), QList< SetiLoc >::next(), QWidget::repaint(), and SkyMap::showMap().

Referenced by DataInfo().

void DataInfo::toggleSorting int    column [protected, slot]
 

Toggles the sorting order of column column.

Definition at line 222 of file datainfo.cpp.

References QListView_1, and QListView::setSorting().

Referenced by DataInfo().


Member Data Documentation

popListView* DataInfo::QListView_1 [protected]
 

The list view shown in the Data Info tab page.

Definition at line 119 of file datainfo.h.

Referenced by DataInfo(), paintEvent(), resizeEvent(), slotUpdateList(), and toggleSorting().

QDict<DataInfoListViewItem> DataInfo::lvDict [protected]
 

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 123 of file datainfo.h.

Referenced by DataInfo(), refreshList(), refreshListItem(), and slotUpdateList().

QPushButton* DataInfo::QPushButton_1 [protected]
 

The button that needs to be clicked to open the skymap window.

Definition at line 125 of file datainfo.h.

Referenced by DataInfo(), and resizeEvent().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Ksetiwatch API Version 2.6.1.
Documentation copyright © 2000-2003 Gordon Machel.
Generated on Fri Jun 6 00:28:42 2003 by doxygen 1.2.18, written by Dimitri van Heesch, © 1997-2002