summaryrefslogtreecommitdiffstats
path: root/kimagemapeditor/kimagemapeditor.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /kimagemapeditor/kimagemapeditor.h
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimagemapeditor/kimagemapeditor.h')
-rw-r--r--kimagemapeditor/kimagemapeditor.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/kimagemapeditor/kimagemapeditor.h b/kimagemapeditor/kimagemapeditor.h
index bf76349e..6d655746 100644
--- a/kimagemapeditor/kimagemapeditor.h
+++ b/kimagemapeditor/kimagemapeditor.h
@@ -18,10 +18,10 @@
#ifndef KIMAGEMAPDIALOG_H
#define KIMAGEMAPDIALOG_H
-#include <qptrlist.h>
-#include <qobjectlist.h>
-#include <qdict.h>
-#include <qimage.h>
+#include <tqptrlist.h>
+#include <tqobjectlist.h>
+#include <tqdict.h>
+#include <tqimage.h>
#include <kurl.h>
#include <kparts/part.h>
#include <kparts/browserextension.h>
@@ -49,39 +49,39 @@ class KToggleAction;
/**
* Stores an area tag and all its attributes
*/
-typedef QDict<QString> AreaTag;
+typedef TQDict<TQString> AreaTag;
/**
* Stores an image tag and all its attributes
* the origcode attribute hold the original htmlcode
* of this tag
*/
-typedef QDict<QString> ImageTag;
+typedef TQDict<TQString> ImageTag;
/**
* Only a small class to give a list of AreaTags a name
*/
-class MapTag : public QPtrList<AreaTag> {
+class MapTag : public TQPtrList<AreaTag> {
public:
MapTag();
- QString name;
+ TQString name;
bool modified;
};
class HtmlElement {
public:
- HtmlElement(const QString & s) {
+ HtmlElement(const TQString & s) {
htmlCode = s;
};
virtual ~HtmlElement() {}
;
- QString htmlCode;
+ TQString htmlCode;
};
class HtmlMapElement : public HtmlElement {
public:
- HtmlMapElement(const QString & s) : HtmlElement(s) {
+ HtmlMapElement(const TQString & s) : HtmlElement(s) {
mapTag = 0L;
};
@@ -92,7 +92,7 @@ public:
class HtmlImgElement : public HtmlElement {
public:
-HtmlImgElement(const QString & s) : HtmlElement(s) {
+HtmlImgElement(const TQString & s) : HtmlElement(s) {
imgTag = 0L;
};
virtual ~HtmlImgElement() {}
@@ -103,7 +103,7 @@ HtmlImgElement(const QString & s) : HtmlElement(s) {
/**
* Stores the hole HTML content in a List.
*/
-class HtmlContent : public QPtrList<HtmlElement> {}
+class HtmlContent : public TQPtrList<HtmlElement> {}
;
@@ -133,8 +133,8 @@ class KImageMapEditor : public KParts::ReadWritePart {
public :
enum ToolType { Selection, Rectangle, Circle, Polygon, Freehand, AddPoint, RemovePoint };
- KImageMapEditor(QWidget *parentWidget, const char *,
- QObject *parent, const char *name, const QStringList & args = QStringList());
+ KImageMapEditor(TQWidget *parentWidget, const char *,
+ TQObject *parent, const char *name, const TQStringList & args = TQStringList());
virtual ~KImageMapEditor();
static KAboutData *createAboutData();
@@ -161,15 +161,15 @@ public :
void deselectAll();
void deselect(Area* s);
void deselectWithoutUpdate(Area*);
- QString getHTMLImageMap() const;
- Area* onArea(const QPoint & p) const;
- QPixmap makeListViewPix(Area &) ;
- QString mapName() const;
+ TQString getHTMLImageMap() const;
+ Area* onArea(const TQPoint & p) const;
+ TQPixmap makeListViewPix(Area &) ;
+ TQString mapName() const;
void select(Area*);
void selectWithoutUpdate(Area*);
- void select(QListViewItem*);
+ void select(TQListViewItem*);
AreaSelection* selected() const;
- void setPicture(const QImage & pix);
+ void setPicture(const TQImage & pix);
int showTagEditor(Area *);
KCommandHistory *commandHistory() const;
@@ -186,7 +186,7 @@ public :
virtual bool closeURL();
bool queryClose();
virtual void setReadWrite(bool);
- QString getHtmlCode();
+ TQString getHtmlCode();
/**
* Reimplemented to disable and enable Save action
@@ -213,14 +213,14 @@ public :
protected:
void init();
- bool openHTMLFile(const KURL &, const QString & mapName = QString::null, const QString & imagePath = QString::null);
+ bool openHTMLFile(const KURL &, const TQString & mapName = TQString::null, const TQString & imagePath = TQString::null);
void saveImageMap(const KURL &);
/**
* Returns a language dependend background picture, with
* the text : Drop an image or html file
*/
- QImage getBackgroundImage();
+ TQImage getBackgroundImage();
/**
@@ -236,8 +236,8 @@ private:
// the url of the working image;
KURL _imageUrl;
- QString _mapName;
- QImage _backgroundImage;
+ TQString _mapName;
+ TQImage _backgroundImage;
bool backupFileCreated;
@@ -247,7 +247,7 @@ private:
AreaSelection *copyArea;
Area *defaultArea;
DrawZone* drawZone;
- QTabWidget* tabWidget;
+ TQTabWidget* tabWidget;
AreaListView *areaListView;
ImagesListView* imagesListView;
MapsListView* mapsListView;
@@ -320,8 +320,8 @@ private:
KCommandHistory *_commandHistory;
int maxAreaPreviewHeight;
- QString cursorStatusText;
- QString selectionStatusText;
+ TQString cursorStatusText;
+ TQString selectionStatusText;
void setupActions();
void setupStatusBar();
@@ -331,37 +331,37 @@ private:
void updateAllAreas();
void updateUpDownBtn();
- QDict<QString> getTagAttributes(QTextStream & s,QString &);
+ TQDict<TQString> getTagAttributes(TQTextStream & s,TQString &);
void setMap(HtmlMapElement*);
void setMap(MapTag*);
- void addMap(const QString &);
+ void addMap(const TQString &);
// Returns the entire html file as a String
- HtmlElement* findHtmlElement(const QString &);
+ HtmlElement* findHtmlElement(const TQString &);
HtmlImgElement* findHtmlImgElement(ImageTag*);
- HtmlMapElement* findHtmlMapElement(const QString &);
+ HtmlMapElement* findHtmlMapElement(const TQString &);
void deleteAllMaps();
void addImage(const KURL &);
void setImageActionsEnabled(bool);
void setMapActionsEnabled(bool);
void saveAreasToMapTag(MapTag*);
- void showPopupMenu(const QPoint &, const QString &);
- void drawToCenter(QPainter* p, const QString & str, int y, int width);
+ void showPopupMenu(const TQPoint &, const TQString &);
+ void drawToCenter(TQPainter* p, const TQString & str, int y, int width);
public slots:
void slotChangeStatusCoords(int x,int y);
void slotUpdateSelectionCoords();
- void slotUpdateSelectionCoords( const QRect &);
+ void slotUpdateSelectionCoords( const TQRect &);
void slotAreaChanged(Area *);
- void slotShowMainPopupMenu(const QPoint &);
- void slotShowMapPopupMenu(QListViewItem *, const QPoint &);
- void slotShowImagePopupMenu(QListViewItem *, const QPoint &);
+ void slotShowMainPopupMenu(const TQPoint &);
+ void slotShowMapPopupMenu(TQListViewItem *, const TQPoint &);
+ void slotShowImagePopupMenu(TQListViewItem *, const TQPoint &);
void slotConfigChanged();
void setPicture(const KURL & url);
- void setMap(const QString &);
- void setMapName(const QString & s);
+ void setMap(const TQString &);
+ void setMapName(const TQString & s);
protected slots:
@@ -379,13 +379,13 @@ protected slots:
void fileSave();
void fileClose();
- void slotShowPopupMenu(QListViewItem*,const QPoint &);
+ void slotShowPopupMenu(TQListViewItem*,const TQPoint &);
void slotShowPreferences();
void slotHightlightAreas();
void slotShowAltTag();
void slotSelectionChanged();
- int showTagEditor(QListViewItem *item);
+ int showTagEditor(TQListViewItem *item);
int showTagEditor();
void slotZoom();
@@ -448,7 +448,7 @@ inline KImageMapEditor::ToolType KImageMapEditor::currentToolType() const {
return _currentToolType;
}
-inline QString KImageMapEditor::mapName() const {
+inline TQString KImageMapEditor::mapName() const {
return _mapName;
}