summaryrefslogtreecommitdiffstats
path: root/quanta/parts/kafka/htmldocumentproperties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/parts/kafka/htmldocumentproperties.cpp')
-rw-r--r--quanta/parts/kafka/htmldocumentproperties.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/quanta/parts/kafka/htmldocumentproperties.cpp b/quanta/parts/kafka/htmldocumentproperties.cpp
index 0099f313..d8fee439 100644
--- a/quanta/parts/kafka/htmldocumentproperties.cpp
+++ b/quanta/parts/kafka/htmldocumentproperties.cpp
@@ -44,14 +44,14 @@
#include "viewmanager.h"
-htmlDocumentProperties::htmlDocumentProperties( QWidget* parent, bool forceInsertionOfBasicNodes, const char* name,
+htmlDocumentProperties::htmlDocumentProperties( TQWidget* parent, bool forceInsertionOfBasicNodes, const char* name,
bool modal, WFlags fl) :
htmlDocumentPropertiesui(parent, name, modal, fl), titleNode( 0L ), htmlNode( 0L ),
headNode( 0L ), linkNode( 0L ), bodyNode( 0L), doctypeNode( 0L ), CSSNode ( 0L ),
xmlNode( 0L ), titleDirty(false), linkDirty(false)
{
Node *node;
- QString text, nodeName;
+ TQString text, nodeName;
bool b;
int index;
KURL url, baseURL;
@@ -69,17 +69,17 @@ htmlDocumentProperties::htmlDocumentProperties( QWidget* parent, bool forceInser
ok->setAutoDefault(true);
//set the taborder and disable focus for some widgets.
- currentDTD->setFocusPolicy(QWidget::NoFocus);
- QWidget::setTabOrder(title, metaItems);
- QWidget::setTabOrder(metaItems, metaItemsAdd);
- QWidget::setTabOrder(metaItemsAdd, metaItemsDelete);
- QWidget::setTabOrder(metaItemsDelete, cssRules);
- QWidget::setTabOrder(cssRules, cssRulesAdd);
- QWidget::setTabOrder(cssRulesAdd, cssRulesEdit);
- QWidget::setTabOrder(cssRulesEdit, cssRulesDelete);
- QWidget::setTabOrder(cssRulesDelete, cssStylesheet);
- QWidget::setTabOrder(cssStylesheet, ok);
- QWidget::setTabOrder(ok, cancel);
+ currentDTD->setFocusPolicy(TQWidget::NoFocus);
+ TQWidget::setTabOrder(title, metaItems);
+ TQWidget::setTabOrder(metaItems, metaItemsAdd);
+ TQWidget::setTabOrder(metaItemsAdd, metaItemsDelete);
+ TQWidget::setTabOrder(metaItemsDelete, cssRules);
+ TQWidget::setTabOrder(cssRules, cssRulesAdd);
+ TQWidget::setTabOrder(cssRulesAdd, cssRulesEdit);
+ TQWidget::setTabOrder(cssRulesEdit, cssRulesDelete);
+ TQWidget::setTabOrder(cssRulesDelete, cssStylesheet);
+ TQWidget::setTabOrder(cssStylesheet, ok);
+ TQWidget::setTabOrder(ok, cancel);
//set the current DTD name
currentDTD->setText(ViewManager::ref()->activeDocument()->defaultDTD()->nickName);
@@ -87,7 +87,7 @@ htmlDocumentProperties::htmlDocumentProperties( QWidget* parent, bool forceInser
//set the metaItems DualEditableTree
metaItems->addColumn(i18n("Name"));
metaItems->addColumn(i18n("Content"));
- metaItems->setFrameStyle( QFrame::Panel | QFrame::Sunken );
+ metaItems->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
metaItems->setLineWidth( 2 );
metaItems->setSorting(0, true);
@@ -96,9 +96,9 @@ htmlDocumentProperties::htmlDocumentProperties( QWidget* parent, bool forceInser
//cssRules->setEditable(false);
cssRules->addColumn(i18n("Selector"));
cssRules->addColumn(i18n("Rule"));
- cssRules->setFrameStyle( QFrame::Panel | QFrame::Sunken );
+ cssRules->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
cssRules->setLineWidth( 2 );
- //cssRules->setFocusPolicy(QWidget::ClickFocus);
+ //cssRules->setFocusPolicy(TQWidget::ClickFocus);
cssRules->setSorting(-1);
//search for the head, html, title Node
@@ -230,20 +230,20 @@ htmlDocumentProperties::htmlDocumentProperties( QWidget* parent, bool forceInser
cancel->setIconSet(SmallIconSet("button_cancel"));
//connect buttons
- connect(ok, SIGNAL(clicked()), this, SLOT(accept()));
- connect(cancel, SIGNAL(clicked()), this, SLOT(reject()));
- connect(cssRulesAdd, SIGNAL(clicked()), this, SLOT(newCSSRule()));
- connect(cssRulesEdit, SIGNAL(clicked()), this, SLOT(editCSSRule()));
- connect (cssRulesDelete, SIGNAL(clicked()), this, SLOT(deleteCurrentCSSRule()));
- connect(metaItemsAdd, SIGNAL(clicked()), this, SLOT(newMetaItem()));
- connect(metaItemsDelete, SIGNAL(clicked()), this, SLOT(deleteCurrentMetaItem()));
- connect(title, SIGNAL(textChanged(const QString &)), this, SLOT(titleChanged(const QString &)));
- connect(metaItems, SIGNAL(itemModified( QListViewItem * )),
- this, SLOT(metaChanged(QListViewItem * )));
- connect(cssRules, SIGNAL(itemModified( QListViewItem * )),
- this, SLOT(CSSChanged(QListViewItem * )));
- connect(cssStylesheet, SIGNAL(textChanged(const QString &)),
- this, SLOT(linkChanged( const QString& )));
+ connect(ok, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()));
+ connect(cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()));
+ connect(cssRulesAdd, TQT_SIGNAL(clicked()), this, TQT_SLOT(newCSSRule()));
+ connect(cssRulesEdit, TQT_SIGNAL(clicked()), this, TQT_SLOT(editCSSRule()));
+ connect (cssRulesDelete, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteCurrentCSSRule()));
+ connect(metaItemsAdd, TQT_SIGNAL(clicked()), this, TQT_SLOT(newMetaItem()));
+ connect(metaItemsDelete, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteCurrentMetaItem()));
+ connect(title, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(titleChanged(const TQString &)));
+ connect(metaItems, TQT_SIGNAL(itemModified( TQListViewItem * )),
+ this, TQT_SLOT(metaChanged(TQListViewItem * )));
+ connect(cssRules, TQT_SIGNAL(itemModified( TQListViewItem * )),
+ this, TQT_SLOT(CSSChanged(TQListViewItem * )));
+ connect(cssStylesheet, TQT_SIGNAL(textChanged(const TQString &)),
+ this, TQT_SLOT(linkChanged( const TQString& )));
}
htmlDocumentProperties::~htmlDocumentProperties()
@@ -254,7 +254,7 @@ htmlDocumentProperties::~htmlDocumentProperties()
void htmlDocumentProperties::loadMetaNode(Node *node)
{
int index;
- QString name, content;
+ TQString name, content;
NodeLinkedViewItem *item;
index = node->tag->attributeIndex("name");
@@ -276,7 +276,7 @@ void htmlDocumentProperties::loadMetaNode(Node *node)
void htmlDocumentProperties::loadCSS(Node *node)
{
NodeLinkedViewItem *item;
- QString selector;
+ TQString selector;
CSSNode = node;
node = node->child;
@@ -314,7 +314,7 @@ void htmlDocumentProperties::deleteCurrentMetaItem()
{
if(metaItems->currentItem())
{
- QListViewItem *item = metaItems->currentItem();
+ TQListViewItem *item = metaItems->currentItem();
(static_cast<NodeLinkedViewItem *>(item))->deleted = true;
(static_cast<NodeLinkedViewItem *>(item))->dirty = true;
(static_cast<AttributeItem *>(item))->hideEditor(0);
@@ -344,7 +344,7 @@ void htmlDocumentProperties::deleteCurrentCSSRule()
{
if(cssRules->currentItem())
{
- QListViewItem *item = cssRules->currentItem();
+ TQListViewItem *item = cssRules->currentItem();
(static_cast<NodeLinkedViewItem *>(item))->deleted = true;
(static_cast<NodeLinkedViewItem *>(item))->dirty = true;
(static_cast<AttributeItem *>(item))->hideEditor(0);
@@ -354,24 +354,24 @@ void htmlDocumentProperties::deleteCurrentCSSRule()
}
-void htmlDocumentProperties::titleChanged(const QString &)
+void htmlDocumentProperties::titleChanged(const TQString &)
{
titleDirty = true;
}
-void htmlDocumentProperties::metaChanged(QListViewItem * item)
+void htmlDocumentProperties::metaChanged(TQListViewItem * item)
{
if(item)
(static_cast<NodeLinkedViewItem *>(item))->dirty = true;
}
-void htmlDocumentProperties::CSSChanged(QListViewItem * item)
+void htmlDocumentProperties::CSSChanged(TQListViewItem * item)
{
if(item)
(static_cast<NodeLinkedViewItem *>(item))->dirty = true;
}
-void htmlDocumentProperties::linkChanged( const QString& )
+void htmlDocumentProperties::linkChanged( const TQString& )
{
linkDirty = true;
}
@@ -384,7 +384,7 @@ void htmlDocumentProperties::accept()
TagAttr attr;
NodeModifsSet *modifs = new NodeModifsSet();
KURL url, baseURL;
- QString finalURL;
+ TQString finalURL;
NodeSelection *cursorPos;
bool goUp;
//TODO:see for !doctype
@@ -595,7 +595,7 @@ void htmlDocumentProperties::addBasicNodes(NodeModifsSet *modifs)
Node *n, *nextNode;
bool htmlNodeCreated = false, bodyNodeCreated = false;
QTag *qHead, *qBody;
- QString tagName;
+ TQString tagName;
if(headNode)
return;
@@ -732,7 +732,7 @@ void htmlDocumentProperties::addBasicNodes(NodeModifsSet *modifs)
}
}
-NodeLinkedViewItem::NodeLinkedViewItem(EditableTree *listView, const QString& title, const QString& title2)
+NodeLinkedViewItem::NodeLinkedViewItem(EditableTree *listView, const TQString& title, const TQString& title2)
: AttributeItem(listView, title, title2, 0L)
{
node = 0L;