Warning, file /sdk/lokalize/src/msgctxtview.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of Lokalize 0003 0004 SPDX-FileCopyrightText: 2007-2014 Nick Shaforostoff <shafff@ukr.net> 0005 SPDX-FileCopyrightText: 2018-2019 Simon Depiets <sdepiets@gmail.com> 0006 0007 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0008 */ 0009 0010 #ifndef MSGCTXTVIEW_H 0011 #define MSGCTXTVIEW_H 0012 0013 #include "pos.h" 0014 #include "note.h" 0015 0016 #include <QMap> 0017 #include <QDockWidget> 0018 #include <KProcess> 0019 0020 class Catalog; 0021 class NoteEditor; 0022 class QTextBrowser; 0023 class QStackedLayout; 0024 0025 class MsgCtxtView: public QDockWidget 0026 { 0027 Q_OBJECT 0028 0029 public: 0030 explicit MsgCtxtView(QWidget*, Catalog*); 0031 ~MsgCtxtView(); 0032 0033 void gotoEntry(const DocPosition&, int selection = 0); 0034 void addNote(DocPosition, const QString& text); 0035 void addTemporaryEntryNote(int entry, const QString& text); 0036 public Q_SLOTS: 0037 void removeErrorNotes(); 0038 void cleanup(); 0039 void languageTool(const QString& text); 0040 void addNoteUI(); 0041 private Q_SLOTS: 0042 void anchorClicked(const QUrl& link); 0043 void noteEditAccepted(); 0044 void noteEditRejected(); 0045 void process(); 0046 void pology(); 0047 void pologyReceivedStandardOutput(); 0048 void pologyReceivedStandardError(); 0049 void pologyHasFinished(); 0050 0051 Q_SIGNALS: 0052 void srcFileOpenRequested(const QString& srcPath, int line); 0053 void escaped(); 0054 0055 private: 0056 QTextBrowser* m_browser; 0057 NoteEditor* m_editor; 0058 QStackedLayout* m_stackedLayout; 0059 0060 Catalog* m_catalog; 0061 QMap< DocPos, QPair<Note, int> > m_unfinishedNotes; //note and its index 0062 QMap< int, QString > m_tempNotes; 0063 QMap< int, QString > m_pologyNotes; 0064 QMap< int, QString > m_languageToolNotes; 0065 int m_selection; 0066 int m_offset; 0067 bool m_hasInfo; 0068 bool m_hasErrorNotes; 0069 DocPos m_entry; 0070 DocPos m_prevEntry; 0071 0072 KProcess* m_pologyProcess; 0073 int m_pologyProcessInProgress; 0074 bool m_pologyStartedReceivingOutput; 0075 QString m_pologyData; 0076 0077 static const QString BR; 0078 }; 0079 0080 0081 0082 #endif