itom 2.2.0
|
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, DatabaseInfo > | parseFile (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, DatabaseInfo > | existingDBs |
QMap< int, DatabaseInfo > | updatableDBs |
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 |
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.
QList< int > ito::WidgetPropHelpDock::checkedIdList [private] |
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)
QMap< int, DatabaseInfo > ito::WidgetPropHelpDock::existingDBs [private] |
List of all databases that are local
int ito::WidgetPropHelpDock::m_downloadTimeout [private] |
Timeout for downloading list of online availlable databases
QMenu* ito::WidgetPropHelpDock::m_pContextMenu [private] |
Rightclick tree menu
QUrl ito::WidgetPropHelpDock::m_serverAdress [private] |
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
QMap< int, DatabaseInfo > ito::WidgetPropHelpDock::updatableDBs [private] |
List of all databases that are aupdatable