• 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
lokalizesubwindowbase.h
Go to the documentation of this file.
1 /* ****************************************************************************
2  This file is part of Lokalize
3 
4  Copyright (C) 2008 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 LOKALIZESUBWINDOWBASE_H
25 #define LOKALIZESUBWINDOWBASE_H
26 
27 #include <QHash>
28 #include <QString>
29 #include <KMainWindow>
30 #include <KXMLGUIClient>
31 
32 #include <kurl.h>
33 #include "actionproxy.h"
34 
35 
39 class LokalizeSubwindowBase: public KMainWindow
40 {
41 Q_OBJECT
42 public:
43  LokalizeSubwindowBase(QWidget* parent):KMainWindow(parent){}
44  virtual ~LokalizeSubwindowBase(){emit aboutToBeClosed();}
45  virtual KXMLGUIClient* guiClient()=0;
46 
47  //interface for LokalizeMainWindow
48  virtual void hideDocks()=0;
49  virtual void showDocks()=0;
50  //bool queryClose();
51 
52  virtual KUrl currentUrl(){return KUrl();}
53 
54 protected:
55  void reflectNonApprovedCount(int count, int total);
56  void reflectUntranslatedCount(int count, int total);
57 
58 signals:
59  void aboutToBeClosed();
60 
61 public:
62  //QHash<QString,ActionProxy*> supportedActions;
63  StatusBarProxy statusBarItems;
64 
65 };
66 
70 class LokalizeSubwindowBase2: public LokalizeSubwindowBase, public KXMLGUIClient
71 {
72 public:
73  LokalizeSubwindowBase2(QWidget* parent): LokalizeSubwindowBase(parent),KXMLGUIClient(){}
74  virtual ~LokalizeSubwindowBase2(){};
75 
76  KXMLGUIClient* guiClient(){return (KXMLGUIClient*)this;}
77 };
78 
79 
80 #endif
LokalizeSubwindowBase2::LokalizeSubwindowBase2
LokalizeSubwindowBase2(QWidget *parent)
Definition: lokalizesubwindowbase.h:73
QWidget
LokalizeSubwindowBase::LokalizeSubwindowBase
LokalizeSubwindowBase(QWidget *parent)
Definition: lokalizesubwindowbase.h:43
KXMLGUIClient
LokalizeSubwindowBase::showDocks
virtual void showDocks()=0
LokalizeSubwindowBase::aboutToBeClosed
void aboutToBeClosed()
LokalizeSubwindowBase::currentUrl
virtual KUrl currentUrl()
Definition: lokalizesubwindowbase.h:52
LokalizeSubwindowBase::reflectNonApprovedCount
void reflectNonApprovedCount(int count, int total)
Definition: editortab.cpp:174
LokalizeSubwindowBase::guiClient
virtual KXMLGUIClient * guiClient()=0
KMainWindow
LokalizeSubwindowBase2::~LokalizeSubwindowBase2
virtual ~LokalizeSubwindowBase2()
Definition: lokalizesubwindowbase.h:74
LokalizeSubwindowBase::hideDocks
virtual void hideDocks()=0
LokalizeSubwindowBase::reflectUntranslatedCount
void reflectUntranslatedCount(int count, int total)
Definition: editortab.cpp:182
StatusBarProxy
Definition: actionproxy.h:75
LokalizeSubwindowBase
Interface for LokalizeMainWindow.
Definition: lokalizesubwindowbase.h:39
LokalizeSubwindowBase::statusBarItems
StatusBarProxy statusBarItems
Definition: lokalizesubwindowbase.h:63
LokalizeSubwindowBase::~LokalizeSubwindowBase
virtual ~LokalizeSubwindowBase()
Definition: lokalizesubwindowbase.h:44
LokalizeSubwindowBase2
C++ casting workaround.
Definition: lokalizesubwindowbase.h:70
actionproxy.h
LokalizeSubwindowBase2::guiClient
KXMLGUIClient * guiClient()
Definition: lokalizesubwindowbase.h:76
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