• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

  • sources
  • kde-4.14
  • kdesdk
  • lokalize
  • src
  • webquery
webqueryview.h
Go to the documentation of this file.
1 /* ****************************************************************************
2  This file is part of KAider
3 
4  Copyright (C) 2007 by Nick Shaforostoff <shafff@ukr.net>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  In addition, as a special exception, the copyright holders give
21  permission to link the code of this program with any edition of
22  the Qt library by Trolltech AS, Norway (or with modified versions
23  of Qt that use the same license as Qt), and distribute linked
24  combinations including the two. You must obey the GNU General
25  Public License in all respects for all of the code used other than
26  Qt. If you modify this file, you may extend this exception to
27  your version of the file, but you are not obligated to do so. If
28  you do not wish to do so, delete this exception statement from
29  your version.
30 
31 **************************************************************************** */
32 
33 #ifndef WEBQUERYVIEW_H
34 #define WEBQUERYVIEW_H
35 
36 #include <pos.h>
37 #include <QDockWidget>
38 //#include <QList>
39 class Catalog;
40 // class FlowLayout;
41 // class QHBoxLayout;
42 class QSplitter;
43 class KTextBrowser;
44 class QDragEnterEvent;
45 class QDropEvent;
46 class QEvent;
47 class KAction;
48 class Ui_QueryControl;
49 #include <QVector>
50 
51 #define WEBQUERY_SHORTCUTS 10
52 
58 class WebQueryView: public QDockWidget
59 {
60  Q_OBJECT
61 
62 public:
63  WebQueryView(QWidget*,Catalog*,const QVector<KAction*>&);
64  virtual ~WebQueryView();
65 
66 
67 // void dragEnterEvent(QDragEnterEvent* event);
68 // void dropEvent(QDropEvent*);
69 // bool event(QEvent*);
70 
71 public slots:
72  void slotNewEntryDisplayed(const DocPosition&);
73 // void populateWebQueryActions();
74 // void doQuery();
75  void slotUseSuggestion(int i);
76  void addWebQueryResult(const QString&,const QString&);
77 
78  void slotSelectionChanged();
79  void initLater();
80 
81 signals:
82  void textInsertRequested(const QString&);
83 
84 private:
85 // QWidget* m_generalBrowser;
86  Catalog* m_catalog;
87  QSplitter* m_splitter;
88  KTextBrowser* m_browser;
89 // QHBoxLayout* m_boxLayout;
90 // FlowLayout *m_flowLayout;
91  Ui_QueryControl* ui_queryControl;
92 
93  QVector<KAction*> m_actions;//need them to get shortcuts
94  QVector<QString> m_suggestions;
95 
96 // int m_entry; we'll use one from ui_queryControl
97 
98 // QString m_normTitle;
99 // QString m_hasInfoTitle;
100 // bool m_hasInfo;
101 
102 };
103 
104 #endif
QEvent
QWidget
WebQueryView::slotSelectionChanged
void slotSelectionChanged()
Definition: webqueryview.cpp:123
WebQueryView::initLater
void initLater()
Definition: webqueryview.cpp:93
WebQueryView::slotNewEntryDisplayed
void slotNewEntryDisplayed(const DocPosition &)
Definition: webqueryview.cpp:150
QDockWidget
WebQueryView
unlike other views, we keep data like catalog pointer in our child view: ui_queryControl contains our...
Definition: webqueryview.h:58
pos.h
WebQueryView::~WebQueryView
virtual ~WebQueryView()
Definition: webqueryview.cpp:87
DocPosition
This struct represents a position in a catalog.
Definition: pos.h:38
QDropEvent
QString
WebQueryView::slotUseSuggestion
void slotUseSuggestion(int i)
Definition: webqueryview.cpp:163
KTextBrowser
QSplitter
QVector< KAction * >
QDragEnterEvent
WebQueryView::WebQueryView
WebQueryView(QWidget *, Catalog *, const QVector< KAction * > &)
Definition: webqueryview.cpp:64
Catalog
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
WebQueryView::addWebQueryResult
void addWebQueryResult(const QString &, const QString &)
Definition: webqueryview.cpp:171
WebQueryView::textInsertRequested
void textInsertRequested(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal