diff options
Diffstat (limited to 'src/frontend/searchdialog/csearchresultview.h')
-rw-r--r-- | src/frontend/searchdialog/csearchresultview.h | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/src/frontend/searchdialog/csearchresultview.h b/src/frontend/searchdialog/csearchresultview.h index 4d43bbf..071ccac 100644 --- a/src/frontend/searchdialog/csearchresultview.h +++ b/src/frontend/searchdialog/csearchresultview.h @@ -22,77 +22,77 @@ class CReadDisplay; namespace Search { class CSearchResultView : public QTreeWidget { - Q_OBJECT -public: - CSearchResultView(QWidget* parent); - virtual ~CSearchResultView(); - /** Returns the module which is currently used. */ - CSwordModuleInfo* module(); - -protected: // Protected methods - /** - * Initializes the view of this widget. - */ - void initView(); - void initConnections(); - - //from QTreeWidget - virtual QMimeData * mimeData ( const QList<QTreeWidgetItem *> items ) const; - virtual QStringList mimeTypes () const; - -public slots: // Public slots - void saveItems(); - /** - * Setups the list with the given module. - */ - void setupTree(CSwordModuleInfo*); - void setupStrongsTree(CSwordModuleInfo*, QStringList*); - void copyItemsWithText(); - void copyItems(); - void saveItemsWithText(); - /** - * Reimplementation to show the popup menu. - */ - virtual void contextMenuEvent(QContextMenuEvent* event); - -protected slots: // Protected slots - void printItems(); - - /** - * Is connected to the signal which is emitted when a new item was chosen. - */ - void executed(QTreeWidgetItem* current, QTreeWidgetItem*); - -private: - struct { - QMenu* saveMenu; - struct { - QAction* result; - QAction* resultWithText; - } - save; - - QMenu* printMenu; - struct { - QAction* result; - } - print; - - QMenu* copyMenu; - struct { - QAction* result; - QAction* resultWithText; - } - copy; - } - m_actions; - - QMenu* m_popup; - CSwordModuleInfo* m_module; - -signals: // Signals - void keySelected(const QString&); - void keyDeselected(); + Q_OBJECT + public: + CSearchResultView(QWidget* parent); + virtual ~CSearchResultView(); + /** Returns the module which is currently used. */ + CSwordModuleInfo* module(); + + protected: // Protected methods + /** + * Initializes the view of this widget. + */ + void initView(); + void initConnections(); + + //from QTreeWidget + virtual QMimeData * mimeData ( const QList<QTreeWidgetItem *> items ) const; + virtual QStringList mimeTypes () const; + + public slots: // Public slots + void saveItems(); + /** + * Setups the list with the given module. + */ + void setupTree(CSwordModuleInfo*); + void setupStrongsTree(CSwordModuleInfo*, QStringList*); + void copyItemsWithText(); + void copyItems(); + void saveItemsWithText(); + /** + * Reimplementation to show the popup menu. + */ + virtual void contextMenuEvent(QContextMenuEvent* event); + + protected slots: // Protected slots + void printItems(); + + /** + * Is connected to the signal which is emitted when a new item was chosen. + */ + void executed(QTreeWidgetItem* current, QTreeWidgetItem*); + + private: + struct { + QMenu* saveMenu; + struct { + QAction* result; + QAction* resultWithText; + } + save; + + QMenu* printMenu; + struct { + QAction* result; + } + print; + + QMenu* copyMenu; + struct { + QAction* result; + QAction* resultWithText; + } + copy; + } + m_actions; + + QMenu* m_popup; + CSwordModuleInfo* m_module; + + signals: // Signals + void keySelected(const QString&); + void keyDeselected(); }; } //end of namespace Search |