summaryrefslogtreecommitdiffstats
path: root/konqueror/keditbookmarks/commands.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 /konqueror/keditbookmarks/commands.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 'konqueror/keditbookmarks/commands.h')
-rw-r--r--konqueror/keditbookmarks/commands.h148
1 files changed, 74 insertions, 74 deletions
diff --git a/konqueror/keditbookmarks/commands.h b/konqueror/keditbookmarks/commands.h
index 61363f9dd..3df5d3acf 100644
--- a/konqueror/keditbookmarks/commands.h
+++ b/konqueror/keditbookmarks/commands.h
@@ -23,7 +23,7 @@
#include <kcommand.h>
#include <kbookmark.h>
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
// Interface adds the affectedBookmarks method
// Any class should on call add those bookmarks which are
@@ -35,82 +35,82 @@ class IKEBCommand
public:
IKEBCommand() {};
virtual ~IKEBCommand() {};
- virtual QString affectedBookmarks() const = 0;
- virtual QString currentAddress() const { return QString::null; }
+ virtual TQString affectedBookmarks() const = 0;
+ virtual TQString currentAddress() const { return TQString::null; }
};
class KEBMacroCommand : public KMacroCommand, public IKEBCommand
{
public:
- KEBMacroCommand(const QString &name)
+ KEBMacroCommand(const TQString &name)
: KMacroCommand(name) {};
virtual ~KEBMacroCommand() {};
- virtual QString affectedBookmarks() const;
+ virtual TQString affectedBookmarks() const;
};
class DeleteManyCommand : public KEBMacroCommand
{
public:
- DeleteManyCommand(const QString &name, const QValueList<QString> & addresses);
+ DeleteManyCommand(const TQString &name, const TQValueList<TQString> & addresses);
virtual ~DeleteManyCommand() {};
- virtual QString currentAddress() const;
+ virtual TQString currentAddress() const;
private:
- QString prevOrParentAddress(QString addr);
- QString preOrderNextAddress(QString addr);
- bool isConsecutive(const QValueList<QString> & addresses);
- QString m_currentAddress;
+ TQString prevOrParentAddress(TQString addr);
+ TQString preOrderNextAddress(TQString addr);
+ bool isConsecutive(const TQValueList<TQString> & addresses);
+ TQString m_currentAddress;
};
class CreateCommand : public KCommand, public IKEBCommand
{
public:
// separator
- CreateCommand(const QString &address)
+ CreateCommand(const TQString &address)
: KCommand(), m_to(address),
- m_group(false), m_separator(true), m_originalBookmark(QDomElement())
+ m_group(false), m_separator(true), m_originalBookmark(TQDomElement())
{ ; }
// bookmark
- CreateCommand(const QString &address,
- const QString &text, const QString &iconPath,
+ CreateCommand(const TQString &address,
+ const TQString &text, const TQString &iconPath,
const KURL &url)
: KCommand(), m_to(address), m_text(text), m_iconPath(iconPath), m_url(url),
- m_group(false), m_separator(false), m_originalBookmark(QDomElement())
+ m_group(false), m_separator(false), m_originalBookmark(TQDomElement())
{ ; }
// folder
- CreateCommand(const QString &address,
- const QString &text, const QString &iconPath,
+ CreateCommand(const TQString &address,
+ const TQString &text, const TQString &iconPath,
bool open)
: KCommand(), m_to(address), m_text(text), m_iconPath(iconPath),
- m_group(true), m_separator(false), m_open(open), m_originalBookmark(QDomElement())
+ m_group(true), m_separator(false), m_open(open), m_originalBookmark(TQDomElement())
{ ; }
// clone existing bookmark
- CreateCommand(const QString &address,
- const KBookmark &original, const QString &name = QString::null)
+ CreateCommand(const TQString &address,
+ const KBookmark &original, const TQString &name = TQString::null)
: KCommand(), m_to(address), m_group(false), m_separator(false),
m_open(false), m_originalBookmark(original), m_mytext(name)
{ ; }
- QString finalAddress() const;
+ TQString finalAddress() const;
virtual ~CreateCommand() { ; }
virtual void execute();
virtual void unexecute();
- virtual QString name() const;
- virtual QString affectedBookmarks() const;
- virtual QString currentAddress() const;
+ virtual TQString name() const;
+ virtual TQString affectedBookmarks() const;
+ virtual TQString currentAddress() const;
private:
- QString m_to;
- QString m_text;
- QString m_iconPath;
+ TQString m_to;
+ TQString m_text;
+ TQString m_iconPath;
KURL m_url;
bool m_group:1;
bool m_separator:1;
bool m_open:1;
KBookmark m_originalBookmark;
- QString m_mytext;
+ TQString m_mytext;
};
class EditCommand : public KCommand, public IKEBCommand
@@ -119,82 +119,82 @@ public:
struct Edition {
Edition() { ; } // needed for QValueList
- Edition(const QString &a, const QString &v) : attr(a), value(v) {}
- QString attr;
- QString value;
+ Edition(const TQString &a, const TQString &v) : attr(a), value(v) {}
+ TQString attr;
+ TQString value;
};
// change one attribute
- EditCommand(const QString &address, Edition edition, const QString &name = QString::null)
+ EditCommand(const TQString &address, Edition edition, const TQString &name = TQString::null)
: KCommand(), m_address(address), m_mytext(name)
{
m_editions.append(edition);
}
// change multiple attributes
- EditCommand(const QString &address,
- const QValueList<Edition> &editions,
- const QString &name = QString::null)
+ EditCommand(const TQString &address,
+ const TQValueList<Edition> &editions,
+ const TQString &name = TQString::null)
: KCommand(), m_address(address), m_editions(editions), m_mytext(name)
{ ; }
- void modify(const QString & a, const QString & v);
+ void modify(const TQString & a, const TQString & v);
virtual ~EditCommand() { ; }
virtual void execute();
virtual void unexecute();
- virtual QString name() const;
- virtual QString affectedBookmarks() const;
+ virtual TQString name() const;
+ virtual TQString affectedBookmarks() const;
private:
- QString m_address;
- QValueList<Edition> m_editions;
- QValueList<Edition> m_reverseEditions;
- QString m_mytext;
+ TQString m_address;
+ TQValueList<Edition> m_editions;
+ TQValueList<Edition> m_reverseEditions;
+ TQString m_mytext;
};
class NodeEditCommand : public KCommand, public IKEBCommand
{
public:
- NodeEditCommand(const QString &address,
- const QString &newText,
- const QString &nodeName)
+ NodeEditCommand(const TQString &address,
+ const TQString &newText,
+ const TQString &nodeName)
: KCommand(), m_address(address), m_newText(newText), m_nodename(nodeName)
{ ; }
- void modify(const QString & newText);
+ void modify(const TQString & newText);
virtual ~NodeEditCommand() { ; }
virtual void execute();
virtual void unexecute();
- virtual QString affectedBookmarks() const;
- virtual QString name() const;
- static QString getNodeText(KBookmark bk, const QStringList &nodehier);
- static QString setNodeText(KBookmark bk, const QStringList &nodehier,
- QString newValue);
+ virtual TQString affectedBookmarks() const;
+ virtual TQString name() const;
+ static TQString getNodeText(KBookmark bk, const TQStringList &nodehier);
+ static TQString setNodeText(KBookmark bk, const TQStringList &nodehier,
+ TQString newValue);
private:
- QString m_address;
- QString m_newText;
- QString m_oldText;
- QString m_nodename;
+ TQString m_address;
+ TQString m_newText;
+ TQString m_oldText;
+ TQString m_nodename;
};
class DeleteCommand : public KCommand, public IKEBCommand
{
public:
- DeleteCommand(const QString &from, bool contentOnly = false)
+ DeleteCommand(const TQString &from, bool contentOnly = false)
: KCommand(), m_from(from), m_cmd(0L), m_subCmd(0L), m_contentOnly(contentOnly)
{ ; }
virtual ~DeleteCommand() { delete m_cmd; delete m_subCmd;}
virtual void execute();
virtual void unexecute();
- virtual QString name() const {
+ virtual TQString name() const {
// NOTE - DeleteCommand needs no name, its always embedded in a macrocommand
return "";
};
- virtual QString affectedBookmarks() const;
+ virtual TQString affectedBookmarks() const;
static KEBMacroCommand* deleteAll(const KBookmarkGroup &parentGroup);
private:
- QString m_from;
+ TQString m_from;
KCommand *m_cmd;
KEBMacroCommand *m_subCmd;
bool m_contentOnly;
@@ -205,19 +205,19 @@ class MoveCommand : public KCommand, public IKEBCommand
public:
// "Create it with itemsAlreadyMoved=true since
// "KListView moves the item before telling us about it."
- MoveCommand(const QString &from, const QString &to, const QString &name = QString::null)
+ MoveCommand(const TQString &from, const TQString &to, const TQString &name = TQString::null)
: KCommand(), m_from(from), m_to(to), m_mytext(name)
{ ; }
- QString finalAddress() const;
+ TQString finalAddress() const;
virtual ~MoveCommand() { ; }
virtual void execute();
virtual void unexecute();
- virtual QString name() const;
- virtual QString affectedBookmarks() const;
+ virtual TQString name() const;
+ virtual TQString affectedBookmarks() const;
private:
- QString m_from;
- QString m_to;
- QString m_mytext;
+ TQString m_from;
+ TQString m_to;
+ TQString m_mytext;
};
class SortItem;
@@ -225,18 +225,18 @@ class SortItem;
class SortCommand : public KEBMacroCommand
{
public:
- SortCommand(const QString &name, const QString &groupAddress)
+ SortCommand(const TQString &name, const TQString &groupAddress)
: KEBMacroCommand(name), m_groupAddress(groupAddress)
{ ; }
virtual ~SortCommand()
{ ; }
virtual void execute();
virtual void unexecute();
- virtual QString affectedBookmarks() const;
+ virtual TQString affectedBookmarks() const;
// internal
void moveAfter(const SortItem &moveMe, const SortItem &afterMe);
private:
- QString m_groupAddress;
+ TQString m_groupAddress;
};
class KEBListViewItem;
@@ -244,11 +244,11 @@ class KEBListViewItem;
class CmdGen {
public:
static KEBMacroCommand* setAsToolbar(const KBookmark &bk);
- static KEBMacroCommand* setShownInToolbar(const QValueList<KBookmark> &bk, bool show);
+ static KEBMacroCommand* setShownInToolbar(const TQValueList<KBookmark> &bk, bool show);
static bool shownInToolbar(const KBookmark &bk);
- static KEBMacroCommand* deleteItems(const QString &commandName, const QValueVector<KEBListViewItem *> & items);
- static KEBMacroCommand* insertMimeSource(const QString &cmdName, QMimeSource *data, const QString &addr);
- static KEBMacroCommand* itemsMoved(const QValueVector<KEBListViewItem *> & items, const QString &newAddress, bool copy);
+ static KEBMacroCommand* deleteItems(const TQString &commandName, const TQValueVector<KEBListViewItem *> & items);
+ static KEBMacroCommand* insertMimeSource(const TQString &cmdName, TQMimeSource *data, const TQString &addr);
+ static KEBMacroCommand* itemsMoved(const TQValueVector<KEBListViewItem *> & items, const TQString &newAddress, bool copy);
private:
CmdGen() { ; }
};