diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e9ae80694875f869892f13f4fcaf1170a00dea41 (patch) | |
tree | aa2f8d8a217e2d376224c8d46b7397b68d35de2d /kommander/editor/functionsimpl.h | |
download | tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/editor/functionsimpl.h')
-rw-r--r-- | kommander/editor/functionsimpl.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/kommander/editor/functionsimpl.h b/kommander/editor/functionsimpl.h new file mode 100644 index 00000000..fab8661d --- /dev/null +++ b/kommander/editor/functionsimpl.h @@ -0,0 +1,61 @@ +/*************************************************************************** + functionsimpl.h - Function browser implementation + ------------------- + copyright : (C) 2004 Michal Rudolf <mrudolf@kdewebdev.org> + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +#ifndef _HAVE_FUNCTIONSIMPL_H_ +#define _HAVE_FUNCTIONSIMPL_H_ + +#include <qstring.h> +#include <qstringlist.h> +#include <qwidget.h> +#include <qdict.h> + +#include "functions.h" +#include "specialinformation.h" + +class FunctionsDialog : public FunctionsDialogBase +{ + Q_OBJECT +public: + FunctionsDialog(QWidget*, const QDict<QWidget>&, bool m_useInternalParser, char* = 0, bool = true); + ~FunctionsDialog(); + // Return current content of text box + QString functionText() const; + // Return current function and parameters + QString currentFunctionText(); +public slots: + // Update list of function availabe for given group + void groupChanged(int); + // Update syntax of chosen function + void functionChanged(int); + // Copy current function and parameters into text box + void copyText(); + // Show widgets for current function's parameters + void showParameters(); +private: + // Calculate current parameters + QString params(); + SpecialFunction m_function; + int m_DCOP; + int m_Slots; + const QDict<QWidget> m_widgetList; + QStringList m_widgetNames; + QStringList m_widgetTypes; + bool m_useInternalParser; + QStringList m_acceptedSlots; + QMap<QString, QString> m_slotList; +}; + + +#endif + |