diff options
Diffstat (limited to 'src/frontend/bookshelfmanager/installpage/btsourcewidget.h')
-rw-r--r-- | src/frontend/bookshelfmanager/installpage/btsourcewidget.h | 107 |
1 files changed, 53 insertions, 54 deletions
diff --git a/src/frontend/bookshelfmanager/installpage/btsourcewidget.h b/src/frontend/bookshelfmanager/installpage/btsourcewidget.h index 812c6ac..46b7d0a 100644 --- a/src/frontend/bookshelfmanager/installpage/btsourcewidget.h +++ b/src/frontend/bookshelfmanager/installpage/btsourcewidget.h @@ -27,60 +27,59 @@ class QTreeWidget; * This widget implements the slots for the source action buttons and * applies the actions to the proper source(s). */ -class BtSourceWidget : public QTabWidget -{ - Q_OBJECT -public: - friend class BtInstallPage; - - BtSourceWidget(BtInstallPage* parent); - virtual ~BtSourceWidget() {} - - BtSourceArea* area(); - QString currentSourceName(); - -public slots: - /** Install button has been clicked. */ - void slotInstall(); - /** "Stop All" button clicked */ - void slotStopInstall(QTreeWidget* treeWidget); - -private: - void initSourceConnections(); - /** Add tabs/views for each source. */ - void initSources(); - - /** Add one source to tabs/stack. */ - void addSource(const QString& sourceName); - -private slots: - - void slotRefresh(); - - void slotRefreshCanceled(); - - void slotRefreshCompleted(int, int); - - /** Edit button clicked. */ - void slotEdit(); - /** Delete button clicked. */ - void slotDelete(); - /** Add button clicked. */ - void slotAdd(); - /** Modules have been checked/unchecked in the view. */ - void slotModuleSelectionChanged(QString sourceName, int selectedCount); - - void slotTabSelected(int index); - void slotInstallAccepted(QList<CSwordModuleInfo*> mi, QTreeWidget* treeWidget); - - - -private: - QStringList m_sourceNameList; - BtInstallPage* m_page; - QProgressDialog* m_progressDialog; // for refreshing - BtInstallMgr* m_currentInstallMgr; // for refreshing - QMap<QString, int> m_selectedModulesCountMap; +class BtSourceWidget : public QTabWidget { + Q_OBJECT + public: + friend class BtInstallPage; + + BtSourceWidget(BtInstallPage* parent); + virtual ~BtSourceWidget() {} + + BtSourceArea* area(); + QString currentSourceName(); + + public slots: + /** Install button has been clicked. */ + void slotInstall(); + /** "Stop All" button clicked */ + void slotStopInstall(QTreeWidget* treeWidget); + + private: + void initSourceConnections(); + /** Add tabs/views for each source. */ + void initSources(); + + /** Add one source to tabs/stack. */ + void addSource(const QString& sourceName); + + private slots: + + void slotRefresh(); + + void slotRefreshCanceled(); + + void slotRefreshCompleted(int, int); + + /** Edit button clicked. */ + void slotEdit(); + /** Delete button clicked. */ + void slotDelete(); + /** Add button clicked. */ + void slotAdd(); + /** Modules have been checked/unchecked in the view. */ + void slotModuleSelectionChanged(QString sourceName, int selectedCount); + + void slotTabSelected(int index); + void slotInstallAccepted(QList<CSwordModuleInfo*> mi, QTreeWidget* treeWidget); + + + + private: + QStringList m_sourceNameList; + BtInstallPage* m_page; + QProgressDialog* m_progressDialog; // for refreshing + BtInstallMgr* m_currentInstallMgr; // for refreshing + QMap<QString, int> m_selectedModulesCountMap; }; #endif |