summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_controlframe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_controlframe.cc')
-rw-r--r--krita/ui/kis_controlframe.cc74
1 files changed, 37 insertions, 37 deletions
diff --git a/krita/ui/kis_controlframe.cc b/krita/ui/kis_controlframe.cc
index d2e5a432..08f0c4c3 100644
--- a/krita/ui/kis_controlframe.cc
+++ b/krita/ui/kis_controlframe.cc
@@ -22,12 +22,12 @@
#include <stdlib.h>
-#include <qapplication.h>
-#include <qlayout.h>
-#include <qtabwidget.h>
-#include <qframe.h>
-#include <qwidget.h>
-#include <qevent.h>
+#include <tqapplication.h>
+#include <tqlayout.h>
+#include <tqtabwidget.h>
+#include <tqframe.h>
+#include <tqwidget.h>
+#include <tqevent.h>
#include <ktoolbar.h>
#include <kmainwindow.h>
@@ -60,15 +60,15 @@
#ifdef HAVE_TEXT_BRUSH
#include "kis_text_brush.h"
#endif
-KisPopupFrame::KisPopupFrame(QWidget * parent, const char* name)
- : QPopupMenu(parent, name)
+KisPopupFrame::KisPopupFrame(TQWidget * tqparent, const char* name)
+ : TQPopupMenu(tqparent, name)
{
setFocusPolicy(StrongFocus);
}
-void KisPopupFrame::keyPressEvent(QKeyEvent * e)
+void KisPopupFrame::keyPressEvent(TQKeyEvent * e)
{
- if (e->key()== Qt::Key_Escape)
+ if (e->key()== TQt::Key_Escape)
{
hide();
e->accept();
@@ -80,8 +80,8 @@ void KisPopupFrame::keyPressEvent(QKeyEvent * e)
KisControlFrame::KisControlFrame( KMainWindow * /*window*/, KisView * view, const char* name )
- : QObject(view, name)
- //: KToolBar ( window, Qt::DockTop, false, name, true, true )
+ : TQObject(view, name)
+ //: KToolBar ( window, TQt::DockTop, false, name, true, true )
, m_view(view)
, m_brushWidget(0)
, m_patternWidget(0)
@@ -218,11 +218,11 @@ void KisControlFrame::createBrushesChooser(KisView * view)
m_brushChooserPopup = new KisPopupFrame(m_brushWidget, "brush_chooser_popup");
- QHBoxLayout * l = new QHBoxLayout(m_brushChooserPopup, 2, 2, "brushpopuplayout");
+ TQHBoxLayout * l = new TQHBoxLayout(m_brushChooserPopup, 2, 2, "brushpopuptqlayout");
- QTabWidget * m_brushesTab = new QTabWidget(m_brushChooserPopup, "brushestab");
- m_brushesTab->setTabShape(QTabWidget::Triangular);
- m_brushesTab->setFocusPolicy(QWidget::NoFocus);
+ TQTabWidget * m_brushesTab = new TQTabWidget(m_brushChooserPopup, "brushestab");
+ m_brushesTab->setTabShape(TQTabWidget::Triangular);
+ m_brushesTab->setFocusPolicy(TQ_NoFocus);
m_brushesTab->setFont(m_font);
m_brushesTab->setMargin(1);
@@ -230,7 +230,7 @@ void KisControlFrame::createBrushesChooser(KisView * view)
KisAutobrush * m_autobrush = new KisAutobrush(m_brushesTab, "autobrush", i18n("Autobrush"));
m_brushesTab->addTab( m_autobrush, i18n("Autobrush"));
- connect(m_autobrush, SIGNAL(activatedResource(KisResource*)), m_view, SLOT(brushActivated( KisResource* )));
+ connect(m_autobrush, TQT_SIGNAL(activatedResource(KisResource*)), m_view, TQT_SLOT(brushActivated( KisResource* )));
KisBrushChooser * m_brushChooser = new KisBrushChooser(m_brushesTab, "brush_chooser");
m_brushesTab->addTab( m_brushChooser, i18n("Predefined Brushes"));
@@ -238,19 +238,19 @@ void KisControlFrame::createBrushesChooser(KisView * view)
KisCustomBrush* customBrushes = new KisCustomBrush(m_brushesTab, "custombrush",
i18n("Custom Brush"), m_view);
m_brushesTab->addTab( customBrushes, i18n("Custom Brush"));
- connect(customBrushes, SIGNAL(activatedResource(KisResource*)),
- m_view, SLOT(brushActivated(KisResource*)));
+ connect(customBrushes, TQT_SIGNAL(activatedResource(KisResource*)),
+ m_view, TQT_SLOT(brushActivated(KisResource*)));
#ifdef HAVE_TEXT_BRUSH
KisTextBrush* textBrushes = new KisTextBrush(m_brushesTab, "textbrush",
i18n("Text Brush")/*, m_view*/);
m_brushesTab->addTab( textBrushes, i18n("Text Brush"));
- connect(textBrushes, SIGNAL(activatedResource(KisResource*)),
- m_view, SLOT(brushActivated(KisResource*)));
+ connect(textBrushes, TQT_SIGNAL(activatedResource(KisResource*)),
+ m_view, TQT_SLOT(brushActivated(KisResource*)));
#endif
m_brushChooser->setFont(m_font);
m_brushMediator = new KisResourceMediator( m_brushChooser, this);
- connect(m_brushMediator, SIGNAL(activatedResource(KisResource*)), m_view, SLOT(brushActivated(KisResource*)));
+ connect(m_brushMediator, TQT_SIGNAL(activatedResource(KisResource*)), m_view, TQT_SLOT(brushActivated(KisResource*)));
KisResourceServerBase* rServer;
rServer = KisResourceServerRegistry::instance()->get("ImagePipeBrushServer");
@@ -258,7 +258,7 @@ void KisControlFrame::createBrushesChooser(KisView * view)
rServer = KisResourceServerRegistry::instance()->get("BrushServer");
m_brushMediator->connectServer(rServer);
- KisControlFrame::connect(view, SIGNAL(brushChanged(KisBrush *)), this, SLOT(slotBrushChanged( KisBrush *)));
+ KisControlFrame::connect(view, TQT_SIGNAL(brushChanged(KisBrush *)), this, TQT_SLOT(slotBrushChanged( KisBrush *)));
m_brushChooser->setCurrent( 0 );
m_brushMediator->setActiveItem( m_brushChooser->currentItem() );
customBrushes->setResourceServer(rServer);
@@ -270,11 +270,11 @@ void KisControlFrame::createPatternsChooser(KisView * view)
{
m_patternChooserPopup = new KisPopupFrame(m_patternWidget, "pattern_chooser_popup");
- QHBoxLayout * l2 = new QHBoxLayout(m_patternChooserPopup, 2, 2, "patternpopuplayout");
+ TQHBoxLayout * l2 = new TQHBoxLayout(m_patternChooserPopup, 2, 2, "patternpopuptqlayout");
- QTabWidget * m_patternsTab = new QTabWidget(m_patternChooserPopup, "patternstab");
- m_patternsTab->setTabShape(QTabWidget::Triangular);
- m_patternsTab->setFocusPolicy(QWidget::NoFocus);
+ TQTabWidget * m_patternsTab = new TQTabWidget(m_patternChooserPopup, "patternstab");
+ m_patternsTab->setTabShape(TQTabWidget::Triangular);
+ m_patternsTab->setFocusPolicy(TQ_NoFocus);
m_patternsTab->setFont(m_font);
m_patternsTab->setMargin(1);
l2->add( m_patternsTab );
@@ -291,15 +291,15 @@ void KisControlFrame::createPatternsChooser(KisView * view)
m_patternMediator = new KisResourceMediator( chooser, view);
- connect( m_patternMediator, SIGNAL(activatedResource(KisResource*)), view, SLOT(patternActivated(KisResource*)));
- connect(customPatterns, SIGNAL(activatedResource(KisResource*)),
- view, SLOT(patternActivated(KisResource*)));
+ connect( m_patternMediator, TQT_SIGNAL(activatedResource(KisResource*)), view, TQT_SLOT(patternActivated(KisResource*)));
+ connect(customPatterns, TQT_SIGNAL(activatedResource(KisResource*)),
+ view, TQT_SLOT(patternActivated(KisResource*)));
KisResourceServerBase* rServer;
rServer = KisResourceServerRegistry::instance()->get("PatternServer");
m_patternMediator->connectServer(rServer);
- KisControlFrame::connect(view, SIGNAL(patternChanged(KisPattern *)), this, SLOT(slotPatternChanged( KisPattern *)));
+ KisControlFrame::connect(view, TQT_SIGNAL(patternChanged(KisPattern *)), this, TQT_SLOT(slotPatternChanged( KisPattern *)));
chooser->setCurrent( 0 );
m_patternMediator->setActiveItem( chooser->currentItem() );
@@ -311,11 +311,11 @@ void KisControlFrame::createGradientsChooser(KisView * view)
{
m_gradientChooserPopup = new KisPopupFrame(m_gradientWidget, "gradient_chooser_popup");
- QHBoxLayout * l2 = new QHBoxLayout(m_gradientChooserPopup, 2, 2, "gradientpopuplayout");
+ TQHBoxLayout * l2 = new TQHBoxLayout(m_gradientChooserPopup, 2, 2, "gradientpopuptqlayout");
- QTabWidget * m_gradientTab = new QTabWidget(m_gradientChooserPopup, "gradientstab");
- m_gradientTab->setTabShape(QTabWidget::Triangular);
- m_gradientTab->setFocusPolicy(QWidget::NoFocus);
+ TQTabWidget * m_gradientTab = new TQTabWidget(m_gradientChooserPopup, "gradientstab");
+ m_gradientTab->setTabShape(TQTabWidget::Triangular);
+ m_gradientTab->setFocusPolicy(TQ_NoFocus);
m_gradientTab->setFont(m_font);
m_gradientTab->setMargin(1);
@@ -327,13 +327,13 @@ void KisControlFrame::createGradientsChooser(KisView * view)
m_gradientTab->addTab( m_gradientChooser, i18n("Gradients"));
m_gradientMediator = new KisResourceMediator( m_gradientChooser, view);
- connect(m_gradientMediator, SIGNAL(activatedResource(KisResource*)), view, SLOT(gradientActivated(KisResource*)));
+ connect(m_gradientMediator, TQT_SIGNAL(activatedResource(KisResource*)), view, TQT_SLOT(gradientActivated(KisResource*)));
KisResourceServerBase* rServer;
rServer = KisResourceServerRegistry::instance()->get("GradientServer");
m_gradientMediator->connectServer(rServer);
- connect(view, SIGNAL(gradientChanged(KisGradient *)), this, SLOT(slotGradientChanged( KisGradient *)));
+ connect(view, TQT_SIGNAL(gradientChanged(KisGradient *)), this, TQT_SLOT(slotGradientChanged( KisGradient *)));
m_gradientChooser->setCurrent( 0 );
m_gradientMediator->setActiveItem( m_gradientChooser->currentItem() );
}