• 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
msgctxtview.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 MSGCTXTVIEW_H
25 #define MSGCTXTVIEW_H
26 
27 #include "pos.h"
28 #include "note.h"
29 
30 #include <QMap>
31 #include <QDockWidget>
32 
33 class KTextBrowser;
34 class Catalog;
35 class NoteEditor;
36 class QStackedLayout;
37 
38 class MsgCtxtView: public QDockWidget
39 {
40  Q_OBJECT
41 
42 public:
43  MsgCtxtView(QWidget*,Catalog*);
44  ~MsgCtxtView();
45 
46  void gotoEntry(const DocPosition&, int selection=0);
47  void addNote(DocPosition, const QString& text);
48  void addTemporaryEntryNote(int entry, const QString& text);
49 public slots:
50  void removeErrorNotes();
51  void cleanup();
52 
53  void addNoteUI();
54 private slots:
55  void anchorClicked(const QUrl& link);
56  void noteEditAccepted();
57  void noteEditRejected();
58  void process();
59 
60 signals:
61  void srcFileOpenRequested(const QString& srcPath, int line);
62  void escaped();
63 
64 private:
65  KTextBrowser* m_browser;
66  NoteEditor* m_editor;
67  QStackedLayout* m_stackedLayout;
68 
69  Catalog* m_catalog;
70  QMap< DocPos,QPair<Note,int> > m_unfinishedNotes;//note and its index
71  QMap< int,QString > m_tempNotes;
72  char m_selection;
73  char m_offset;
74  bool m_hasInfo;
75  bool m_hasErrorNotes;
76  DocPos m_entry;
77  DocPos m_prevEntry;
78 };
79 
80 
81 
82 #endif
MsgCtxtView::gotoEntry
void gotoEntry(const DocPosition &, int selection=0)
Definition: msgctxtview.cpp:78
QWidget
MsgCtxtView::addNote
void addNote(DocPosition, const QString &text)
Definition: msgctxtview.cpp:228
QDockWidget
MsgCtxtView::cleanup
void cleanup()
Definition: msgctxtview.cpp:72
pos.h
QMap
MsgCtxtView::removeErrorNotes
void removeErrorNotes()
Definition: msgctxtview.cpp:241
DocPosition
This struct represents a position in a catalog.
Definition: pos.h:38
MsgCtxtView::srcFileOpenRequested
void srcFileOpenRequested(const QString &srcPath, int line)
MsgCtxtView::~MsgCtxtView
~MsgCtxtView()
Definition: msgctxtview.cpp:68
MsgCtxtView::addTemporaryEntryNote
void addTemporaryEntryNote(int entry, const QString &text)
Definition: msgctxtview.cpp:235
NoteEditor
Definition: noteeditor.h:39
QString
MsgCtxtView
Definition: msgctxtview.h:38
QUrl
KTextBrowser
MsgCtxtView::addNoteUI
void addNoteUI()
Definition: msgctxtview.cpp:166
note.h
QStackedLayout
MsgCtxtView::escaped
void escaped()
DocPos
simpler version of DocPosition for use in QMap
Definition: pos.h:82
Catalog
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
MsgCtxtView::MsgCtxtView
MsgCtxtView(QWidget *, Catalog *)
Definition: msgctxtview.cpp:49
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