summaryrefslogtreecommitdiffstats
path: root/kmenuedit/menufile.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kmenuedit/menufile.h
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmenuedit/menufile.h')
-rw-r--r--kmenuedit/menufile.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmenuedit/menufile.h b/kmenuedit/menufile.h
index 61ca3a9f0..c216d486c 100644
--- a/kmenuedit/menufile.h
+++ b/kmenuedit/menufile.h
@@ -19,19 +19,19 @@
#ifndef __menufile_h__
#define __menufile_h__
-#include <qdom.h>
-#include <qstring.h>
+#include <tqdom.h>
+#include <tqstring.h>
class MenuFile
{
public:
- MenuFile(const QString &file);
+ MenuFile(const TQString &file);
~MenuFile();
bool load();
bool save();
void create();
- QString error() { return m_error; } // Returns the last error message
+ TQString error() { return m_error; } // Returns the last error message
enum ActionType {
ADD_ENTRY = 0,
@@ -44,14 +44,14 @@ public:
struct ActionAtom
{
ActionType action;
- QString arg1;
- QString arg2;
+ TQString arg1;
+ TQString arg2;
};
/**
* Create action atom and push it on the stack
*/
- ActionAtom *pushAction(ActionType action, const QString &arg1, const QString &arg2);
+ ActionAtom *pushAction(ActionType action, const TQString &arg1, const TQString &arg2);
/**
* Pop @p atom from the stack.
@@ -76,20 +76,20 @@ public:
*/
bool dirty();
- void addEntry(const QString &menuName, const QString &menuId);
- void removeEntry(const QString &menuName, const QString &menuId);
+ void addEntry(const TQString &menuName, const TQString &menuId);
+ void removeEntry(const TQString &menuName, const TQString &menuId);
- void addMenu(const QString &menuName, const QString &menuFile);
- void moveMenu(const QString &oldMenu, const QString &newMenu);
- void removeMenu(const QString &menuName);
+ void addMenu(const TQString &menuName, const TQString &menuFile);
+ void moveMenu(const TQString &oldMenu, const TQString &newMenu);
+ void removeMenu(const TQString &menuName);
- void setLayout(const QString &menuName, const QStringList &layout);
+ void setLayout(const TQString &menuName, const TQStringList &layout);
/**
* Returns a unique menu-name for a new menu under @p menuName
* inspired by @p newMenu and not part of @p excludeList
*/
- QString uniqueMenuName(const QString &menuName, const QString &newMenu, const QStringList &excludeList);
+ TQString uniqueMenuName(const TQString &menuName, const TQString &newMenu, const TQStringList &excludeList);
protected:
/**
@@ -97,17 +97,17 @@ protected:
* If @p create is true, the menu is created if it doesn't exist yet.
* @return The menu dom-node of @p menuName
*/
- QDomElement findMenu(QDomElement elem, const QString &menuName, bool create);
+ TQDomElement findMenu(TQDomElement elem, const TQString &menuName, bool create);
private:
- QString m_error;
- QString m_fileName;
+ TQString m_error;
+ TQString m_fileName;
- QDomDocument m_doc;
+ TQDomDocument m_doc;
bool m_bDirty;
- QPtrList<ActionAtom> m_actionList;
- QStringList m_removedEntries;
+ TQPtrList<ActionAtom> m_actionList;
+ TQStringList m_removedEntries;
};