• 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
  • cataloglistview
cataloglistview.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 CATALOGLISTVIEW_H
25 #define CATALOGLISTVIEW_H
26 
27 #include "pos.h"
28 #include "mergecatalog.h"
29 
30 #include <QDockWidget>
31 class QTreeView;
32 class CatalogTreeFilterModel;
33 class CatalogTreeModel;
34 class Catalog;
35 class KLineEdit;
36 class QMenu;
37 class QAction;
38 class QModelIndex;
39 class CatalogTreeView;
40 
41 class CatalogView: public QDockWidget
42 {
43  Q_OBJECT
44 
45 public:
46  CatalogView(QWidget*,Catalog*);
47  ~CatalogView();
48 
49  void setEntryFilteredOut(int entry, bool filteredOut);
50 
51  int nextEntry();
52  int prevEntry();
53  int firstEntry();
54  int lastEntry();
55 private:
56  int siblingEntry(int step);
57 
58 public slots:
59  void slotNewEntryDisplayed(const DocPosition&);
60  void setEntriesFilteredOut(bool filteredOut=false);
61  void setFocus();
62  void reset();
63  void setMergeCatalogPointer(MergeCatalog* pointer);
64 
65 signals:
66  void gotoEntry(const DocPosition&, int selection);
67  void escaped();
68 
69 private slots:
70  void slotItemActivated(const QModelIndex&);
71  void setFilterRegExp();
72  void fillFilterOptionsMenu();
73  void filterOptionToggled(QAction*);
74 
75 private:
76  CatalogTreeView* m_browser;
77  KLineEdit* m_lineEdit;
78  QMenu* m_filterOptionsMenu;
79  CatalogTreeModel* m_model;
80  CatalogTreeFilterModel* m_proxyModel;
81 };
82 
83 #endif
QModelIndex
MergeCatalog
Merge source container.
Definition: mergecatalog.h:71
QWidget
CatalogView::nextEntry
int nextEntry()
Definition: cataloglistview.cpp:273
QDockWidget
CatalogView::reset
void reset()
Definition: cataloglistview.cpp:239
CatalogView
Definition: cataloglistview.h:41
pos.h
CatalogView::prevEntry
int prevEntry()
Definition: cataloglistview.cpp:278
CatalogView::CatalogView
CatalogView(QWidget *, Catalog *)
Definition: cataloglistview.cpp:69
CatalogView::setFocus
void setFocus()
Definition: cataloglistview.cpp:143
DocPosition
This struct represents a position in a catalog.
Definition: pos.h:38
CatalogView::setMergeCatalogPointer
void setMergeCatalogPointer(MergeCatalog *pointer)
Definition: cataloglistview.cpp:248
CatalogTreeModel
MVC wrapper for Catalog.
Definition: catalogmodel.h:41
CatalogView::lastEntry
int lastEntry()
Definition: cataloglistview.cpp:296
mergecatalog.h
QMenu
CatalogTreeFilterModel
Definition: catalogmodel.h:97
QTreeView
CatalogView::slotNewEntryDisplayed
void slotNewEntryDisplayed(const DocPosition &)
Definition: cataloglistview.cpp:149
CatalogView::escaped
void escaped()
QAction
CatalogView::gotoEntry
void gotoEntry(const DocPosition &, int selection)
Catalog
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
CatalogView::setEntryFilteredOut
void setEntryFilteredOut(int entry, bool filteredOut)
Definition: cataloglistview.cpp:302
CatalogView::~CatalogView
~CatalogView()
Definition: cataloglistview.cpp:136
CatalogView::firstEntry
int firstEntry()
Definition: cataloglistview.cpp:291
CatalogView::setEntriesFilteredOut
void setEntriesFilteredOut(bool filteredOut=false)
Definition: cataloglistview.cpp:307
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 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