Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerExtensionsRestoreWidget.h
Go to the documentation of this file.
1 
2 #ifndef __qSlicerExtensionsRestoreWidget_h
3 #define __qSlicerExtensionsRestoreWidget_h
4 
5 // CTK includes
6 #include <ctkErrorLogLevel.h>
7 
8 // Qt includes
9 #include <QWidget>
10 #include <QVariant>
11 
12 // QtGUI includes
13 #include "qSlicerBaseQTGUIExport.h"
14 
15 class qSlicerExtensionsRestoreWidgetPrivate;
17 
18 class Q_SLICER_BASE_QTGUI_EXPORT qSlicerExtensionsRestoreWidget
19  : public QWidget
20 {
21  Q_OBJECT
22 public:
24  typedef QWidget Superclass;
25 
27  explicit qSlicerExtensionsRestoreWidget(QWidget* parent = 0);
28 
31 
32  Q_INVOKABLE qSlicerExtensionsManagerModel* extensionsManagerModel()const;
33  Q_INVOKABLE void setExtensionsManagerModel(qSlicerExtensionsManagerModel* model);
34 
35  // Actions
36  QAction* selectAllAction() const;
37  QAction* deselectAllAction() const;
38  QAction* installSelectedAction() const;
39 
40  // Events
41  void showEvent(QShowEvent* event);
42 
43 protected slots :
44  void onSelectAllExtensionsTriggered();
45  void onDeselectAllExtensionsTriggered();
46  void onInstallSelectedExtensionsTriggered();
47  void onCheckOnStartupChanged(int state);
48  void onSilentInstallOnStartupChanged(int state);
49  void onProgressChanged(const QString& extensionName, qint64 received, qint64 total);
50  void onInstallationFinished(QString extensionName);
51  void onExtensionHistoryGatheredOnStartup(const QVariantMap&);
52 
53 protected:
54  QScopedPointer<qSlicerExtensionsRestoreWidgetPrivate> d_ptr;
55 
56 private:
57  Q_DECLARE_PRIVATE(qSlicerExtensionsRestoreWidget);
58  Q_DISABLE_COPY(qSlicerExtensionsRestoreWidget);
59 };
60 
61 #endif
QScopedPointer< qSlicerExtensionsRestoreWidgetPrivate > d_ptr