• 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
  • mergemode
mergeview.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 MERGEVIEW_H
25 #define MERGEVIEW_H
26 
27 #include "pos.h"
28 #include "mergecatalog.h"
29 
30 #include <kurl.h>
31 
32 #include <QDockWidget>
33 class KTextEdit;
34 class Catalog;
35 class MergeCatalog;
36 class QDragEnterEvent;
37 class QDropEvent;
38 
39 
40 
41 class MergeView: public QDockWidget
42 {
43  Q_OBJECT
44 
45 public:
46  MergeView(QWidget*,Catalog*,bool primary);
47  virtual ~MergeView();
48 
49  void dragEnterEvent(QDragEnterEvent* event);
50  void dropEvent(QDropEvent*);
51  KUrl url();
52 
53 private:
58  int pluralFormsAvailableForward();
59  int pluralFormsAvailableBackward();
60 
61  bool event(QEvent *event);
62 
63 public slots:
64  void mergeOpen(KUrl url=KUrl());
65  void cleanup();
66  void slotNewEntryDisplayed(const DocPosition&);
67  void slotUpdate(const DocPosition&);
68 
69  void gotoNextChanged(bool approvedOnly=false);
70  void gotoNextChangedApproved();
71  void gotoPrevChanged();
72  void mergeAccept();
73  void mergeAcceptAllForEmpty();
74  void mergeBack();
75 
76 signals:
77 // //we connect it to our internal mergeCatalog to remove entry from index
78 // void entryModified(uint);
79 
80  void signalPriorChangedAvailable(bool);
81  void signalNextChangedAvailable(bool);
82  void signalEntryWithMergeDisplayed(bool);
83 
84  void gotoEntry(const DocPosition&,int);
85 
86  void mergeCatalogPointerChanged(MergeCatalog* mergeCatalog);
87 
88 private:
89  KTextEdit* m_browser;
90  Catalog* m_baseCatalog;
91  MergeCatalog* m_mergeCatalog;
92  DocPosition m_pos;
93  QString m_normTitle;
94  QString m_hasInfoTitle;
95  bool m_hasInfo;
96  bool m_primary;
97 
98 };
99 
100 #endif
MergeView::signalPriorChangedAvailable
void signalPriorChangedAvailable(bool)
QEvent
MergeCatalog
Merge source container.
Definition: mergecatalog.h:71
QWidget
MergeView::mergeBack
void mergeBack()
Definition: mergeview.cpp:340
QDockWidget
pos.h
MergeView::gotoEntry
void gotoEntry(const DocPosition &, int)
MergeView::~MergeView
virtual ~MergeView()
Definition: mergeview.cpp:70
MergeView::dropEvent
void dropEvent(QDropEvent *)
Definition: mergeview.cpp:89
MergeView::url
KUrl url()
Definition: mergeview.cpp:76
MergeView::gotoNextChangedApproved
void gotoNextChangedApproved()
Definition: mergeview.cpp:309
MergeView::slotNewEntryDisplayed
void slotNewEntryDisplayed(const DocPosition &)
Definition: mergeview.cpp:101
MergeView::gotoPrevChanged
void gotoPrevChanged()
Definition: mergeview.cpp:286
DocPosition
This struct represents a position in a catalog.
Definition: pos.h:38
MergeView::mergeOpen
void mergeOpen(KUrl url=KUrl())
Definition: mergeview.cpp:187
MergeView::gotoNextChanged
void gotoNextChanged(bool approvedOnly=false)
Definition: mergeview.cpp:314
QDropEvent
MergeView::mergeAccept
void mergeAccept()
Definition: mergeview.cpp:348
MergeView
Definition: mergeview.h:41
QString
mergecatalog.h
MergeView::slotUpdate
void slotUpdate(const DocPosition &)
Definition: mergeview.cpp:95
QDragEnterEvent
MergeView::signalEntryWithMergeDisplayed
void signalEntryWithMergeDisplayed(bool)
MergeView::mergeAcceptAllForEmpty
void mergeAcceptAllForEmpty()
Definition: mergeview.cpp:361
MergeView::MergeView
MergeView(QWidget *, Catalog *, bool primary)
Definition: mergeview.cpp:46
Catalog
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
MergeView::signalNextChangedAvailable
void signalNextChangedAvailable(bool)
MergeView::mergeCatalogPointerChanged
void mergeCatalogPointerChanged(MergeCatalog *mergeCatalog)
MergeView::cleanup
void cleanup()
Definition: mergeview.cpp:174
KTextEdit
MergeView::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event)
Definition: mergeview.cpp:83
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