• 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
phaseswindow.h
Go to the documentation of this file.
1 /* ****************************************************************************
2  This file is part of Lokalize
3 
4  Copyright (C) 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 PHASESWINDOW_H
25 #define PHASESWINDOW_H
26 
27 
28 #include "phase.h"
29 #include "note.h"
30 
31 #include <KDialog>
32 #include <QModelIndex>
33 #include <QVector>
34 #include <QMap>
35 
36 class QStackedLayout;
37 class NoteEditor;
38 class PhasesModel;
39 class MyTreeView;
40 class KTextBrowser;
41 class PhasesWindow: public KDialog
42 {
43 Q_OBJECT
44 public:
45  PhasesWindow(Catalog* catalog, QWidget *parent);
46  ~PhasesWindow(){}
47 
48 private slots:
49  void displayPhaseNotes(const QModelIndex& current);
50  void addPhase();
51  void handleResult();
52  void anchorClicked(QUrl);
53  void noteEditAccepted();
54  void noteEditRejected();
55 
56 private:
57  Catalog* m_catalog;
58  PhasesModel* m_model;
59  MyTreeView* m_view;
60  KTextBrowser* m_browser;
61  NoteEditor* m_editor;
62  QWidget* m_noteView;
63  QStackedLayout* m_stackedLayout;
64 
65  QMap<QString, QVector<Note> > m_phaseNotes;
66 };
67 
68 
69 #include <QTreeView>
70 
71 class MyTreeView: public QTreeView
72 {
73 Q_OBJECT
74 public:
75  MyTreeView(QWidget* parent):QTreeView(parent){}
76  ~MyTreeView(){}
77 
78 signals:
79  void currentIndexChanged(const QModelIndex& current);
80 private:
81  void currentChanged(const QModelIndex& current, const QModelIndex&){emit currentIndexChanged(current);}
82 };
83 
84 
85 
86 
87 #endif
88 
QModelIndex
QWidget
MyTreeView::~MyTreeView
~MyTreeView()
Definition: phaseswindow.h:76
phase.h
QMap
PhasesWindow::~PhasesWindow
~PhasesWindow()
Definition: phaseswindow.h:46
PhasesWindow::PhasesWindow
PhasesWindow(Catalog *catalog, QWidget *parent)
Definition: phaseswindow.cpp:191
NoteEditor
Definition: noteeditor.h:39
MyTreeView
Definition: phaseswindow.h:71
QUrl
KTextBrowser
QTreeView
MyTreeView::currentIndexChanged
void currentIndexChanged(const QModelIndex &current)
note.h
QStackedLayout
Catalog
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
MyTreeView::MyTreeView
MyTreeView(QWidget *parent)
Definition: phaseswindow.h:75
QObject::parent
QObject * parent() const
PhasesWindow
Definition: phaseswindow.h:41
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