Ksetiwatch Class Reference
The main window of Ksetiwatch. More...
#include <ksetiwatch.h>
Inherits KMainWindow.
Inheritance diagram for Ksetiwatch:


Public Types | |
| enum | ListId |
Public Slots | |
| void | slotUpdateList (SetiLoc *loc, int type) |
| void | close () |
Signals | |
| void | listModified (SetiLoc *, int) |
Public Methods | |
| Ksetiwatch (const char *name=0) | |
| ~Ksetiwatch () | |
| bool | startMinimized () |
Static Public Methods | |
| SetiLoc * | getLocation (const QString &name) |
| QList< SetiLoc > & | locationList () |
| KswOptions * | globalOptions () |
Protected Methods | |
| bool | event (QEvent *e) |
| bool | queryClose () |
| bool | queryExit () |
| void | startClients () |
| void | stopClients () |
Private Slots | |
| void | saveConfig () |
| void | readConfig () |
| void | handleTabSelection (int) |
| void | toggleIcon () |
Detailed Description
The main window of Ksetiwatch.This widget is the main window of Ksetiwatch. It basically consists of a tab widget with several tab pages showing details about the configured SETI@home locations. Furthermore, it acts as the central instance for maintaining the list of configured S@h locations, the main configuration file, and the `global' options.
Definition at line 130 of file ksetiwatch.h.
Member Enumeration Documentation
|
|
These identifiers specify how the list of S@h locations can be accessed.
Definition at line 190 of file ksetiwatch.h. |
Constructor & Destructor Documentation
|
|
The constructor.
Definition at line 66 of file ksetiwatch.cpp. References KTabCtl::addTab(), QObject::connect(), DockWidget::dock(), getLocation(), globalopts, handleTabSelection(), SetiLoc::id(), SetiContainer::initWUScore(), KStatusBar::insertItem(), listModified(), locationList(), readConfig(), saveConfig(), QMainWindow::setCentralWidget(), QWidget::setIcon(), KStatusBar::setItemAlignment(), QWidget::setMinimumSize(), KMainWindow::setPlainCaption(), Analysis::setSelectedLocation(), slotUpdateList(), startClients(), KMainWindow::statusBar(), and toggleIcon(). |
|
|
The destructor.
Definition at line 150 of file ksetiwatch.cpp. |
Member Function Documentation
|
|
Returns the start-up mode.
Definition at line 159 of file ksetiwatch.h. References globalopts. Referenced by main(). |
|
|
Returns a pointer to a configured S@h location. Searches the list of S@h locations for the one specified by name and returns a pointer to it.
Definition at line 537 of file ksetiwatch.cpp. References SetiLoc::description(), QList::first(), locationList(), and QList::next(). Referenced by Analysis::getLocation(), CompletedWUList::handleSigListDoubleClick(), CompletedWUList::handleSigListPopupCommand(), CompletedWUList::handleTreeListPopupCommand(), CompletedWUList::handleWUListPopupCommand(), AnalysisListViewItem::key(), Ksetiwatch(), LoggedSigs::LoggedSigs(), and SkyMap::showTelescopePath(). |
|
|
Returns the S@h location list.
Definition at line 176 of file ksetiwatch.h. Referenced by CompletedWUList::addAllLoggedWU(), CompletedWUList::checkForRedirect(), CompletedWUList::fillSigSumList(), CompletedWUList::fillTotalList(), CompletedWUList::fillTreeList(), getLocation(), Ksetiwatch(), Analysis::modifyStatusFilter(), queryExit(), readConfig(), UserInfo::refreshList(), DataInfo::refreshList(), Analysis::refreshList(), saveConfig(), DataInfo::showMap(), Analysis::slotAdjustAllStatusIcons(), Analysis::slotAskForLocation(), CompletedWUList::slotSelect(), Options::slotSetRefreshInterval(), Analysis::slotStartAll(), Analysis::slotStopAll(), slotUpdateList(), startClients(), and stopClients(). |
|
|
Returns a pointer to the global options.
Definition at line 181 of file ksetiwatch.h. |
|
||||||||||||
|
Updates the list of S@h locations. Adds or deletes the S@h location loc to/from the main list.
Definition at line 468 of file ksetiwatch.cpp. References QList< SetiLoc >::append(), listModified(), locationList(), and QList< SetiLoc >::remove(). Referenced by Ksetiwatch(). |
|
|
Reimplemented to catch the close event from the dock widget.
Reimplemented from QWidget. Definition at line 187 of file ksetiwatch.cpp. References QWidget::close(). |
|
|
Reimplemented for internal reasons (minimizing to systray, if necessary).
Reimplemented from QWidget. Definition at line 194 of file ksetiwatch.cpp. References KsetiwatchApp::closedBySessionManager(), DockWidget::dock(), QWidget::event(), globalopts, QWidget::hide(), saveConfig(), Analysis::selectedLocation(), and QEvent::type(). |
|
|
Saves the configuration on exit. This method is called whenever the session manager closes the application. It ensures that Ksetiwatch is started in the state it had right before shutting down the KDE session. Reimplemented from KMainWindow. Definition at line 155 of file ksetiwatch.cpp. References QWidget::hide(), and stopClients(). |
|
|
Clears the list of locations on exit. Must be done to prevent a segmentation fault when shutting down Ksetiwatch. Reimplemented from KMainWindow. Definition at line 170 of file ksetiwatch.cpp. References QList< SetiLoc >::clear(), locationList(), and saveConfig(). |
|
|
Starts the SETI@home clients on start of Ksetiwatch. Clients are only started if the respective location has enabled this option. Definition at line 511 of file ksetiwatch.cpp. References QList< SetiLoc >::first(), locationList(), QList< SetiLoc >::next(), SetiLoc::optionStartSeti(), and SetiLoc::startClient(). Referenced by Ksetiwatch(). |
|
|
Stops the SETI@home clients on stop of Ksetiwatch. Clients are only stopped if the respective location has enabled this option. Definition at line 524 of file ksetiwatch.cpp. References QList< SetiLoc >::first(), SetiContainer::isClientRunning(), locationList(), QList< SetiLoc >::next(), SetiLoc::optionStopSeti(), and SetiLoc::stopClient(). Referenced by queryClose(). |
|
|
|
|
Modifies the help text in the status bar.
Definition at line 488 of file ksetiwatch.cpp. References KStatusBar::changeItem(), and KMainWindow::statusBar(). Referenced by Ksetiwatch(). |
|
|
Toggles dock icon on or off when the user makes changes in the options.
Definition at line 551 of file ksetiwatch.cpp. References DockWidget::dock(), globalopts, Analysis::selectedLocation(), and DockWidget::undock(). Referenced by Ksetiwatch(). |
|
||||||||||||
|
This signal is emitted whenever the main list of S@h location has been modified. Arguments are a pointer to the SetiLoc object involved and the particular type of action (see Ksetiwatch::ListId). Referenced by Ksetiwatch(), and slotUpdateList(). |
The documentation for this class was generated from the following files:

