diff options
author | Michele Calgaro <[email protected]> | 2018-09-28 20:41:02 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2018-09-28 20:41:02 +0900 |
commit | e1f0110799282020eba5dac4a1a7bf27a6187f59 (patch) | |
tree | 233f579e814b14f07e0893e18c1c0fd710e57265 /languages/lib/designer_integration/tqtdesignerintegration.h | |
parent | 36d1594949e416e812ed681ed3c84d80649fbf20 (diff) | |
download | tdevelop-e1f0110799282020eba5dac4a1a7bf27a6187f59.tar.gz tdevelop-e1f0110799282020eba5dac4a1a7bf27a6187f59.zip |
Fixed FTBFS caused by qt->tqt renaming.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'languages/lib/designer_integration/tqtdesignerintegration.h')
-rw-r--r-- | languages/lib/designer_integration/tqtdesignerintegration.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/languages/lib/designer_integration/tqtdesignerintegration.h b/languages/lib/designer_integration/tqtdesignerintegration.h new file mode 100644 index 00000000..f76eecba --- /dev/null +++ b/languages/lib/designer_integration/tqtdesignerintegration.h @@ -0,0 +1,81 @@ +/*************************************************************************** + * Copyright (C) 2004 by Alexander Dymo * + * [email protected] * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU Library General Public License as * + * published by the Free Software Foundation; either version 2 of the * + * License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef TQTDESIGNERINTEGRATION_H +#define TQTDESIGNERINTEGRATION_H + +#include <tqmap.h> + +#include <codemodel.h> +#include "kdevdesignerintegration.h" + +class KDevLanguageSupport; +class ImplementationWidget; + +/** +TQt Designer integration base class. +Contains language-independent implementation part of a @ref KDevDesignerIntegration interface. +Ready to use in KDevelop language support plugins. + +Subclasses of this class should reimplement only pure virtual functions in the common case. +*/ +class QtDesignerIntegration : public KDevDesignerIntegration +{ +Q_OBJECT + +public: + QtDesignerIntegration(KDevLanguageSupport *part, ImplementationWidget *impl, + bool classHasDefinitions, const char* name = 0); + virtual ~QtDesignerIntegration(); + +public slots: + virtual void addFunction(const TQString& formName, KInterfaceDesigner::Function function); + virtual void editFunction(const TQString& formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function); + virtual void removeFunction(const TQString& formName, KInterfaceDesigner::Function function); + + virtual void openFunction(const TQString &formName, const TQString &functionName); + + virtual void openSource(const TQString &formName); + + virtual void saveSettings(TQDomDocument dom, TQString path); + virtual void loadSettings(TQDomDocument dom, TQString path); + + bool selectImplementation(const TQString &formName); + +protected: + /**Reimplement this to add a function to a class. This means you need to modify + the source file and add actual code of a function.*/ + virtual void addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass) = 0; + /**Modifies name to be a name of a implementation file for languages that have + separate files for interface and implementation parts of a class. For example, + C++ language support plugin will do: + @code + name.replace(".h", ".cpp"); + @endcode*/ + virtual void processImplementationName(TQString &name); + + //Form file - derived class name + TQMap<TQString, ClassDom> m_implementations; + + KDevLanguageSupport *m_part; + ImplementationWidget *m_impl; + bool m_classHasDefinitions; +}; + +#endif |