summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kis_view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/ui/kis_view.cpp')
-rw-r--r--chalk/ui/kis_view.cpp266
1 files changed, 133 insertions, 133 deletions
diff --git a/chalk/ui/kis_view.cpp b/chalk/ui/kis_view.cpp
index 08cbcd05d..79246afc4 100644
--- a/chalk/ui/kis_view.cpp
+++ b/chalk/ui/kis_view.cpp
@@ -257,7 +257,7 @@ KisView::KisView(KisDoc *doc, KisUndoAdapter *adapter, TQWidget *parent, const c
m_tabletEventTimer.start();
m_inputDevice = KisInputDevice::mouse();
- connect(&m_initialZoomTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotInitialZoomTimeout()));
+ connect(&m_initialZoomTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotInitialZoomTimeout()));
m_paletteManager = new KoPaletteManager(this, actionCollection(), "Chalk palette manager");
if (cfg.fixDockerWidth()) m_paletteManager->setFixedWidth( 360 );
@@ -288,7 +288,7 @@ KisView::KisView(KisDoc *doc, KisUndoAdapter *adapter, TQWidget *parent, const c
else
setXMLFile("chalk.rc");
- KStdAction::keyBindings( mainWindow()->guiFactory(), TQT_SLOT( configureShortcuts() ), actionCollection() );
+ KStdAction::keyBindings( mainWindow()->guiFactory(), TQ_SLOT( configureShortcuts() ), actionCollection() );
createLayerBox();
@@ -302,7 +302,7 @@ KisView::KisView(KisDoc *doc, KisUndoAdapter *adapter, TQWidget *parent, const c
dcopObject();
- connect(this, TQT_SIGNAL(autoScroll(const TQPoint &)), TQT_SLOT(slotAutoScroll(const TQPoint &)));
+ connect(this, TQ_SIGNAL(autoScroll(const TQPoint &)), TQ_SLOT(slotAutoScroll(const TQPoint &)));
setMouseTracking(true);
@@ -340,7 +340,7 @@ KisView::KisView(KisDoc *doc, KisUndoAdapter *adapter, TQWidget *parent, const c
{
slotLoadingFinished();
} else {
- connect(doc, TQT_SIGNAL(loadingFinished()), this, TQT_SLOT(slotLoadingFinished()));
+ connect(doc, TQ_SIGNAL(loadingFinished()), this, TQ_SLOT(slotLoadingFinished()));
}
setFocus();
@@ -426,20 +426,20 @@ void KisView::createLayerBox()
m_layerBox = new KisLayerBox(this);
m_layerBox->setCaption(i18n("Layers"));
- connect(m_layerBox, TQT_SIGNAL(sigRequestLayer(KisGroupLayerSP, KisLayerSP)),
- this, TQT_SLOT(addLayer(KisGroupLayerSP, KisLayerSP)));
- connect(m_layerBox, TQT_SIGNAL(sigRequestGroupLayer(KisGroupLayerSP, KisLayerSP)),
- this, TQT_SLOT(addGroupLayer(KisGroupLayerSP, KisLayerSP)));
- connect(m_layerBox, TQT_SIGNAL(sigRequestAdjustmentLayer(KisGroupLayerSP, KisLayerSP)),
- this, TQT_SLOT(addAdjustmentLayer(KisGroupLayerSP, KisLayerSP)));
- connect(m_layerBox, TQT_SIGNAL(sigRequestPartLayer(KisGroupLayerSP, KisLayerSP, const KoDocumentEntry&)),
- this, TQT_SLOT(addPartLayer(KisGroupLayerSP, KisLayerSP, const KoDocumentEntry&)));
- connect(m_layerBox, TQT_SIGNAL(sigRequestLayerProperties(KisLayerSP)),
- this, TQT_SLOT(showLayerProperties(KisLayerSP)));
- connect(m_layerBox, TQT_SIGNAL(sigOpacityChanged(int, bool)), this, TQT_SLOT(layerOpacity(int, bool)));
- connect(m_layerBox, TQT_SIGNAL(sigOpacityFinishedChanging(int, int)),
- this, TQT_SLOT(layerOpacityFinishedChanging(int, int)));
- connect(m_layerBox, TQT_SIGNAL(sigItemComposite(const KisCompositeOp&)), this, TQT_SLOT(layerCompositeOp(const KisCompositeOp&)));
+ connect(m_layerBox, TQ_SIGNAL(sigRequestLayer(KisGroupLayerSP, KisLayerSP)),
+ this, TQ_SLOT(addLayer(KisGroupLayerSP, KisLayerSP)));
+ connect(m_layerBox, TQ_SIGNAL(sigRequestGroupLayer(KisGroupLayerSP, KisLayerSP)),
+ this, TQ_SLOT(addGroupLayer(KisGroupLayerSP, KisLayerSP)));
+ connect(m_layerBox, TQ_SIGNAL(sigRequestAdjustmentLayer(KisGroupLayerSP, KisLayerSP)),
+ this, TQ_SLOT(addAdjustmentLayer(KisGroupLayerSP, KisLayerSP)));
+ connect(m_layerBox, TQ_SIGNAL(sigRequestPartLayer(KisGroupLayerSP, KisLayerSP, const KoDocumentEntry&)),
+ this, TQ_SLOT(addPartLayer(KisGroupLayerSP, KisLayerSP, const KoDocumentEntry&)));
+ connect(m_layerBox, TQ_SIGNAL(sigRequestLayerProperties(KisLayerSP)),
+ this, TQ_SLOT(showLayerProperties(KisLayerSP)));
+ connect(m_layerBox, TQ_SIGNAL(sigOpacityChanged(int, bool)), this, TQ_SLOT(layerOpacity(int, bool)));
+ connect(m_layerBox, TQ_SIGNAL(sigOpacityFinishedChanging(int, int)),
+ this, TQ_SLOT(layerOpacityFinishedChanging(int, int)));
+ connect(m_layerBox, TQ_SIGNAL(sigItemComposite(const KisCompositeOp&)), this, TQ_SLOT(layerCompositeOp(const KisCompositeOp&)));
paletteManager()->addWidget(m_layerBox, "layerbox", chalk::LAYERBOX, 0);
@@ -468,8 +468,8 @@ void KisView::setupScrollBars()
m_hScroll->setGeometry(20, height() - 16, width() - 36, 16);
m_hScroll->setValue(0);
m_vScroll->setValue(0);
- TQObject::connect(m_vScroll, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(scrollV(int)));
- TQObject::connect(m_hScroll, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(scrollH(int)));
+ TQObject::connect(m_vScroll, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(scrollV(int)));
+ TQObject::connect(m_hScroll, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(scrollH(int)));
}
void KisView::setupRulers()
@@ -601,85 +601,85 @@ void KisView::setupActions()
m_fullScreen = KStdAction::fullScreen( NULL, NULL, actionCollection(), this );
- connect( m_fullScreen, TQT_SIGNAL( toggled( bool )), this, TQT_SLOT( slotUpdateFullScreen( bool )));
+ connect( m_fullScreen, TQ_SIGNAL( toggled( bool )), this, TQ_SLOT( slotUpdateFullScreen( bool )));
- m_imgProperties = new TDEAction(i18n("Image Properties"), 0, this, TQT_SLOT(slotImageProperties()), actionCollection(), "img_properties");
+ m_imgProperties = new TDEAction(i18n("Image Properties"), 0, this, TQ_SLOT(slotImageProperties()), actionCollection(), "img_properties");
m_imgScan = 0; // How the hell do I get a TDEAction to the scan plug-in?!?
- m_imgResizeToLayer = new TDEAction(i18n("Resize Image to Size of Current Layer"), 0, this, TQT_SLOT(imgResizeToActiveLayer()), actionCollection(), "resizeimgtolayer");
+ m_imgResizeToLayer = new TDEAction(i18n("Resize Image to Size of Current Layer"), 0, this, TQ_SLOT(imgResizeToActiveLayer()), actionCollection(), "resizeimgtolayer");
// view actions
- m_zoomIn = KStdAction::zoomIn(this, TQT_SLOT(slotZoomIn()), actionCollection(), "zoom_in");
- m_zoomOut = KStdAction::zoomOut(this, TQT_SLOT(slotZoomOut()), actionCollection(), "zoom_out");
- m_actualPixels = new TDEAction(i18n("Actual Pixels"), "Ctrl+0", this, TQT_SLOT(slotActualPixels()), actionCollection(), "actual_pixels");
- m_actualSize = KStdAction::actualSize(this, TQT_SLOT(slotActualSize()), actionCollection(), "actual_size");
+ m_zoomIn = KStdAction::zoomIn(this, TQ_SLOT(slotZoomIn()), actionCollection(), "zoom_in");
+ m_zoomOut = KStdAction::zoomOut(this, TQ_SLOT(slotZoomOut()), actionCollection(), "zoom_out");
+ m_actualPixels = new TDEAction(i18n("Actual Pixels"), "Ctrl+0", this, TQ_SLOT(slotActualPixels()), actionCollection(), "actual_pixels");
+ m_actualSize = KStdAction::actualSize(this, TQ_SLOT(slotActualSize()), actionCollection(), "actual_size");
m_actualSize->setEnabled(false);
- m_fitToCanvas = KStdAction::fitToPage(this, TQT_SLOT(slotFitToCanvas()), actionCollection(), "fit_to_canvas");
+ m_fitToCanvas = KStdAction::fitToPage(this, TQ_SLOT(slotFitToCanvas()), actionCollection(), "fit_to_canvas");
// layer actions
- m_layerAdd = new TDEAction(i18n("&Add..."), "Ctrl+Shift+N", this, TQT_SLOT(layerAdd()), actionCollection(), "insert_layer");
+ m_layerAdd = new TDEAction(i18n("&Add..."), "Ctrl+Shift+N", this, TQ_SLOT(layerAdd()), actionCollection(), "insert_layer");
m_actionPartLayer = new KoPartSelectAction( i18n( "&Object Layer" ), "frame_query",
- this, TQT_SLOT( addPartLayer() ),
+ this, TQ_SLOT( addPartLayer() ),
actionCollection(), "insert_part_layer" );
m_actionAdjustmentLayer = new TDEAction( i18n( "&Adjustment Layer" ), 0,
- this, TQT_SLOT( addAdjustmentLayer() ),
+ this, TQ_SLOT( addAdjustmentLayer() ),
actionCollection(), "insert_adjustment_layer" );
- m_layerRm = new TDEAction(i18n("&Remove"), 0, this, TQT_SLOT(layerRemove()), actionCollection(), "remove_layer");
- m_layerDup = new TDEAction(i18n("Duplicate"), 0, this, TQT_SLOT(layerDuplicate()), actionCollection(), "duplicate_layer");
- m_layerHide = new TDEToggleAction(i18n("&Hide"), 0, this, TQT_SLOT(layerToggleVisible()), actionCollection(), "hide_layer");
+ m_layerRm = new TDEAction(i18n("&Remove"), 0, this, TQ_SLOT(layerRemove()), actionCollection(), "remove_layer");
+ m_layerDup = new TDEAction(i18n("Duplicate"), 0, this, TQ_SLOT(layerDuplicate()), actionCollection(), "duplicate_layer");
+ m_layerHide = new TDEToggleAction(i18n("&Hide"), 0, this, TQ_SLOT(layerToggleVisible()), actionCollection(), "hide_layer");
m_layerHide->setCheckedState(KGuiItem(i18n("&Show")));
m_layerHide->setChecked(false);
- m_layerRaise = new TDEAction(i18n("Raise"), "raise", "Ctrl+]", this, TQT_SLOT(layerRaise()), actionCollection(), "raiselayer");
- m_layerLower = new TDEAction(i18n("Lower"), "lower", "Ctrl+[", this, TQT_SLOT(layerLower()), actionCollection(), "lowerlayer");
- m_layerTop = new TDEAction(i18n("To Top"), "bring_forward", "Ctrl+Shift+]", this, TQT_SLOT(layerFront()), actionCollection(), "toplayer");
- m_layerBottom = new TDEAction(i18n("To Bottom"), "send_backward", "Ctrl+Shift+[", this, TQT_SLOT(layerBack()), actionCollection(), "bottomlayer");
- m_layerProperties = new TDEAction(i18n("Properties"), 0, this, TQT_SLOT(layerProperties()), actionCollection(), "layer_properties");
- (void)new TDEAction(i18n("I&nsert Image as Layer..."), 0, this, TQT_SLOT(slotInsertImageAsLayer()), actionCollection(), "insert_image_as_layer");
- m_layerSaveAs = new TDEAction(i18n("Save Layer as Image..."), "document-save", this, TQT_SLOT(saveLayerAsImage()), actionCollection(), "save_layer_as_image");
- (void)new TDEAction(i18n("Flip on &X Axis"), "view_left_right", 0, this, TQT_SLOT(mirrorLayerX()), actionCollection(), "mirrorLayerX");
- (void)new TDEAction(i18n("Flip on &Y Axis"), "view_top_bottom", 0, this, TQT_SLOT(mirrorLayerY()), actionCollection(), "mirrorLayerY");
+ m_layerRaise = new TDEAction(i18n("Raise"), "raise", "Ctrl+]", this, TQ_SLOT(layerRaise()), actionCollection(), "raiselayer");
+ m_layerLower = new TDEAction(i18n("Lower"), "lower", "Ctrl+[", this, TQ_SLOT(layerLower()), actionCollection(), "lowerlayer");
+ m_layerTop = new TDEAction(i18n("To Top"), "bring_forward", "Ctrl+Shift+]", this, TQ_SLOT(layerFront()), actionCollection(), "toplayer");
+ m_layerBottom = new TDEAction(i18n("To Bottom"), "send_backward", "Ctrl+Shift+[", this, TQ_SLOT(layerBack()), actionCollection(), "bottomlayer");
+ m_layerProperties = new TDEAction(i18n("Properties"), 0, this, TQ_SLOT(layerProperties()), actionCollection(), "layer_properties");
+ (void)new TDEAction(i18n("I&nsert Image as Layer..."), 0, this, TQ_SLOT(slotInsertImageAsLayer()), actionCollection(), "insert_image_as_layer");
+ m_layerSaveAs = new TDEAction(i18n("Save Layer as Image..."), "document-save", this, TQ_SLOT(saveLayerAsImage()), actionCollection(), "save_layer_as_image");
+ (void)new TDEAction(i18n("Flip on &X Axis"), "view_left_right", 0, this, TQ_SLOT(mirrorLayerX()), actionCollection(), "mirrorLayerX");
+ (void)new TDEAction(i18n("Flip on &Y Axis"), "view_top_bottom", 0, this, TQ_SLOT(mirrorLayerY()), actionCollection(), "mirrorLayerY");
m_createMask = new TDEAction(i18n("Create Mask"), 0, this,
- TQT_SLOT(slotCreateMask()), actionCollection(), "create_mask");
+ TQ_SLOT(slotCreateMask()), actionCollection(), "create_mask");
m_maskFromSelection = new TDEAction(i18n("Mask From Selection"), 0, this,
- TQT_SLOT(slotMaskFromSelection()), actionCollection(),
+ TQ_SLOT(slotMaskFromSelection()), actionCollection(),
"mask_fromsel");
m_maskToSelection = new TDEAction(i18n("Mask to Selection"), 0, this,
- TQT_SLOT(slotMaskToSelection()), actionCollection(), "mask_tosel");
- m_applyMask = new TDEAction(i18n("Apply Mask"), 0, this, TQT_SLOT(slotApplyMask()),
+ TQ_SLOT(slotMaskToSelection()), actionCollection(), "mask_tosel");
+ m_applyMask = new TDEAction(i18n("Apply Mask"), 0, this, TQ_SLOT(slotApplyMask()),
actionCollection(), "apply_mask");
m_removeMask = new TDEAction(i18n("Remove Mask"), 0, this,
- TQT_SLOT(slotRemoveMask()), actionCollection(), "remove_mask");
+ TQ_SLOT(slotRemoveMask()), actionCollection(), "remove_mask");
m_showMask = new TDEToggleAction(i18n( "Show Mask" ), 0, this,
- TQT_SLOT(slotShowMask()), actionCollection(), "show_mask");
+ TQ_SLOT(slotShowMask()), actionCollection(), "show_mask");
m_editMask = new TDEToggleAction(i18n( "Edit Mask" ), 0, this,
- TQT_SLOT(slotEditMask()), actionCollection(), "edit_mask");
+ TQ_SLOT(slotEditMask()), actionCollection(), "edit_mask");
// image actions
- m_imgFlatten = new TDEAction(i18n("&Flatten Image"), "Ctrl+Shift+E", this, TQT_SLOT(flattenImage()), actionCollection(), "flatten_image");
- m_imgMergeLayer = new TDEAction(i18n("&Merge with Layer Below"), "Ctrl+E", this, TQT_SLOT(mergeLayer()), actionCollection(), "merge_layer");
+ m_imgFlatten = new TDEAction(i18n("&Flatten Image"), "Ctrl+Shift+E", this, TQ_SLOT(flattenImage()), actionCollection(), "flatten_image");
+ m_imgMergeLayer = new TDEAction(i18n("&Merge with Layer Below"), "Ctrl+E", this, TQ_SLOT(mergeLayer()), actionCollection(), "merge_layer");
// setting actions
- KStdAction::preferences(this, TQT_SLOT(preferences()), actionCollection(), "preferences");
+ KStdAction::preferences(this, TQ_SLOT(preferences()), actionCollection(), "preferences");
- m_RulerAction = new TDEToggleAction( i18n( "Show Rulers" ), "Ctrl+R", this, TQT_SLOT( showRuler() ), actionCollection(), "view_ruler" );
+ m_RulerAction = new TDEToggleAction( i18n( "Show Rulers" ), "Ctrl+R", this, TQ_SLOT( showRuler() ), actionCollection(), "view_ruler" );
m_RulerAction->setChecked(cfg.showRulers());
m_RulerAction->setCheckedState(i18n("Hide Rulers"));
m_RulerAction->setWhatsThis( i18n("The rulers show the horizontal and vertical positions of the mouse on the image "
"and can be used to position your mouse at the right place on the canvas. <p>Uncheck this to disable "
"the rulers from being displayed." ) );
- //m_guideAction = new TDEToggleAction( i18n( "Guide Lines" ), 0, this, TQT_SLOT( viewGuideLines() ), actionCollection(), "view_guidelines" );
+ //m_guideAction = new TDEToggleAction( i18n( "Guide Lines" ), 0, this, TQ_SLOT( viewGuideLines() ), actionCollection(), "view_guidelines" );
// Add new palette
- new TDEAction(i18n("Add New Palette..."), 0, this, TQT_SLOT(slotAddPalette()),
+ new TDEAction(i18n("Add New Palette..."), 0, this, TQ_SLOT(slotAddPalette()),
actionCollection(), "add_palette");
- new TDEAction(i18n("Edit Palette..."), 0, this, TQT_SLOT(slotEditPalette()),
+ new TDEAction(i18n("Edit Palette..."), 0, this, TQ_SLOT(slotEditPalette()),
actionCollection(), "edit_palette");
// XXX: This triggers a repaint of the image, but way too early
@@ -2788,26 +2788,26 @@ void KisView::addPartLayer(KisGroupLayerSP parent, KisLayerSP above, const KoDoc
delete m_partHandler; // Only one at a time
m_partHandler = new KisPartLayerHandler(this, entry, parent, above);
- disconnect(m_canvas, TQT_SIGNAL(sigGotButtonPressEvent(KisButtonPressEvent*)), this, 0);
- disconnect(m_canvas, TQT_SIGNAL(sigGotButtonReleaseEvent(KisButtonReleaseEvent*)), this, 0);
- disconnect(m_canvas, TQT_SIGNAL(sigGotMoveEvent(KisMoveEvent*)), this, 0);
- disconnect(m_canvas, TQT_SIGNAL(sigGotKeyPressEvent(TQKeyEvent*)), this, 0);
+ disconnect(m_canvas, TQ_SIGNAL(sigGotButtonPressEvent(KisButtonPressEvent*)), this, 0);
+ disconnect(m_canvas, TQ_SIGNAL(sigGotButtonReleaseEvent(KisButtonReleaseEvent*)), this, 0);
+ disconnect(m_canvas, TQ_SIGNAL(sigGotMoveEvent(KisMoveEvent*)), this, 0);
+ disconnect(m_canvas, TQ_SIGNAL(sigGotKeyPressEvent(TQKeyEvent*)), this, 0);
- connect(m_canvas, TQT_SIGNAL(sigGotButtonPressEvent(KisButtonPressEvent*)),
- m_partHandler, TQT_SLOT(gotButtonPressEvent(KisButtonPressEvent*)));
- connect(m_canvas, TQT_SIGNAL(sigGotButtonReleaseEvent(KisButtonReleaseEvent*)),
- m_partHandler, TQT_SLOT(gotButtonReleaseEvent(KisButtonReleaseEvent*)));
- connect(m_canvas, TQT_SIGNAL(sigGotMoveEvent(KisMoveEvent*)),
- m_partHandler, TQT_SLOT(gotMoveEvent(KisMoveEvent*)));
- connect(m_canvas, TQT_SIGNAL(sigGotKeyPressEvent(TQKeyEvent*)),
- m_partHandler, TQT_SLOT(gotKeyPressEvent(TQKeyEvent*)));
+ connect(m_canvas, TQ_SIGNAL(sigGotButtonPressEvent(KisButtonPressEvent*)),
+ m_partHandler, TQ_SLOT(gotButtonPressEvent(KisButtonPressEvent*)));
+ connect(m_canvas, TQ_SIGNAL(sigGotButtonReleaseEvent(KisButtonReleaseEvent*)),
+ m_partHandler, TQ_SLOT(gotButtonReleaseEvent(KisButtonReleaseEvent*)));
+ connect(m_canvas, TQ_SIGNAL(sigGotMoveEvent(KisMoveEvent*)),
+ m_partHandler, TQ_SLOT(gotMoveEvent(KisMoveEvent*)));
+ connect(m_canvas, TQ_SIGNAL(sigGotKeyPressEvent(TQKeyEvent*)),
+ m_partHandler, TQ_SLOT(gotKeyPressEvent(TQKeyEvent*)));
- connect(m_partHandler, TQT_SIGNAL(sigGotMoveEvent(KisMoveEvent*)),
- this, TQT_SLOT(canvasGotMoveEvent(KisMoveEvent*)));
- connect(m_partHandler, TQT_SIGNAL(sigGotKeyPressEvent(TQKeyEvent*)),
- this, TQT_SLOT(canvasGotKeyPressEvent(TQKeyEvent*)));
- connect(m_partHandler, TQT_SIGNAL(handlerDone()),
- this, TQT_SLOT(reconnectAfterPartInsert()));
+ connect(m_partHandler, TQ_SIGNAL(sigGotMoveEvent(KisMoveEvent*)),
+ this, TQ_SLOT(canvasGotMoveEvent(KisMoveEvent*)));
+ connect(m_partHandler, TQ_SIGNAL(sigGotKeyPressEvent(TQKeyEvent*)),
+ this, TQ_SLOT(canvasGotKeyPressEvent(TQKeyEvent*)));
+ connect(m_partHandler, TQ_SIGNAL(handlerDone()),
+ this, TQ_SLOT(reconnectAfterPartInsert()));
}
void KisView::insertPart(const TQRect& viewRect, const KoDocumentEntry& entry,
@@ -2835,14 +2835,14 @@ void KisView::insertPart(const TQRect& viewRect, const KoDocumentEntry& entry,
}
void KisView::reconnectAfterPartInsert() {
- connect(m_canvas, TQT_SIGNAL(sigGotButtonPressEvent(KisButtonPressEvent*)),
- this, TQT_SLOT(canvasGotButtonPressEvent(KisButtonPressEvent*)));
- connect(m_canvas, TQT_SIGNAL(sigGotButtonReleaseEvent(KisButtonReleaseEvent*)),
- this, TQT_SLOT(canvasGotButtonReleaseEvent(KisButtonReleaseEvent*)));
- connect(m_canvas, TQT_SIGNAL(sigGotMoveEvent(KisMoveEvent*)),
- this, TQT_SLOT(canvasGotMoveEvent(KisMoveEvent*)));
- connect(m_canvas, TQT_SIGNAL(sigGotKeyPressEvent(TQKeyEvent*)),
- this, TQT_SLOT(canvasGotKeyPressEvent(TQKeyEvent*)));
+ connect(m_canvas, TQ_SIGNAL(sigGotButtonPressEvent(KisButtonPressEvent*)),
+ this, TQ_SLOT(canvasGotButtonPressEvent(KisButtonPressEvent*)));
+ connect(m_canvas, TQ_SIGNAL(sigGotButtonReleaseEvent(KisButtonReleaseEvent*)),
+ this, TQ_SLOT(canvasGotButtonReleaseEvent(KisButtonReleaseEvent*)));
+ connect(m_canvas, TQ_SIGNAL(sigGotMoveEvent(KisMoveEvent*)),
+ this, TQ_SLOT(canvasGotMoveEvent(KisMoveEvent*)));
+ connect(m_canvas, TQ_SIGNAL(sigGotKeyPressEvent(TQKeyEvent*)),
+ this, TQ_SLOT(canvasGotKeyPressEvent(TQKeyEvent*)));
delete m_partHandler;
m_partHandler = 0;
@@ -3162,52 +3162,52 @@ void KisView::setupCanvas()
{
m_canvas = new KisCanvas(this, "kis_canvas");
m_canvas->setFocusPolicy( TQWidget::StrongFocus );
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotButtonPressEvent(KisButtonPressEvent*)), this, TQT_SLOT(canvasGotButtonPressEvent(KisButtonPressEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotButtonReleaseEvent(KisButtonReleaseEvent*)), this, TQT_SLOT(canvasGotButtonReleaseEvent(KisButtonReleaseEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotDoubleClickEvent(KisDoubleClickEvent*)), this, TQT_SLOT(canvasGotDoubleClickEvent(KisDoubleClickEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotMoveEvent(KisMoveEvent*)), this, TQT_SLOT(canvasGotMoveEvent(KisMoveEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotPaintEvent(TQPaintEvent*)), this, TQT_SLOT(canvasGotPaintEvent(TQPaintEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotEnterEvent(TQEvent*)), this, TQT_SLOT(canvasGotEnterEvent(TQEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotLeaveEvent(TQEvent*)), this, TQT_SLOT(canvasGotLeaveEvent(TQEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotMouseWheelEvent(TQWheelEvent*)), this, TQT_SLOT(canvasGotMouseWheelEvent(TQWheelEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotKeyPressEvent(TQKeyEvent*)), this, TQT_SLOT(canvasGotKeyPressEvent(TQKeyEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotKeyReleaseEvent(TQKeyEvent*)), this, TQT_SLOT(canvasGotKeyReleaseEvent(TQKeyEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotDragEnterEvent(TQDragEnterEvent*)), this, TQT_SLOT(canvasGotDragEnterEvent(TQDragEnterEvent*)));
- TQObject::connect(m_canvas, TQT_SIGNAL(sigGotDropEvent(TQDropEvent*)), this, TQT_SLOT(canvasGotDropEvent(TQDropEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotButtonPressEvent(KisButtonPressEvent*)), this, TQ_SLOT(canvasGotButtonPressEvent(KisButtonPressEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotButtonReleaseEvent(KisButtonReleaseEvent*)), this, TQ_SLOT(canvasGotButtonReleaseEvent(KisButtonReleaseEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotDoubleClickEvent(KisDoubleClickEvent*)), this, TQ_SLOT(canvasGotDoubleClickEvent(KisDoubleClickEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotMoveEvent(KisMoveEvent*)), this, TQ_SLOT(canvasGotMoveEvent(KisMoveEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotPaintEvent(TQPaintEvent*)), this, TQ_SLOT(canvasGotPaintEvent(TQPaintEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotEnterEvent(TQEvent*)), this, TQ_SLOT(canvasGotEnterEvent(TQEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotLeaveEvent(TQEvent*)), this, TQ_SLOT(canvasGotLeaveEvent(TQEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotMouseWheelEvent(TQWheelEvent*)), this, TQ_SLOT(canvasGotMouseWheelEvent(TQWheelEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotKeyPressEvent(TQKeyEvent*)), this, TQ_SLOT(canvasGotKeyPressEvent(TQKeyEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotKeyReleaseEvent(TQKeyEvent*)), this, TQ_SLOT(canvasGotKeyReleaseEvent(TQKeyEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotDragEnterEvent(TQDragEnterEvent*)), this, TQ_SLOT(canvasGotDragEnterEvent(TQDragEnterEvent*)));
+ TQObject::connect(m_canvas, TQ_SIGNAL(sigGotDropEvent(TQDropEvent*)), this, TQ_SLOT(canvasGotDropEvent(TQDropEvent*)));
}
void KisView::connectCurrentImg()
{
if (m_image) {
- connect(m_image, TQT_SIGNAL(sigActiveSelectionChanged(KisImageSP)), m_selectionManager, TQT_SLOT(imgSelectionChanged(KisImageSP)));
- connect(m_image, TQT_SIGNAL(sigActiveSelectionChanged(KisImageSP)), this, TQT_SLOT(updateCanvas()));
- connect(m_image, TQT_SIGNAL(sigColorSpaceChanged(KisColorSpace *)), this, TQT_SLOT(updateStatusBarProfileLabel()));
- connect(m_image, TQT_SIGNAL(sigProfileChanged(KisProfile * )), TQT_SLOT(profileChanged(KisProfile * )));
-
- connect(m_image, TQT_SIGNAL(sigLayersChanged(KisGroupLayerSP)), TQT_SLOT(layersUpdated()));
- connect(m_image, TQT_SIGNAL(sigMaskInfoChanged()), TQT_SLOT(maskUpdated()));
- connect(m_image, TQT_SIGNAL(sigLayerAdded(KisLayerSP)), TQT_SLOT(layersUpdated()));
- connect(m_image, TQT_SIGNAL(sigLayerRemoved(KisLayerSP, KisGroupLayerSP, KisLayerSP)), TQT_SLOT(layersUpdated()));
- connect(m_image, TQT_SIGNAL(sigLayerMoved(KisLayerSP, KisGroupLayerSP, KisLayerSP)), TQT_SLOT(layersUpdated()));
- connect(m_image, TQT_SIGNAL(sigLayerActivated(KisLayerSP)), TQT_SLOT(layersUpdated()));
- connect(m_image, TQT_SIGNAL(sigLayerActivated(KisLayerSP)), TQT_SLOT(updateCanvas()));
- connect(m_image, TQT_SIGNAL(sigLayerPropertiesChanged(KisLayerSP)), TQT_SLOT(layersUpdated()));
+ connect(m_image, TQ_SIGNAL(sigActiveSelectionChanged(KisImageSP)), m_selectionManager, TQ_SLOT(imgSelectionChanged(KisImageSP)));
+ connect(m_image, TQ_SIGNAL(sigActiveSelectionChanged(KisImageSP)), this, TQ_SLOT(updateCanvas()));
+ connect(m_image, TQ_SIGNAL(sigColorSpaceChanged(KisColorSpace *)), this, TQ_SLOT(updateStatusBarProfileLabel()));
+ connect(m_image, TQ_SIGNAL(sigProfileChanged(KisProfile * )), TQ_SLOT(profileChanged(KisProfile * )));
+
+ connect(m_image, TQ_SIGNAL(sigLayersChanged(KisGroupLayerSP)), TQ_SLOT(layersUpdated()));
+ connect(m_image, TQ_SIGNAL(sigMaskInfoChanged()), TQ_SLOT(maskUpdated()));
+ connect(m_image, TQ_SIGNAL(sigLayerAdded(KisLayerSP)), TQ_SLOT(layersUpdated()));
+ connect(m_image, TQ_SIGNAL(sigLayerRemoved(KisLayerSP, KisGroupLayerSP, KisLayerSP)), TQ_SLOT(layersUpdated()));
+ connect(m_image, TQ_SIGNAL(sigLayerMoved(KisLayerSP, KisGroupLayerSP, KisLayerSP)), TQ_SLOT(layersUpdated()));
+ connect(m_image, TQ_SIGNAL(sigLayerActivated(KisLayerSP)), TQ_SLOT(layersUpdated()));
+ connect(m_image, TQ_SIGNAL(sigLayerActivated(KisLayerSP)), TQ_SLOT(updateCanvas()));
+ connect(m_image, TQ_SIGNAL(sigLayerPropertiesChanged(KisLayerSP)), TQ_SLOT(layersUpdated()));
KisConnectPartLayerVisitor v(m_image, this, true);
m_image->rootLayer()->accept(v);
- connect(m_image, TQT_SIGNAL(sigLayerAdded(KisLayerSP)),
- TQT_SLOT(handlePartLayerAdded(KisLayerSP)));
+ connect(m_image, TQ_SIGNAL(sigLayerAdded(KisLayerSP)),
+ TQ_SLOT(handlePartLayerAdded(KisLayerSP)));
maskUpdated();
#ifdef HAVE_GL
if (m_OpenGLImageContext != 0) {
- connect(m_OpenGLImageContext, TQT_SIGNAL(sigImageUpdated(TQRect)), TQT_SLOT(slotOpenGLImageUpdated(TQRect)));
- connect(m_OpenGLImageContext, TQT_SIGNAL(sigSizeChanged(TQ_INT32, TQ_INT32)), TQT_SLOT(slotImageSizeChanged(TQ_INT32, TQ_INT32)));
+ connect(m_OpenGLImageContext, TQ_SIGNAL(sigImageUpdated(TQRect)), TQ_SLOT(slotOpenGLImageUpdated(TQRect)));
+ connect(m_OpenGLImageContext, TQ_SIGNAL(sigSizeChanged(TQ_INT32, TQ_INT32)), TQ_SLOT(slotImageSizeChanged(TQ_INT32, TQ_INT32)));
} else
#endif
{
- connect(m_image, TQT_SIGNAL(sigImageUpdated(TQRect)), TQT_SLOT(imgUpdated(TQRect)));
- connect(m_image, TQT_SIGNAL(sigSizeChanged(TQ_INT32, TQ_INT32)), TQT_SLOT(slotImageSizeChanged(TQ_INT32, TQ_INT32)));
+ connect(m_image, TQ_SIGNAL(sigImageUpdated(TQRect)), TQ_SLOT(imgUpdated(TQRect)));
+ connect(m_image, TQ_SIGNAL(sigSizeChanged(TQ_INT32, TQ_INT32)), TQ_SLOT(slotImageSizeChanged(TQ_INT32, TQ_INT32)));
}
}
@@ -3239,8 +3239,8 @@ void KisView::handlePartLayerAdded(KisLayerSP layer)
if (!l)
return;
- connect(this, TQT_SIGNAL(childActivated(KoDocumentChild*)),
- layer, TQT_SLOT(childActivated(KoDocumentChild*)));
+ connect(this, TQ_SIGNAL(childActivated(KoDocumentChild*)),
+ layer, TQ_SLOT(childActivated(KoDocumentChild*)));
}
void KisView::imgUpdated(TQRect rc)
@@ -3811,26 +3811,26 @@ void KisView::createDockers()
m_hsvwidget = new KoHSVWidget(this, "hsv");
m_hsvwidget->setCaption(i18n("HSV"));
- connect(m_hsvwidget, TQT_SIGNAL(sigFgColorChanged(const TQColor &)), this, TQT_SLOT(slotSetFGQColor(const TQColor &)));
- connect(m_hsvwidget, TQT_SIGNAL(sigBgColorChanged(const TQColor &)), this, TQT_SLOT(slotSetBGQColor(const TQColor &)));
- connect(this, TQT_SIGNAL(sigFGQColorChanged(const TQColor &)), m_hsvwidget, TQT_SLOT(setFgColor(const TQColor &)));
- connect(this, TQT_SIGNAL(sigBGQColorChanged(const TQColor &)), m_hsvwidget, TQT_SLOT(setBgColor(const TQColor &)));
+ connect(m_hsvwidget, TQ_SIGNAL(sigFgColorChanged(const TQColor &)), this, TQ_SLOT(slotSetFGQColor(const TQColor &)));
+ connect(m_hsvwidget, TQ_SIGNAL(sigBgColorChanged(const TQColor &)), this, TQ_SLOT(slotSetBGQColor(const TQColor &)));
+ connect(this, TQ_SIGNAL(sigFGQColorChanged(const TQColor &)), m_hsvwidget, TQ_SLOT(setFgColor(const TQColor &)));
+ connect(this, TQ_SIGNAL(sigBGQColorChanged(const TQColor &)), m_hsvwidget, TQ_SLOT(setBgColor(const TQColor &)));
m_paletteManager->addWidget( m_hsvwidget, "hsvwidget", chalk::COLORBOX, 0, PALETTE_DOCKER, true);
m_rgbwidget = new KoRGBWidget(this, "rgb");
m_rgbwidget->setCaption(i18n("RGB"));
- connect(m_rgbwidget, TQT_SIGNAL(sigFgColorChanged(const TQColor &)), this, TQT_SLOT(slotSetFGQColor(const TQColor &)));
- connect(m_rgbwidget, TQT_SIGNAL(sigBgColorChanged(const TQColor &)), this, TQT_SLOT(slotSetBGQColor(const TQColor &)));
- connect(this, TQT_SIGNAL(sigFGQColorChanged(const TQColor &)), m_rgbwidget, TQT_SLOT(setFgColor(const TQColor &)));
- connect(this, TQT_SIGNAL(sigBGQColorChanged(const TQColor &)), m_rgbwidget, TQT_SLOT(setBgColor(const TQColor &)));
+ connect(m_rgbwidget, TQ_SIGNAL(sigFgColorChanged(const TQColor &)), this, TQ_SLOT(slotSetFGQColor(const TQColor &)));
+ connect(m_rgbwidget, TQ_SIGNAL(sigBgColorChanged(const TQColor &)), this, TQ_SLOT(slotSetBGQColor(const TQColor &)));
+ connect(this, TQ_SIGNAL(sigFGQColorChanged(const TQColor &)), m_rgbwidget, TQ_SLOT(setFgColor(const TQColor &)));
+ connect(this, TQ_SIGNAL(sigBGQColorChanged(const TQColor &)), m_rgbwidget, TQ_SLOT(setBgColor(const TQColor &)));
m_paletteManager->addWidget( m_rgbwidget, "rgbwidget", chalk::COLORBOX);
m_graywidget = new KoGrayWidget(this, "gray");
m_graywidget->setCaption(i18n("Gray"));
- connect(m_graywidget, TQT_SIGNAL(sigFgColorChanged(const TQColor &)), this, TQT_SLOT(slotSetFGQColor(const TQColor &)));
- connect(m_graywidget, TQT_SIGNAL(sigBgColorChanged(const TQColor &)), this, TQT_SLOT(slotSetBGQColor(const TQColor &)));
- connect(this, TQT_SIGNAL(sigFGQColorChanged(const TQColor &)), m_graywidget, TQT_SLOT(setFgColor(const TQColor &)));
- connect(this, TQT_SIGNAL(sigBGQColorChanged(const TQColor &)), m_graywidget, TQT_SLOT(setBgColor(const TQColor &)));
+ connect(m_graywidget, TQ_SIGNAL(sigFgColorChanged(const TQColor &)), this, TQ_SLOT(slotSetFGQColor(const TQColor &)));
+ connect(m_graywidget, TQ_SIGNAL(sigBgColorChanged(const TQColor &)), this, TQ_SLOT(slotSetBGQColor(const TQColor &)));
+ connect(this, TQ_SIGNAL(sigFGQColorChanged(const TQColor &)), m_graywidget, TQ_SLOT(setFgColor(const TQColor &)));
+ connect(this, TQ_SIGNAL(sigBGQColorChanged(const TQColor &)), m_graywidget, TQ_SLOT(setBgColor(const TQColor &)));
m_paletteManager->addWidget( m_graywidget, "graywidget", chalk::COLORBOX);
//make sure the color chooser get right default values
@@ -3839,8 +3839,8 @@ void KisView::createDockers()
m_palettewidget = new KisPaletteWidget(this);
m_palettewidget->setCaption(i18n("Palettes"));
- connect(m_palettewidget, TQT_SIGNAL(colorSelected(const TQColor &)),
- this, TQT_SLOT(slotSetFGQColor(const TQColor &)));
+ connect(m_palettewidget, TQ_SIGNAL(colorSelected(const TQColor &)),
+ this, TQ_SLOT(slotSetFGQColor(const TQColor &)));
// No BGColor or reverse slotFGChanged->palette connections, since that's not useful here
KisResourceServerBase* rServer;
@@ -3850,7 +3850,7 @@ void KisView::createDockers()
for ( it = resources.begin(); it != resources.end(); ++it ) {
m_palettewidget->slotAddPalette( *it );
}
- connect(m_palettewidget, TQT_SIGNAL(colorSelected(const KisColor &)), this, TQT_SLOT(slotSetFGColor(const KisColor &)));
+ connect(m_palettewidget, TQ_SIGNAL(colorSelected(const KisColor &)), this, TQ_SLOT(slotSetFGColor(const KisColor &)));
m_paletteManager->addWidget( m_palettewidget, "palettewidget", chalk::COLORBOX, 10, PALETTE_DOCKER, true);
}
@@ -3880,7 +3880,7 @@ TQPoint KisView::reverseViewTransformations(const TQPoint& p) const {
void KisView::canvasAddChild(KoViewChild *child) {
super::canvasAddChild(child);
- connect(this, TQT_SIGNAL(viewTransformationsChanged()), child, TQT_SLOT(reposition()));
+ connect(this, TQ_SIGNAL(viewTransformationsChanged()), child, TQ_SLOT(reposition()));
m_vScroll->raise();
m_hScroll->raise();
m_vScroll->raise();
@@ -3894,7 +3894,7 @@ void KisView::slotLoadingFinished()
setCurrentImage(document()->currentImage());
m_paletteManager->showWidget( "layerbox" );
m_canvas->show();
- disconnect(document(), TQT_SIGNAL(loadingFinished()), this, TQT_SLOT(slotLoadingFinished()));
+ disconnect(document(), TQ_SIGNAL(loadingFinished()), this, TQ_SLOT(slotLoadingFinished()));
m_imageLoaded = true;
startInitialZoomTimerIfReady();