• 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
  • tm
qaview.h
Go to the documentation of this file.
1 /* ****************************************************************************
2  This file is part of Lokalize
3 
4  Copyright (C) 2011 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 
25 #ifndef QAVIEW_H
26 #define QAVIEW_H
27 
28 #include <QDockWidget>
29 #include <QTreeView>
30 #include <QDomDocument>
31 
32 #include "rule.h"
33 
34 class QaModel;
35 
36 class QaView: public QDockWidget
37 {
38  Q_OBJECT
39 
40 public:
41  QaView(QWidget*);
42  ~QaView();
43 
44  bool loadRules(QString filename=QString());
45  bool saveRules(QString filename=QString());
46  QVector<Rule> rules() const;
47 
48 public slots:
49  void addRule();
50  void removeRule();
51 
52 signals:
53  void rulesChanged();
54 
55 private:
56  QTreeView* m_browser;
57  QaModel* m_qaModel;
58  QString m_filename;
59 
60  QVector<Rule> m_rules;
61 };
62 
63 int findMatchingRule(const QVector<Rule>& rules, const QString& source, const QString& target,
64  QVector<StartLen>& positions);
65 
66 #endif // QAVIEW_H
67 
68 
QaView::rules
QVector< Rule > rules() const
Definition: qaview.cpp:81
QWidget
QaView::~QaView
~QaView()
Definition: qaview.cpp:61
QaView::saveRules
bool saveRules(QString filename=QString())
Definition: qaview.cpp:76
QDockWidget
rule.h
QaView::addRule
void addRule()
Definition: qaview.cpp:87
QaView::loadRules
bool loadRules(QString filename=QString())
Definition: qaview.cpp:65
QaView::removeRule
void removeRule()
Definition: qaview.cpp:94
QString
QaModel
Definition: qamodel.h:32
QVector< Rule >
QTreeView
QaView::rulesChanged
void rulesChanged()
QaView
Definition: qaview.h:36
findMatchingRule
int findMatchingRule(const QVector< Rule > &rules, const QString &source, const QString &target, QVector< StartLen > &positions)
Definition: qaview.cpp:100
QaView::QaView
QaView(QWidget *)
Definition: qaview.cpp:35
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