itom 1.3.0
ito::WidgetPropHelpDock Class Reference
Inheritance diagram for ito::WidgetPropHelpDock:
ito::AbstractPropertyPageWidget

List of all members.

Classes

struct  DatabaseInfo

Public Member Functions

 WidgetPropHelpDock (QWidget *parent=NULL)

Protected Member Functions

bool event (QEvent *event)

Private Types

enum  UpdateState {
  stateUnknown = 0, stateUpToDate, stateUpdateAvailable, stateDownloadAvailable,
  stateWrongScheme
}

Private Slots

void on_treeWidgetDB_itemChanged (QTreeWidgetItem *item, int column)
void on_checkModules_stateChanged (int state)
void on_checkFilters_stateChanged (int state)
void on_checkWidgets_stateChanged (int state)
void on_checkDataIO_stateChanged (int state)
void on_spinTimeout_valueChanged (int i)
void refreshButtonClicked ()
void mnuDownloadUpdate ()
void mnuLocateOnDisk ()
void mnuRemoveDatabase ()
void treeWidgetContextMenuRequested (const QPoint &pos)
void downloadTimeoutReached ()

Private Member Functions

void readSettings ()
void writeSettings ()
void getHelpList ()
void refreshExistingDBs ()
void initMenus ()
void compareDatabaseVersions ()
void updateCheckedIdList ()
void setExistingDBsChecks ()
QPair< int, DatabaseInfoparseFile (QXmlStreamReader &xml)
void updateTreeWidget ()
void refreshUpdatableDBs ()
void setUpdateColumnText (QTreeWidgetItem *widget)
void showInGraphicalShell (const QString &filePath)
void showErrorMessage (const QString &error)

Private Attributes

Ui::WidgetPropHelpDock ui
QString m_pdbPath
bool m_listChanged
bool m_treeIsUpdating
bool m_downloadTimeoutReached
int m_downloadTimeout
QUrl m_serverAdress
QMap< int, DatabaseInfoexistingDBs
QMap< int, DatabaseInfoupdatableDBs
QList< int > checkedIdList
QMenu * m_pContextMenu
std::map< QString, QAction * > contextMenuActions
QString m_xmlFileName

Static Private Attributes

static const int m_urID = Qt::UserRole + 1
static const int m_urUD = Qt::UserRole + 2
static const int m_urFD = Qt::UserRole + 3
static const int SCHEME_ID = 1

Member Function Documentation

void ito::WidgetPropHelpDock::readSettings ( ) [private, virtual]

This method is called at startup of the property dialog. Read the setting file using QSetting in order to initialize your property widget (this method must be overwritten)

Implements ito::AbstractPropertyPageWidget.

void ito::WidgetPropHelpDock::writeSettings ( ) [private, virtual]

This method is called at shutdown of the property dialog (only if apply or ok has been clicked). Apply your settings and write it to the setting file using QSetting (this method must be overwritten)

Implements ito::AbstractPropertyPageWidget.


Member Data Documentation

Contains IDs of Databases that are checked and displayed

std::map<QString,QAction*> ito::WidgetPropHelpDock::contextMenuActions [private]

Actions for the right click context menu in the tree (update, locate, etc)

List of all databases that are local

Timeout for downloading list of online availlable databases

Rightclick tree menu

Serveradress where the online databases are stored (Hardcoded)

const int ito::WidgetPropHelpDock::m_urFD = Qt::UserRole + 3 [static, private]

Path (FileDir)

const int ito::WidgetPropHelpDock::m_urID = Qt::UserRole + 1 [static, private]

ID

const int ito::WidgetPropHelpDock::m_urUD = Qt::UserRole + 2 [static, private]

Updatestate

const int ito::WidgetPropHelpDock::SCHEME_ID = 1 [static, private]

Update available

List of all databases that are aupdatable


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends