KVIrc  4.9.2
DeveloperAPIs
HelpWindow.h
Go to the documentation of this file.
1 #ifndef _HELPWINDOW_H_
2 #define _HELPWINDOW_H_
3 //=============================================================================
4 //
5 // File : HelpWindow.h
6 // Creation date : Fri Aug 11 2000 18:05:59 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "KviWindow.h"
28 #include "KviCString.h"
29 #include "KviTalVBox.h"
30 #include "KviTalListWidget.h"
31 #include "kvi_settings.h"
32 
33 #include <QTabWidget>
34 #ifdef COMPILE_WEBKIT_SUPPORT
35 #include <QtWebKitWidgets/QWebView>
36 #else
37 class QTextBrowser;
38 #endif
39 
40 #include <QLineEdit>
41 
42 class QProgressBar;
43 class QPushButton;
44 
45 class HelpWidget;
46 
47 class HelpWindow : public KviWindow
48 {
49  Q_OBJECT
50 public:
51  HelpWindow(const char * name);
52  ~HelpWindow();
53 
54 protected:
57  QTabWidget * m_pTabWidget;
61  QPushButton * m_pCancelButton;
62  QProgressBar * m_pProgressBar;
63 
65  QLineEdit * m_pIndexSearch;
66  QStringList m_foundDocs;
67  QStringList m_terms;
69  QLineEdit * m_pTermsEdit;
70  QPushButton * m_pBtnRefreshIndex;
71 
72 public:
74 protected:
75  virtual QPixmap * myIconPtr();
76  virtual void fillCaptionBuffers();
77  virtual void resizeEvent(QResizeEvent * e);
78  virtual void saveProperties(KviConfigurationFile * cfg);
79  virtual void loadProperties(KviConfigurationFile * cfg);
80 
81 public:
82 #ifdef COMPILE_WEBKIT_SUPPORT
83  QWebView * textBrowser();
84 #else
85  QTextBrowser * textBrowser();
86 #endif
87 public slots:
88  void indexSelected(QListWidgetItem *);
89  void searchInIndex(const QString & s);
90  void showIndexTopic();
91  void startSearch();
92  void searchSelected(QListWidgetItem *);
93  void refreshIndex();
94 
95  void initialSetup();
96  void indexingStart(int iNum);
97  void indexingProgress(int iNum);
98  void indexingEnd();
99 };
100 
101 #endif //_KVI_HELPWINDOW_H_
QTabWidget * m_pTabWidget
Definition: HelpWindow.h:57
QProgressBar * m_pProgressBar
Definition: HelpWindow.h:62
void searchInIndex(const QString &s)
Definition: HelpWindow.cpp:296
Definition: KviTalListWidget.h:35
Toolkit Abstraction Layer: hbox class.
Definition: KviTalHBox.h:44
void indexingEnd()
Definition: HelpWindow.cpp:154
void initialSetup()
Definition: HelpWindow.cpp:117
KviTalListWidget * m_pIndexListWidget
Definition: HelpWindow.h:64
QPushButton * m_pBtnRefreshIndex
Definition: HelpWindow.h:70
virtual void loadProperties(KviConfigurationFile *cfg)
Definition: HelpWindow.cpp:172
KviTalListWidget * m_pResultBox
Definition: HelpWindow.h:68
QTextBrowser * textBrowser()
Definition: HelpWindow.cpp:278
Class for vertical box.
HelpWindow(const char *name)
Definition: HelpWindow.cpp:51
Definition: HelpWindow.h:47
QPushButton * m_pCancelButton
Definition: HelpWindow.h:61
Definition: KviConfigurationFile.h:48
HelpWidget * m_pHelpWidget
Definition: HelpWindow.h:55
QStringList m_terms
Definition: HelpWindow.h:67
HelpWidget * helpWidget()
Definition: HelpWindow.h:73
Definition: HelpWidget.h:44
void indexSelected(QListWidgetItem *)
Definition: HelpWindow.cpp:313
KviTalHBox * m_pBottomLayout
Definition: HelpWindow.h:60
#define e
Definition: detector.cpp:69
void indexingProgress(int iNum)
Definition: HelpWindow.cpp:149
void startSearch()
Definition: HelpWindow.cpp:187
virtual QPixmap * myIconPtr()
Definition: HelpWindow.cpp:337
void refreshIndex()
Definition: HelpWindow.cpp:182
char s char s s
Definition: KviIrcNumericCodes.h:391
void indexingStart(int iNum)
Definition: HelpWindow.cpp:142
~HelpWindow()
Definition: HelpWindow.cpp:112
virtual void resizeEvent(QResizeEvent *e)
Definition: HelpWindow.cpp:342
virtual void fillCaptionBuffers()
Definition: HelpWindow.cpp:347
QLineEdit * m_pTermsEdit
Definition: HelpWindow.h:69
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
Toolkit Abstraction Layer: vbox class.
Definition: KviTalVBox.h:44
KviTalVBox * m_pIndexTab
Definition: HelpWindow.h:58
QString name()
Definition: KviRuntimeInfo.cpp:655
KviTalVBox * m_pToolBar
Definition: HelpWindow.h:56
Contains the KviWindow class.
QStringList m_foundDocs
Definition: HelpWindow.h:66
virtual void saveProperties(KviConfigurationFile *cfg)
Definition: HelpWindow.cpp:166
This file contains compile time settings.
void showIndexTopic()
Definition: HelpWindow.cpp:284
KviTalVBox * m_pSearchTab
Definition: HelpWindow.h:59
QLineEdit * m_pIndexSearch
Definition: HelpWindow.h:65
void searchSelected(QListWidgetItem *)
Definition: HelpWindow.cpp:325