• 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
  • glossary
glossaryview.h
Go to the documentation of this file.
1 /* ****************************************************************************
2  This file is part of Lokalize
3 
4  Copyright (C) 2007-2009 by Nick Shaforostoff <shafff@ukr.net>
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License as
8  published by the Free Software Foundation; either version 2 of
9  the License or (at your option) version 3 or any later version
10  accepted by the membership of KDE e.V. (or its successor approved
11  by the membership of KDE e.V.), which shall act as a proxy
12  defined in Section 14 of version 3 of the license.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program. If not, see <http://www.gnu.org/licenses/>.
21 
22 **************************************************************************** */
23 
24 #ifndef GLOSSARYVIEW_H
25 #define GLOSSARYVIEW_H
26 
27 #include <pos.h>
28 #include <QRegExp>
29 #include <QDockWidget>
30 //#include <QList>
31 class Catalog;
32 class FlowLayout;
33 class QDragEnterEvent;
34 class QDropEvent;
35 class QEvent;
36 class KAction;
37 class QFrame;
38 class QScrollArea;
39 #include <QVector>
40 
41 namespace GlossaryNS {
42 class Glossary;
43 
44 #define GLOSSARY_SHORTCUTS 11
45 class GlossaryView: public QDockWidget
46 {
47  Q_OBJECT
48 
49 public:
50  GlossaryView(QWidget*,Catalog*,const QVector<KAction*>&);
51  ~GlossaryView();
52 
53 
54 // void dragEnterEvent(QDragEnterEvent* event);
55 // void dropEvent(QDropEvent*);
56 // bool event(QEvent*);
57 public slots:
58  //plural messages usually contain the same words...
59  void slotNewEntryDisplayed(DocPosition pos=DocPosition());//a little hacky, but... :)
60 
61 signals:
62  void termInsertRequested(const QString&);
63 
64 private:
65  void clear();
66 
67 private:
68  QScrollArea* m_browser;
69  Catalog* m_catalog;
70  FlowLayout *m_flowLayout;
71  Glossary* m_glossary;
72  QRegExp m_rxClean;
73  QRegExp m_rxSplit;
74  int m_currentIndex;
75 
76  QString m_normTitle;
77  QString m_hasInfoTitle;
78  bool m_hasInfo;
79 
80 };
81 }
82 #endif
GlossaryNS::GlossaryView::GlossaryView
GlossaryView(QWidget *, Catalog *, const QVector< KAction * > &)
Definition: glossaryview.cpp:60
QEvent
QWidget
QDockWidget
pos.h
DocPosition
This struct represents a position in a catalog.
Definition: pos.h:38
QRegExp
GlossaryNS::Glossary
Internal representation of glossary.
Definition: glossary.h:95
GlossaryNS::GlossaryView
Definition: glossaryview.h:45
QDropEvent
GlossaryNS::GlossaryView::termInsertRequested
void termInsertRequested(const QString &)
QWidget::pos
QPoint pos() const
QString
GlossaryNS::GlossaryView::~GlossaryView
~GlossaryView()
Definition: glossaryview.cpp:94
QFrame
GlossaryNS::GlossaryView::slotNewEntryDisplayed
void slotNewEntryDisplayed(DocPosition pos=DocPosition())
Definition: glossaryview.cpp:113
QVector< KAction * >
QDragEnterEvent
Catalog
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
QScrollArea
FlowLayout
used in glossary and kross views
Definition: flowlayout.h:47
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