Warning, file /sdk/lokalize/src/multieditoradaptor.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-2009 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 MULTIEDITORADAPTOR_H 0011 #define MULTIEDITORADAPTOR_H 0012 0013 #ifdef HAVE_CONFIG_H 0014 #include <config.h> 0015 #endif 0016 0017 #include "editoradaptor.h" 0018 0019 /** 0020 * Hack over QDBusAbstractAdaptor to get kross active-editor-adaptor for free 0021 */ 0022 class MultiEditorAdaptor: public EditorAdaptor 0023 { 0024 Q_OBJECT 0025 public: 0026 explicit MultiEditorAdaptor(EditorTab *parent); 0027 ~MultiEditorAdaptor() 0028 { 0029 /*qCWarning(LOKALIZE_LOG)<<"bye bye cruel world";*/ 0030 } 0031 0032 inline EditorTab* editorTab() const 0033 { 0034 return static_cast<EditorTab*>(QObject::parent()); 0035 } 0036 0037 void setEditorTab(EditorTab* e); 0038 0039 private Q_SLOTS: 0040 void handleParentDestroy(QObject* p); 0041 }; 0042 0043 //methosa are defined in lokalizemainwindow.cpp 0044 0045 0046 #endif