Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/83/head
Michele Calgaro 1 year ago
parent 7cf662aaa0
commit c616fab905
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -106,36 +106,36 @@ void KKameraConfig::displayGPSuccessDialogue(void)
// create list of devices
m_deviceSel = new TDEIconView(this);
connect(m_deviceSel, TQT_SIGNAL(rightButtonClicked(TQIconViewItem *, const TQPoint &)),
TQT_SLOT(slot_deviceMenu(TQIconViewItem *, const TQPoint &)));
connect(m_deviceSel, TQT_SIGNAL(doubleClicked(TQIconViewItem *)),
TQT_SLOT(slot_configureCamera()));
connect(m_deviceSel, TQT_SIGNAL(selectionChanged(TQIconViewItem *)),
TQT_SLOT(slot_deviceSelected(TQIconViewItem *)));
connect(m_deviceSel, TQ_SIGNAL(rightButtonClicked(TQIconViewItem *, const TQPoint &)),
TQ_SLOT(slot_deviceMenu(TQIconViewItem *, const TQPoint &)));
connect(m_deviceSel, TQ_SIGNAL(doubleClicked(TQIconViewItem *)),
TQ_SLOT(slot_configureCamera()));
connect(m_deviceSel, TQ_SIGNAL(selectionChanged(TQIconViewItem *)),
TQ_SLOT(slot_deviceSelected(TQIconViewItem *)));
m_deviceSel->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
// create actions
TDEAction *act;
act = new TDEAction(i18n("Add"), "camera-photo", 0, this, TQT_SLOT(slot_addCamera()), m_actions, "camera_add");
act = new TDEAction(i18n("Add"), "camera-photo", 0, this, TQ_SLOT(slot_addCamera()), m_actions, "camera_add");
act->setWhatsThis(i18n("Click this button to add a new camera."));
act->plug(m_toolbar);
m_toolbar->insertLineSeparator();
act = new TDEAction(i18n("Test"), "button_ok", 0, this, TQT_SLOT(slot_testCamera()), m_actions, "camera_test");
act = new TDEAction(i18n("Test"), "button_ok", 0, this, TQ_SLOT(slot_testCamera()), m_actions, "camera_test");
act->setWhatsThis(i18n("Click this button to remove the selected camera from the list."));
act->plug(m_toolbar);
act = new TDEAction(i18n("Remove"), "edittrash", 0, this, TQT_SLOT(slot_removeCamera()), m_actions, "camera_remove");
act = new TDEAction(i18n("Remove"), "edittrash", 0, this, TQ_SLOT(slot_removeCamera()), m_actions, "camera_remove");
act->setWhatsThis(i18n("Click this button to remove the selected camera from the list."));
act->plug(m_toolbar);
act = new TDEAction(i18n("Configure..."), "configure", 0, this, TQT_SLOT(slot_configureCamera()), m_actions, "camera_configure");
act = new TDEAction(i18n("Configure..."), "configure", 0, this, TQ_SLOT(slot_configureCamera()), m_actions, "camera_configure");
act->setWhatsThis(i18n("Click this button to change the configuration of the selected camera.<br><br>The availability of this feature and the contents of the Configuration dialog depend on the camera model."));
act->plug(m_toolbar);
act = new TDEAction(i18n("Information"), "hwinfo", 0, this, TQT_SLOT(slot_cameraSummary()), m_actions, "camera_summary");
act = new TDEAction(i18n("Information"), "hwinfo", 0, this, TQ_SLOT(slot_cameraSummary()), m_actions, "camera_summary");
act->setWhatsThis(i18n("Click this button to view a summary of the current status of the selected camera.<br><br>The availability of this feature and the contents of the Configuration dialog depend on the camera model."));
act->plug(m_toolbar);
m_toolbar->insertLineSeparator();
act = new TDEAction(i18n("Cancel"), "process-stop", 0, this, TQT_SLOT(slot_cancelOperation()), m_actions, "camera_cancel");
act = new TDEAction(i18n("Cancel"), "process-stop", 0, this, TQ_SLOT(slot_cancelOperation()), m_actions, "camera_cancel");
act->setWhatsThis(i18n("Click this button to cancel the current camera operation."));
act->setEnabled(false);
act->plug(m_toolbar);
@ -188,8 +188,8 @@ void KKameraConfig::load(bool useDefaults )
continue;
kcamera = new KCamera(*it,m_config->readEntry("Path"));
connect(kcamera, TQT_SIGNAL(error(const TQString &)), TQT_SLOT(slot_error(const TQString &)));
connect(kcamera, TQT_SIGNAL(error(const TQString &, const TQString &)), TQT_SLOT(slot_error(const TQString &, const TQString &)));
connect(kcamera, TQ_SIGNAL(error(const TQString &)), TQ_SLOT(slot_error(const TQString &)));
connect(kcamera, TQ_SIGNAL(error(const TQString &, const TQString &)), TQ_SLOT(slot_error(const TQString &, const TQString &)));
kcamera->load(m_config);
m_devices[*it] = kcamera;
}
@ -227,8 +227,8 @@ void KKameraConfig::load(bool useDefaults )
/* kdDebug() << "Adding USB camera: " << portit.data() << " at " << portit.key() << endl; */
kcamera = new KCamera(portit.data(),portit.key());
connect(kcamera, TQT_SIGNAL(error(const TQString &)), TQT_SLOT(slot_error(const TQString &)));
connect(kcamera, TQT_SIGNAL(error(const TQString &, const TQString &)), TQT_SLOT(slot_error(const TQString &, const TQString &)));
connect(kcamera, TQ_SIGNAL(error(const TQString &)), TQ_SLOT(slot_error(const TQString &)));
connect(kcamera, TQ_SIGNAL(error(const TQString &, const TQString &)), TQ_SLOT(slot_error(const TQString &, const TQString &)));
m_devices[portit.data()] = kcamera;
}
populateDeviceListView();
@ -285,8 +285,8 @@ TQString KKameraConfig::suggestName(const TQString &name)
void KKameraConfig::slot_addCamera()
{
KCamera *m_device = new KCamera(TQString(),TQString());
connect(m_device, TQT_SIGNAL(error(const TQString &)), TQT_SLOT(slot_error(const TQString &)));
connect(m_device, TQT_SIGNAL(error(const TQString &, const TQString &)), TQT_SLOT(slot_error(const TQString &, const TQString &)));
connect(m_device, TQ_SIGNAL(error(const TQString &)), TQ_SLOT(slot_error(const TQString &)));
connect(m_device, TQ_SIGNAL(error(const TQString &, const TQString &)), TQ_SLOT(slot_error(const TQString &, const TQString &)));
KameraDeviceSelectDialog dialog(this, m_device);
if (dialog.exec() == TQDialog::Accepted) {
dialog.save();

@ -276,10 +276,10 @@ KameraDeviceSelectDialog::KameraDeviceSelectDialog(TQWidget *parent, KCamera *de
: KDialogBase(parent, "kkameradeviceselect", true, i18n("Select Camera Device"), Ok | Cancel, Ok, true)
{
m_device = device;
connect(m_device, TQT_SIGNAL(error(const TQString &)),
TQT_SLOT(slot_error(const TQString &)));
connect(m_device, TQT_SIGNAL(error(const TQString &, const TQString &)),
TQT_SLOT(slot_error(const TQString &, const TQString &)));
connect(m_device, TQ_SIGNAL(error(const TQString &)),
TQ_SLOT(slot_error(const TQString &)));
connect(m_device, TQ_SIGNAL(error(const TQString &, const TQString &)),
TQ_SLOT(slot_error(const TQString &, const TQString &)));
TQWidget *page = new TQWidget( this );
setMainWidget(page);
@ -292,8 +292,8 @@ KameraDeviceSelectDialog::KameraDeviceSelectDialog(TQWidget *parent, KCamera *de
topLayout->addWidget( m_modelSel );
m_modelSel->addColumn(i18n("Supported Cameras"));
m_modelSel->setColumnWidthMode(0, TQListView::Maximum);
connect(m_modelSel, TQT_SIGNAL(selectionChanged(TQListViewItem *)),
TQT_SLOT(slot_setModel(TQListViewItem *)));
connect(m_modelSel, TQ_SIGNAL(selectionChanged(TQListViewItem *)),
TQ_SLOT(slot_setModel(TQListViewItem *)));
// make sure listview only as wide as it needs to be
m_modelSel->setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum,
TQSizePolicy::Preferred));
@ -315,8 +315,8 @@ KameraDeviceSelectDialog::KameraDeviceSelectDialog(TQWidget *parent, KCamera *de
TQWhatsThis::add(m_USBRB, i18n("If this option is checked, the camera would have to be connected to one of the USB slots in your computer or USB hub."));
// Create port settings widget stack
m_settingsStack = new TQWidgetStack(m_portSettingsGroup);
connect(m_portSelectGroup, TQT_SIGNAL(clicked(int)),
m_settingsStack, TQT_SLOT(raiseWidget(int)));
connect(m_portSelectGroup, TQ_SIGNAL(clicked(int)),
m_settingsStack, TQ_SLOT(raiseWidget(int)));
// none tab
m_settingsStack->addWidget(new TQLabel(i18n("No port type selected."),

@ -37,16 +37,16 @@ ColorSelector::ColorSelector(TQWidget *parent, const char *name ) : TQWidget(par
TQTabWidget* pages = new TQTabWidget(this);
*/
gradientSelection = new GradientSelection(this);
connect(gradientSelection, TQT_SIGNAL( valueChanged(Color*) ),
TQT_SLOT( slotGradientSelectionChangeColor(Color*) ));
connect(gradientSelection, TQT_SIGNAL( synchronizeColor() ),
TQT_SLOT( slotGradientSelectionSynchronizeColor() ));
connect(this, TQT_SIGNAL( valueChanged(Color*) ), gradientSelection, TQT_SLOT( slotSetValue(Color*) ));
connect(gradientSelection, TQ_SIGNAL( valueChanged(Color*) ),
TQ_SLOT( slotGradientSelectionChangeColor(Color*) ));
connect(gradientSelection, TQ_SIGNAL( synchronizeColor() ),
TQ_SLOT( slotGradientSelectionSynchronizeColor() ));
connect(this, TQ_SIGNAL( valueChanged(Color*) ), gradientSelection, TQ_SLOT( slotSetValue(Color*) ));
/*
pages->addTab(gradientSelection, i18n( "Gradient" ));
ImageSelection* imageSelection = new ImageSelection(this);
connect(imageSelection, TQT_SIGNAL( valueChanged(Color*) ), TQT_SLOT( slotSetColor(Color*) ));
connect(this, TQT_SIGNAL( valueChanged(Color*) ), imageSelection, TQT_SLOT( slotSetValue(Color*) ));
connect(imageSelection, TQ_SIGNAL( valueChanged(Color*) ), TQ_SLOT( slotSetColor(Color*) ));
connect(this, TQ_SIGNAL( valueChanged(Color*) ), imageSelection, TQ_SLOT( slotSetValue(Color*) ));
pages->addTab(imageSelection, i18n( "Image" ));
topLayout->addWidget(pages, 10);
*/
@ -55,17 +55,17 @@ ColorSelector::ColorSelector(TQWidget *parent, const char *name ) : TQWidget(par
topLayout->addWidget(hLine);
TQHBoxLayout* layout = new TQHBoxLayout();
TextEditSelection* textEditSelection = new TextEditSelection(this);
connect(textEditSelection, TQT_SIGNAL( valueChanged(Color*) ), TQT_SLOT( slotSetColor(Color*) ));
connect(this, TQT_SIGNAL( valueChanged(Color*) ), textEditSelection, TQT_SLOT( slotSetValue(Color*) ));
connect(textEditSelection, TQ_SIGNAL( valueChanged(Color*) ), TQ_SLOT( slotSetColor(Color*) ));
connect(this, TQ_SIGNAL( valueChanged(Color*) ), textEditSelection, TQ_SLOT( slotSetValue(Color*) ));
TQVBoxLayout* colorChangeLayout = new TQVBoxLayout();
colorChangeLayout->setMargin(2);
TQRadioButton* replaceButton = new TQRadioButton(i18n( "Replace" ), this);
connect(replaceButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotColorReplace() ));
connect(replaceButton, TQ_SIGNAL( clicked() ), TQ_SLOT( slotColorReplace() ));
replaceButton->setChecked(true);
colorChangeButtons.insert(replaceButton);
colorChangeLayout->addWidget(replaceButton);
TQRadioButton* changeButton = new TQRadioButton(i18n( "Change" ) + ":", this);
connect(changeButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotColorChange() ));
connect(changeButton, TQ_SIGNAL( clicked() ), TQ_SLOT( slotColorChange() ));
colorChangeButtons.insert(changeButton);
colorChangeLayout->addWidget(changeButton);
colorChangeValue = 0;
@ -76,7 +76,7 @@ ColorSelector::ColorSelector(TQWidget *parent, const char *name ) : TQWidget(par
MAX_COLOR_CHANGE_VALUE/4, colorChangeValue, TQt::Horizontal, colorChangeSliderWidget);
colorChangeSlider->setTickInterval(colorChangeSlider->pageStep());
colorChangeSlider->setTickmarks(TQSlider::Above);
connect(colorChangeSlider, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( slotColorChangeValueChanged(int) ));
connect(colorChangeSlider, TQ_SIGNAL( valueChanged(int) ), TQ_SLOT( slotColorChangeValueChanged(int) ));
colorChangeSliderLayout->addWidget(colorChangeSlider);
TQHBoxLayout* colorChangeSliderLabelsLayout = new TQHBoxLayout(0);
TQLabel* subtractLabel = new TQLabel(i18n( "0" ), colorChangeSliderWidget);
@ -95,7 +95,7 @@ ColorSelector::ColorSelector(TQWidget *parent, const char *name ) : TQWidget(par
layout->addWidget(vLine);
layout->addWidget(textEditSelection, 1);
colorPatch = new KColorPatch(this);
connect(colorPatch, TQT_SIGNAL( colorChanged(const TQColor&) ), TQT_SLOT( slotSetColor(const TQColor&) ));
connect(colorPatch, TQ_SIGNAL( colorChanged(const TQColor&) ), TQ_SLOT( slotSetColor(const TQColor&) ));
colorPatch->setMinimumSize(80, 64);
layout->addWidget(colorPatch, 10);
topLayout->addLayout(layout);

@ -29,8 +29,8 @@ GradientSelection::GradientSelection(TQWidget *parent, const char *name ) : TQWi
TQHBoxLayout* layout = new TQHBoxLayout(0);
layout->setMargin(3);
xyColorSelector = new KXYColorSelector(this);
connect(xyColorSelector, TQT_SIGNAL( valueChanged(int, int) ),
TQT_SLOT( slotXyColorSelectorPosChanged(int, int) ));
connect(xyColorSelector, TQ_SIGNAL( valueChanged(int, int) ),
TQ_SLOT( slotXyColorSelectorPosChanged(int, int) ));
layout->addWidget(xyColorSelector);
topLayout->addLayout(layout, 0, 0);
topLayout->setRowStretch(0, 10);
@ -40,14 +40,14 @@ GradientSelection::GradientSelection(TQWidget *parent, const char *name ) : TQWi
checkBoxLayout->setMargin(0);
variableCheckBox = new TQCheckBox(i18n( "Variable" ), this);
variableGlobalComponent = false;
connect(variableCheckBox, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( slotSetVariableGlobalComponent(bool) ));
connect(variableCheckBox, TQ_SIGNAL( toggled(bool) ), TQ_SLOT( slotSetVariableGlobalComponent(bool) ));
checkBoxLayout->addSpacing(2);
checkBoxLayout->addWidget(variableCheckBox);
xyColorSelectorLayout->addLayout(checkBoxLayout);
xyColorSelectorLayout->addStretch(10);
TQHBoxLayout* buttonsLayout = new TQHBoxLayout();
synchronizeColorButton = new TQPushButton(i18n( "Synchronize" ), this);
connect(synchronizeColorButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotSynchronizeColor() ));
connect(synchronizeColorButton, TQ_SIGNAL( clicked() ), TQ_SLOT( slotSynchronizeColor() ));
buttonsLayout->addSpacing(2);
buttonsLayout->addWidget(synchronizeColorButton);
buttonsLayout->addStretch(10);
@ -55,12 +55,12 @@ GradientSelection::GradientSelection(TQWidget *parent, const char *name ) : TQWi
xyColorSelectorLayout->addSpacing(2);
topLayout->addLayout(xyColorSelectorLayout, 1, 0);
zColorSelector = new KZColorSelector(TQt::Vertical, this);
connect(zColorSelector, TQT_SIGNAL( valueChanged(int) ),
TQT_SLOT( slotZColorSelectorPosChanged(int) ));
connect(zColorSelector, TQ_SIGNAL( valueChanged(int) ),
TQ_SLOT( slotZColorSelectorPosChanged(int) ));
zColorSelector->setFixedWidth(36);
topLayout->addWidget(zColorSelector, 0, 1);
TQVBoxLayout* zColorSelectorLayout = new TQVBoxLayout(0);
connect(&hsvButtons, TQT_SIGNAL( clicked(int) ), TQT_SLOT( slotSetColorSelectionMode(int) ));
connect(&hsvButtons, TQ_SIGNAL( clicked(int) ), TQ_SLOT( slotSetColorSelectionMode(int) ));
TQRadioButton* hRadioButton = new TQRadioButton("H", this);
hsvButtons.insert(hRadioButton, H_COMPONENT);
zColorSelectorLayout->addWidget(hRadioButton);

@ -57,7 +57,7 @@ int main(int argc, char *argv[])
dlg.setColor(TQt::blue); // Just a color
app.connect(&dlg, TQT_SIGNAL(finished()), TQT_SLOT(quit()));
app.connect(&dlg, TQ_SIGNAL(finished()), TQ_SLOT(quit()));
dlg.show();
app.exec();

@ -64,40 +64,40 @@ KColorEditApp::~KColorEditApp() {
void KColorEditApp::initActions()
{
// File actiojns
KStdAction::openNew( this, TQT_SLOT( slotFileNew() ), actionCollection() );
KStdAction::open( this, TQT_SLOT( slotFileOpen() ), actionCollection() );
KStdAction::saveAs( this, TQT_SLOT( slotFileSaveAs() ), actionCollection() );
KStdAction::close( this, TQT_SLOT( slotClose() ), actionCollection() );
KStdAction::quit( this, TQT_SLOT( slotQuit() ), actionCollection() );
m_actSave = KStdAction::save( this, TQT_SLOT( slotFileSave() ),
KStdAction::openNew( this, TQ_SLOT( slotFileNew() ), actionCollection() );
KStdAction::open( this, TQ_SLOT( slotFileOpen() ), actionCollection() );
KStdAction::saveAs( this, TQ_SLOT( slotFileSaveAs() ), actionCollection() );
KStdAction::close( this, TQ_SLOT( slotClose() ), actionCollection() );
KStdAction::quit( this, TQ_SLOT( slotQuit() ), actionCollection() );
m_actSave = KStdAction::save( this, TQ_SLOT( slotFileSave() ),
actionCollection() );
m_actRecent = KStdAction::openRecent( this,
TQT_SLOT( slotFileOpenRecent( const KURL& ) ), actionCollection() );
TQ_SLOT( slotFileOpenRecent( const KURL& ) ), actionCollection() );
( void ) new TDEAction( i18n("New &Window"), kapp->miniIcon(), TDEShortcut(),
this, TQT_SLOT( slotFileNewWindow() ), actionCollection(),
this, TQ_SLOT( slotFileNewWindow() ), actionCollection(),
"file_new_window" );
// Edit actions
m_actCut = KStdAction::cut( this, TQT_SLOT( slotEditCut() ),
m_actCut = KStdAction::cut( this, TQ_SLOT( slotEditCut() ),
actionCollection() );
m_actCopy = KStdAction::copy( this, TQT_SLOT( slotEditCopy() ),
m_actCopy = KStdAction::copy( this, TQ_SLOT( slotEditCopy() ),
actionCollection() );
m_actPaste = KStdAction::paste( this, TQT_SLOT( slotEditPaste() ),
m_actPaste = KStdAction::paste( this, TQ_SLOT( slotEditPaste() ),
actionCollection() );
m_actPaste->setEnabled( false );
// Color Menu
m_actNames = new TDEToggleAction( i18n("Show &Color Names"), TDEShortcut(), this,
TQT_SLOT( slotViewColorNames() ), actionCollection(),
TQ_SLOT( slotViewColorNames() ), actionCollection(),
"color_view_names" );
m_actNames->setCheckedState(i18n("Hide &Color Names"));
m_actPalette = new TDEAction( i18n("From &Palette"), TDEShortcut(), this,
TQT_SLOT( slotColorFromPalette() ), actionCollection(),
TQ_SLOT( slotColorFromPalette() ), actionCollection(),
"color_from_palette" );
( void ) new TDEAction( i18n("From &Screen"), TDEShortcut(), this,
TQT_SLOT( slotColorFromScreen() ), actionCollection(),
TQ_SLOT( slotColorFromScreen() ), actionCollection(),
"color_from_screen" );
}
@ -112,14 +112,14 @@ void KColorEditApp::initDocument()
doc = new KColorEditDoc(this);
doc->newDocument();
connect( doc, TQT_SIGNAL( selectionChanged( int, int ) ),
TQT_SLOT( slotSelectionChanged( int, int ) ) );
connect( doc, TQT_SIGNAL( clipboardChanged() ),
TQT_SLOT( slotClipboardChanged() ) );
connect( doc, TQT_SIGNAL( modified( bool ) ),
TQT_SLOT( slotModified( bool ) ) );
connect( doc, TQT_SIGNAL( paletteAvailable( bool ) ),
TQT_SLOT( slotPaletteAvailable( bool ) ) );
connect( doc, TQ_SIGNAL( selectionChanged( int, int ) ),
TQ_SLOT( slotSelectionChanged( int, int ) ) );
connect( doc, TQ_SIGNAL( clipboardChanged() ),
TQ_SLOT( slotClipboardChanged() ) );
connect( doc, TQ_SIGNAL( modified( bool ) ),
TQ_SLOT( slotModified( bool ) ) );
connect( doc, TQ_SIGNAL( paletteAvailable( bool ) ),
TQ_SLOT( slotPaletteAvailable( bool ) ) );
}
void KColorEditApp::initView()
@ -178,7 +178,7 @@ bool KColorEditApp::queryExit()
}
/////////////////////////////////////////////////////////////////////
// TQT_SLOT IMPLEMENTATION
// SLOT IMPLEMENTATION
/////////////////////////////////////////////////////////////////////
void KColorEditApp::slotSelectionChanged( int begin, int end )

@ -48,15 +48,15 @@ KColorEditView::KColorEditView(TQWidget *parent, const char *name) : TQSplitter(
addColorLayout->setMargin(8);
TQHBoxLayout* buttonsLayout = new TQHBoxLayout(4);
TQPushButton* addColorButton = new TQPushButton(i18n( "Add Color" ), paletteViewArea);
connect(addColorButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotAddColor() ));
connect(addColorButton, TQ_SIGNAL( clicked() ), TQ_SLOT( slotAddColor() ));
buttonsLayout->addWidget(addColorButton);
buttonsLayout->addStretch(10);
addColorLayout->addLayout(buttonsLayout);
TQCheckBox* atCursorCheckBox = new TQCheckBox(i18n( "At cursor" ), paletteViewArea);
connect(atCursorCheckBox, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( slotAddColorAtCursor(bool) ));
connect(atCursorCheckBox, TQ_SIGNAL( toggled(bool) ), TQ_SLOT( slotAddColorAtCursor(bool) ));
addColorLayout->addWidget(atCursorCheckBox);
overwriteCheckBox = new TQCheckBox(i18n( "Overwrite" ), paletteViewArea);
connect(overwriteCheckBox, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( slotAddColorOverwrite(bool) ));
connect(overwriteCheckBox, TQ_SIGNAL( toggled(bool) ), TQ_SLOT( slotAddColorOverwrite(bool) ));
slotAddColorAtCursor(false);
slotAddColorOverwrite(false);
addColorLayout->addWidget(overwriteCheckBox);
@ -66,8 +66,8 @@ KColorEditView::KColorEditView(TQWidget *parent, const char *name) : TQSplitter(
//addColorLayout->addStretch(10);
//TQCheckBox* cursorFollowsChosenColor = new TQCheckBox(i18n( "Cursor follows" ), paletteViewArea);
//addColorLayout->addWidget(cursorFollowsChosenColor);
//connect(cursorFollowsChosenColor, TQT_SIGNAL( toggled(bool) ),
// paletteView, TQT_SLOT( slotCursorFollowsChosenColor(bool) ));
//connect(cursorFollowsChosenColor, TQ_SIGNAL( toggled(bool) ),
// paletteView, TQ_SLOT( slotCursorFollowsChosenColor(bool) ));
//cursorFollowsChosenColor->toggle();
paletteView->slotCursorFollowsChosenColor(true);
layout->addLayout(addColorLayout, 0);
@ -78,7 +78,7 @@ KColorEditView::KColorEditView(TQWidget *parent, const char *name) : TQSplitter(
TQLabel* nameLabel = new TQLabel(i18n( "Name" ) + ": ", colorAtCursorFrameArea);
colorNameLayout->addWidget(nameLabel, 0);
colorName = new TQLineEdit(colorAtCursorFrameArea);
connect(colorName, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotSetColorName(const TQString&) ));
connect(colorName, TQ_SIGNAL( textChanged(const TQString&) ), TQ_SLOT( slotSetColorName(const TQString&) ));
colorNameLayout->addWidget(colorName, 10);
colorAtCursorLayout->addLayout(colorNameLayout);
TQGridLayout* colorAtCursorComponentsLayout = new TQGridLayout(3, 6, 4);

@ -65,12 +65,12 @@ LoadPaletteDlg::LoadPaletteDlg(TQWidget *parent, const char *name)
else
paletteBox->insertItem(paletteName);
}
connect(paletteBox, TQT_SIGNAL( activated(int) ), TQT_SLOT( setFileName(int) ));
connect(paletteBox, TQ_SIGNAL( activated(int) ), TQ_SLOT( setFileName(int) ));
topLayout->addWidget(paletteBox);
TQHBoxLayout* browseLayout = new TQHBoxLayout( mainWidget );
TQPushButton* browseButton = new TQPushButton(i18n( "Browse..." ),
mainWidget);
connect(browseButton, TQT_SIGNAL( clicked() ), TQT_SLOT( browseFileNames() ));
connect(browseButton, TQ_SIGNAL( clicked() ), TQ_SLOT( browseFileNames() ));
browseLayout->addWidget(browseButton);
browseLayout->addStretch(10);
topLayout->addLayout(browseLayout);

@ -35,11 +35,11 @@ PaletteView::PaletteView(const int defaultCellWidth, const int defaultCellHeight
hScrollBar = new TQScrollBar(0, 1, 1, 1, 0, TQt::Horizontal, this);
scrolledArea = new PaletteViewScrolledArea(defaultCellWidth,
defaultCellHeight, cellSpacing, scrollBar, hScrollBar, view, this);
connect(scrollBar, TQT_SIGNAL( valueChanged(int) ),
TQT_SLOT( slotRepaintScrolledArea() ));
connect(scrollBar, TQ_SIGNAL( valueChanged(int) ),
TQ_SLOT( slotRepaintScrolledArea() ));
topLayout->addWidget(scrolledArea, 0, 0);
connect(hScrollBar, TQT_SIGNAL( valueChanged(int) ),
TQT_SLOT( slotRepaintScrolledArea() ));
connect(hScrollBar, TQ_SIGNAL( valueChanged(int) ),
TQ_SLOT( slotRepaintScrolledArea() ));
TQHBoxLayout* hScrollBarLayout = new TQHBoxLayout();
hScrollBarLayout->addWidget(hScrollBar, 10);
hScrollBarLayout->addWidget(new TQWidget(this), 0);

@ -48,7 +48,7 @@ PaletteViewScrolledArea::PaletteViewScrolledArea(const int defaultCellWidth,
this->view = view;
setBackgroundMode(NoBackground);
scrollTimeoutTimer = new TQTimer(this);
connect(scrollTimeoutTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotScrollTimeout() ));
connect(scrollTimeoutTimer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotScrollTimeout() ));
scrollTimeout = true;
mousePressed = false;
cursorPositioning = false;

@ -34,24 +34,24 @@ TextEditSelection::TextEditSelection(TQWidget *parent, const char *name ) : TQWi
componentsLayout->setColStretch(4, 10);
TQLineEdit* lineEdit;
addComponent(H_INDEX, ( lineEdit = new TQLineEdit(this) ), HSV_MAX_H_VALUE, "H:", 0, 0, componentsLayout);
connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotHsvComponentChanged() ));
connect(lineEdit, TQ_SIGNAL( textChanged(const TQString&) ), TQ_SLOT( slotHsvComponentChanged() ));
addComponent(S_INDEX, ( lineEdit = new TQLineEdit(this) ), HSV_MAX_S_VALUE, "S:", 1, 0, componentsLayout);
connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotHsvComponentChanged() ));
connect(lineEdit, TQ_SIGNAL( textChanged(const TQString&) ), TQ_SLOT( slotHsvComponentChanged() ));
addComponent(V_INDEX, ( lineEdit = new TQLineEdit(this) ), HSV_MAX_V_VALUE, "V:", 2, 0, componentsLayout);
connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotHsvComponentChanged() ));
connect(lineEdit, TQ_SIGNAL( textChanged(const TQString&) ), TQ_SLOT( slotHsvComponentChanged() ));
addComponent(R_INDEX, ( lineEdit = new TQLineEdit(this) ), RGB_MAX_COMPONENT_VALUE, "R:", 0, 1, componentsLayout);
connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotRgbComponentChanged() ));
connect(lineEdit, TQ_SIGNAL( textChanged(const TQString&) ), TQ_SLOT( slotRgbComponentChanged() ));
addComponent(G_INDEX, ( lineEdit = new TQLineEdit(this) ), RGB_MAX_COMPONENT_VALUE, "G:", 1, 1, componentsLayout);
connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotRgbComponentChanged() ));
connect(lineEdit, TQ_SIGNAL( textChanged(const TQString&) ), TQ_SLOT( slotRgbComponentChanged() ));
addComponent(B_INDEX, ( lineEdit = new TQLineEdit(this) ), RGB_MAX_COMPONENT_VALUE, "B:", 2, 1, componentsLayout);
connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotRgbComponentChanged() ));
connect(lineEdit, TQ_SIGNAL( textChanged(const TQString&) ), TQ_SLOT( slotRgbComponentChanged() ));
TQHBoxLayout* rgbStringLayout = new TQHBoxLayout(2);
TQLabel* rgbStringLabel = new TQLabel("RGB " + i18n( "hex." ) + ": ", this);
rgbStringLayout->addWidget(rgbStringLabel);
rgbStringLineEdit = new TQLineEdit(this);
rgbStringLineEdit->setMinimumWidth(lineEdit->fontMetrics().width( TQString("8888888") ));
rgbStringLineEdit->setMaximumWidth(lineEdit->fontMetrics().width( TQString("888888888") ));
connect(rgbStringLineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotRgbStringChanged() ));
connect(rgbStringLineEdit, TQ_SIGNAL( textChanged(const TQString&) ), TQ_SLOT( slotRgbStringChanged() ));
rgbStringLayout->addWidget(rgbStringLineEdit);
topLayout->addLayout(rgbStringLayout);
}

@ -77,14 +77,14 @@ dviRenderer::dviRenderer(TQWidget *par)
// initialize the dvi machinery
dviFile = 0;
connect(&font_pool, TQT_SIGNAL( setStatusBarText( const TQString& ) ), this, TQT_SIGNAL( setStatusBarText( const TQString& ) ) );
connect(&font_pool, TQ_SIGNAL( setStatusBarText( const TQString& ) ), this, TQ_SIGNAL( setStatusBarText( const TQString& ) ) );
parentWidget = par;
shrinkfactor = 3;
current_page = 0;
resolutionInDPI = 0.0;
connect( &clearStatusBarTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(clearStatusBar()) );
connect( &clearStatusBarTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(clearStatusBar()) );
currentlyDrawnPage = 0;
editorCommand = "";
@ -103,7 +103,7 @@ dviRenderer::dviRenderer(TQWidget *par)
PS_interface = new ghostscript_interface();
// pass status bar messages through
connect(PS_interface, TQT_SIGNAL( setStatusBarText( const TQString& ) ), this, TQT_SIGNAL( setStatusBarText( const TQString& ) ) );
connect(PS_interface, TQ_SIGNAL( setStatusBarText( const TQString& ) ), this, TQ_SIGNAL( setStatusBarText( const TQString& ) ) );
}
@ -225,7 +225,7 @@ void dviRenderer::drawPage(double resolution, RenderedDocumentPage *page)
dviFile->sourceSpecialMarker = false;
// Show the dialog as soon as event processing is finished, and
// the program is idle
TQTimer::singleShot( 0, this, TQT_SLOT(showThatSourceInformationIsPresent()) );
TQTimer::singleShot( 0, this, TQ_SLOT(showThatSourceInformationIsPresent()) );
}
}
@ -767,8 +767,8 @@ void dviRenderer::handleSRCLink(const TQString &linkText, TQMouseEvent *e, Docum
// henceforth dimiss the output of the older programm. "If it
// hasn't failed until now, we don't care."
if (proc != 0) {
tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0);
tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0);
tqApp->disconnect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0);
tqApp->disconnect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0);
proc = 0;
}
@ -778,9 +778,9 @@ void dviRenderer::handleSRCLink(const TQString &linkText, TQMouseEvent *e, Docum
kdError(4300) << "Could not allocate ShellProcess for the editor command." << endl;
return;
}
tqApp->connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(editorCommand_terminated(TDEProcess *)));
tqApp->connect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(editorCommand_terminated(TDEProcess *)));
// Merge the editor-specific editor message here.
export_errorString = i18n("<qt>The external program<br><br><tt><strong>%1</strong></tt><br/><br/>which was used to call the editor "
"for inverse search, reported an error. You might wish to look at the <strong>document info "

@ -61,8 +61,8 @@ void dviRenderer::exportPDF()
// has been called meanwhile. See also the exportPS method.
if (proc != 0) {
// Make sure all further output of the programm is ignored
tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0);
tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0);
tqApp->disconnect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0);
tqApp->disconnect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0);
proc = 0;
}
@ -120,7 +120,7 @@ void dviRenderer::exportPDF()
if (progress != 0) {
progress->TextLabel2->setText( i18n("Please be patient") );
progress->setTotalSteps( dviFile->total_pages );
tqApp->connect(progress, TQT_SIGNAL(finished()), this, TQT_SLOT(abortExternalProgramm()));
tqApp->connect(progress, TQ_SIGNAL(finished()), this, TQ_SLOT(abortExternalProgramm()));
}
proc = new KShellProcess();
@ -128,11 +128,11 @@ void dviRenderer::exportPDF()
kdError(4300) << "Could not allocate ShellProcess for the dvipdfm command." << endl;
return;
}
tqApp->disconnect( this, TQT_SIGNAL(mySignal()), 0, 0 );
tqApp->disconnect( this, TQ_SIGNAL(mySignal()), 0, 0 );
tqApp->connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(dvips_terminated(TDEProcess *)));
tqApp->connect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(dvips_terminated(TDEProcess *)));
export_errorString = i18n("<qt>The external program 'dvipdf', which was used to export the file, reported an error. "
"You might wish to look at the <strong>document info dialog</strong> which you will "
@ -167,8 +167,8 @@ void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrin
// enough to ignore the exit status of the editor if another command
// has been called meanwhile. See also the exportPDF method.
if (proc != 0) {
tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0);
tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0);
tqApp->disconnect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0);
tqApp->disconnect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0);
proc = 0;
}
@ -223,7 +223,7 @@ void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrin
if (progress != 0) {
progress->TextLabel2->setText( i18n("Please be patient") );
progress->setTotalSteps( dviFile->total_pages );
tqApp->connect(progress, TQT_SIGNAL(finished()), this, TQT_SLOT(abortExternalProgramm()));
tqApp->connect(progress, TQ_SIGNAL(finished()), this, TQ_SLOT(abortExternalProgramm()));
}
// There is a major problem with dvips, at least 5.86 and lower: the
@ -294,9 +294,9 @@ void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrin
return;
}
tqApp->connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(dvips_terminated(TDEProcess *)));
tqApp->connect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(proc, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(dvips_terminated(TDEProcess *)));
export_errorString = i18n("<qt>The external program 'dvips', which was used to export the file, reported an error. "
"You might wish to look at the <strong>document info dialog</strong> which you will "
"find in the File-Menu for a precise error report.</qt>") ;

@ -304,8 +304,8 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
// If PK fonts are generated, the kpsewhich command will re-route
// the output of MetaFont into its stderr. Here we make sure this
// output is intercepted and parsed.
tqApp->connect(&kpsewhichIO, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
this, TQT_SLOT(mf_output_receiver(TDEProcess *, char *, int)));
tqApp->connect(&kpsewhichIO, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
this, TQ_SLOT(mf_output_receiver(TDEProcess *, char *, int)));
kpsewhichIO.setUseShell(true);

@ -61,7 +61,7 @@ fontProgressDialog::fontProgressDialog(const TQString& helpIndex, const TQString
progress = 0;
procIO = 0;
tqApp->connect(this, TQT_SIGNAL(finished()), this, TQT_SLOT(killProcIO()));
tqApp->connect(this, TQ_SIGNAL(finished()), this, TQ_SLOT(killProcIO()));
}

@ -67,13 +67,13 @@ KDVIMultiPage::KDVIMultiPage(TQWidget *parentWidget, const char *widgetName, TQO
DVIRenderer.setName("DVI renderer");
setRenderer(&DVIRenderer);
docInfoAction = new TDEAction(i18n("Document &Info"), "application-vnd.tde.info", 0, &DVIRenderer, TQT_SLOT(showInfo()), actionCollection(), "info_dvi");
embedPSAction = new TDEAction(i18n("Embed External PostScript Files..."), 0, this, TQT_SLOT(slotEmbedPostScript()), actionCollection(), "embed_postscript");
new TDEAction(i18n("Enable All Warnings && Messages"), 0, this, TQT_SLOT(doEnableWarnings()), actionCollection(), "enable_msgs");
exportPSAction = new TDEAction(i18n("PostScript..."), 0, &DVIRenderer, TQT_SLOT(exportPS()), actionCollection(), "export_postscript");
exportPDFAction = new TDEAction(i18n("PDF..."), 0, &DVIRenderer, TQT_SLOT(exportPDF()), actionCollection(), "export_pdf");
docInfoAction = new TDEAction(i18n("Document &Info"), "application-vnd.tde.info", 0, &DVIRenderer, TQ_SLOT(showInfo()), actionCollection(), "info_dvi");
embedPSAction = new TDEAction(i18n("Embed External PostScript Files..."), 0, this, TQ_SLOT(slotEmbedPostScript()), actionCollection(), "embed_postscript");
new TDEAction(i18n("Enable All Warnings && Messages"), 0, this, TQ_SLOT(doEnableWarnings()), actionCollection(), "enable_msgs");
exportPSAction = new TDEAction(i18n("PostScript..."), 0, &DVIRenderer, TQ_SLOT(exportPS()), actionCollection(), "export_postscript");
exportPDFAction = new TDEAction(i18n("PDF..."), 0, &DVIRenderer, TQ_SLOT(exportPDF()), actionCollection(), "export_pdf");
KStdAction::tipOfDay(this, TQT_SLOT(showTip()), actionCollection(), "help_tipofday");
KStdAction::tipOfDay(this, TQ_SLOT(showTip()), actionCollection(), "help_tipofday");
setXMLFile("kdvi_part.rc");
@ -81,7 +81,7 @@ KDVIMultiPage::KDVIMultiPage(TQWidget *parentWidget, const char *widgetName, TQO
enableActions(false);
// Show tip of the day, when the first main window is shown.
TQTimer::singleShot(0,this,TQT_SLOT(showTipOnStart()));
TQTimer::singleShot(0,this,TQ_SLOT(showTipOnStart()));
}
@ -435,12 +435,12 @@ DocumentWidget* KDVIMultiPage::createDocumentWidget()
"singlePageWidget" );
// Lets not forget the connections we make in the KMultiPage
connect(documentWidget, TQT_SIGNAL(clearSelection()), this, TQT_SLOT(clearSelection()));
connect(this, TQT_SIGNAL(enableMoveTool(bool)), documentWidget, TQT_SLOT(slotEnableMoveTool(bool)));
connect(documentWidget, TQ_SIGNAL(clearSelection()), this, TQ_SLOT(clearSelection()));
connect(this, TQ_SIGNAL(enableMoveTool(bool)), documentWidget, TQ_SLOT(slotEnableMoveTool(bool)));
// Handle source links
connect(documentWidget, TQT_SIGNAL(SRCLink(const TQString&, TQMouseEvent*, DocumentWidget*)), getRenderer(),
TQT_SLOT(handleSRCLink(const TQString& ,TQMouseEvent*, DocumentWidget*)));
connect(documentWidget, TQ_SIGNAL(SRCLink(const TQString&, TQMouseEvent*, DocumentWidget*)), getRenderer(),
TQ_SLOT(handleSRCLink(const TQString& ,TQMouseEvent*, DocumentWidget*)));
return documentWidget;
}

@ -73,8 +73,8 @@ optionDialogSpecialWidget::optionDialogSpecialWidget( TQWidget* parent, const c
usersEditorCommand = currentEditorCommand;
slotComboBox(i);
connect(urll, TQT_SIGNAL(leftClickedURL(const TQString&)), this, TQT_SLOT(slotExtraHelpButton(const TQString&)));
connect(editorChoice, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotComboBox( int ) ) );
connect(urll, TQ_SIGNAL(leftClickedURL(const TQString&)), this, TQ_SLOT(slotExtraHelpButton(const TQString&)));
connect(editorChoice, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotComboBox( int ) ) );
// Editor description strings (and their translations) vary in
// size. Find the longest description string available to make sure
@ -87,7 +87,7 @@ optionDialogSpecialWidget::optionDialogSpecialWidget( TQWidget* parent, const c
}
editorDescription->setMinimumWidth(maximumWidth+10);
connect(kcfg_EditorCommand, TQT_SIGNAL( textChanged (const TQString &) ), this, TQT_SLOT( slotUserDefdEditorCommand( const TQString & ) ) );
connect(kcfg_EditorCommand, TQ_SIGNAL( textChanged (const TQString &) ), this, TQ_SLOT( slotUserDefdEditorCommand( const TQString & ) ) );
}
optionDialogSpecialWidget::~optionDialogSpecialWidget()

@ -213,12 +213,12 @@ TopLevel::TopLevel (TQWidget *, const char *name)
vsb = new TQScrollBar( TQt::Vertical,faxqtwin,"scrollBar" );
vsb->hide();
connect( vsb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(scrollVert(int)) );
connect( vsb, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(scrollVert(int)) );
// Create a Horizontal scroll bar
hsb = new TQScrollBar( TQt::Horizontal,faxqtwin,"scrollBar" );
connect( hsb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(scrollHorz(int)) );
connect( hsb, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(scrollHorz(int)) );
hsb->hide();
setCentralWidget(faxqtwin);
@ -236,43 +236,43 @@ TopLevel::~TopLevel()
void TopLevel::setupMenuBar()
{
// File menu
KStdAction::open( this, TQT_SLOT( faxOpen() ), actionCollection() );
actRecent = KStdAction::openRecent( this, TQT_SLOT( faxOpen( const KURL & ) ),
KStdAction::open( this, TQ_SLOT( faxOpen() ), actionCollection() );
actRecent = KStdAction::openRecent( this, TQ_SLOT( faxOpen( const KURL & ) ),
actionCollection() );
actSave = KStdAction::save( this, TQT_SLOT( faxSave() ), actionCollection() );
actSaveAs = KStdAction::saveAs( this, TQT_SLOT( faxSaveAs() ),
actSave = KStdAction::save( this, TQ_SLOT( faxSave() ), actionCollection() );
actSaveAs = KStdAction::saveAs( this, TQ_SLOT( faxSaveAs() ),
actionCollection() );
actPrint = KStdAction::print( this, TQT_SLOT( print() ), actionCollection() );
KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() );
actPrint = KStdAction::print( this, TQ_SLOT( print() ), actionCollection() );
KStdAction::quit( this, TQ_SLOT( close() ), actionCollection() );
actAdd = new TDEAction( i18n( "A&dd..." ), "document-new", TDEShortcut(), this,
TQT_SLOT( faxAdd() ), actionCollection(), "file_add_fax" );
TQ_SLOT( faxAdd() ), actionCollection(), "file_add_fax" );
actRecent->setMaxItems( 5 );
// View Menu
actSize = KStdAction::actualSize( this, TQT_SLOT( actualSize() ),
actSize = KStdAction::actualSize( this, TQ_SLOT( actualSize() ),
actionCollection() );
actZoomIn = KStdAction::zoomIn( this, TQT_SLOT( zoomin() ), actionCollection() );
actZoomOut = KStdAction::zoomOut( this, TQT_SLOT( zoomout() ),
actZoomIn = KStdAction::zoomIn( this, TQ_SLOT( zoomin() ), actionCollection() );
actZoomOut = KStdAction::zoomOut( this, TQ_SLOT( zoomout() ),
actionCollection() );
actRotate = new TDEAction( i18n( "&Rotate Page" ), "rotate", TDEShortcut(), this,
TQT_SLOT( rotatePage() ), actionCollection(), "view_rotate" );
TQ_SLOT( rotatePage() ), actionCollection(), "view_rotate" );
actMirror = new TDEAction( i18n( "Mirror Page" ), TDEShortcut(), this,
TQT_SLOT( mirrorPage() ), actionCollection(), "view_mirror" );
TQ_SLOT( mirrorPage() ), actionCollection(), "view_mirror" );
actFlip = new TDEAction( i18n( "&Flip Page" ), TDEShortcut(), this,
TQT_SLOT( flipPage() ), actionCollection(), "view_flip" );
TQ_SLOT( flipPage() ), actionCollection(), "view_flip" );
// Go menu
actNext = KStdAction::next( this, TQT_SLOT( nextPage() ), actionCollection() );
actPrev = KStdAction::prior( this, TQT_SLOT( prevPage() ), actionCollection() );
actFirst = KStdAction::firstPage( this, TQT_SLOT( firstPage() ),
actNext = KStdAction::next( this, TQ_SLOT( nextPage() ), actionCollection() );
actPrev = KStdAction::prior( this, TQ_SLOT( prevPage() ), actionCollection() );
actFirst = KStdAction::firstPage( this, TQ_SLOT( firstPage() ),
actionCollection() );
actLast = KStdAction::lastPage( this, TQT_SLOT( lastPage() ),
actLast = KStdAction::lastPage( this, TQ_SLOT( lastPage() ),
actionCollection() );
// Settings menu
KStdAction::preferences( this, TQT_SLOT( faxoptions() ), actionCollection() );
KStdAction::preferences( this, TQ_SLOT( faxoptions() ), actionCollection() );
}
void TopLevel::setupStatusBar()

@ -143,17 +143,17 @@ OptionsDialog::OptionsDialog( TQWidget *parent, const char *name)
hbl4->addWidget( rawlabel );
g3 = new TQRadioButton("G3",rawgroup,"g3");
connect(g3,TQT_SIGNAL(clicked()), this, TQT_SLOT(g3toggled()));
connect(g3,TQ_SIGNAL(clicked()), this, TQ_SLOT(g3toggled()));
hbl4->addSpacing( 20 );
hbl4->addWidget( g3 );
g32d = new TQRadioButton("G32d",rawgroup,"g32d");
connect(g32d,TQT_SIGNAL(clicked()), this,TQT_SLOT(g32toggled()));
connect(g32d,TQ_SIGNAL(clicked()), this,TQ_SLOT(g32toggled()));
hbl4->addSpacing( 30 );
hbl4->addWidget( g32d );
g4 = new TQRadioButton("G4",rawgroup,"g4");
connect(g4,TQT_SIGNAL(clicked()), this, TQT_SLOT(g4toggled()));
connect(g4,TQ_SIGNAL(clicked()), this, TQ_SLOT(g4toggled()));
hbl4->addSpacing( 30 );
hbl4->addWidget( g4 );
@ -179,7 +179,7 @@ OptionsDialog::OptionsDialog( TQWidget *parent, const char *name)
hbl5->addWidget( heightedit );
geomauto = new TQCheckBox(i18n("Auto"),bg,"geomauto");
connect(geomauto,TQT_SIGNAL(clicked()),this,TQT_SLOT(geomtoggled()));
connect(geomauto,TQ_SIGNAL(clicked()),this,TQ_SLOT(geomtoggled()));
hbl5->addSpacing( 10 );
hbl5->addWidget( geomauto );
}

@ -53,8 +53,8 @@ GammaCtrl::GammaCtrl(TQWidget *parent, XVidExtWrap *xvid, int channel, \
slider->setRange(0, maxslider);
slider->setTickInterval(2);
slider->setValue(setslider);
connect(slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(setGamma(int)));
connect(slider, TQT_SIGNAL(sliderPressed()), TQT_SLOT(pressed()));
connect(slider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(setGamma(int)));
connect(slider, TQ_SIGNAL(sliderPressed()), TQ_SLOT(pressed()));
textfield = new DisplayNumber(this, 4, 2);
textfield->setText(setgamma);

@ -147,8 +147,8 @@ void KGamma::setupUI() {
TQWidgetStack *stack = new TQWidgetStack( this );
stack->setFrameStyle( TQFrame::Box | TQFrame::Raised );
connect( combo, TQT_SIGNAL( activated( int ) ),
stack, TQT_SLOT( raiseWidget( int ) ) );
connect( combo, TQ_SIGNAL( activated( int ) ),
stack, TQ_SLOT( raiseWidget( int ) ) );
TQPixmap background;
background.load(locate("data", "kgamma/pics/background.png"));
@ -212,29 +212,29 @@ void KGamma::setupUI() {
bluelabel->setText(i18n("Blue:"));
gctrl = new GammaCtrl(this, xv);
connect(gctrl, TQT_SIGNAL(gammaChanged(int)), TQT_SLOT(Changed()));
connect(gctrl, TQT_SIGNAL(gammaChanged(int)), TQT_SLOT(SyncScreens()));
connect(gctrl, TQ_SIGNAL(gammaChanged(int)), TQ_SLOT(Changed()));
connect(gctrl, TQ_SIGNAL(gammaChanged(int)), TQ_SLOT(SyncScreens()));
gammalabel->setBuddy( gctrl );
rgctrl = new GammaCtrl(this, xv, XVidExtWrap::Red);
connect(rgctrl, TQT_SIGNAL(gammaChanged(int)), TQT_SLOT(Changed()));
connect(rgctrl, TQT_SIGNAL(gammaChanged(int)), TQT_SLOT(SyncScreens()));
connect(gctrl, TQT_SIGNAL(gammaChanged(int)), rgctrl, TQT_SLOT(setCtrl(int)));
connect(rgctrl, TQT_SIGNAL(gammaChanged(int)), gctrl, TQT_SLOT(suspend()));
connect(rgctrl, TQ_SIGNAL(gammaChanged(int)), TQ_SLOT(Changed()));
connect(rgctrl, TQ_SIGNAL(gammaChanged(int)), TQ_SLOT(SyncScreens()));
connect(gctrl, TQ_SIGNAL(gammaChanged(int)), rgctrl, TQ_SLOT(setCtrl(int)));
connect(rgctrl, TQ_SIGNAL(gammaChanged(int)), gctrl, TQ_SLOT(suspend()));
redlabel->setBuddy( rgctrl );
ggctrl = new GammaCtrl(this, xv, XVidExtWrap::Green);
connect(ggctrl, TQT_SIGNAL(gammaChanged(int)), TQT_SLOT(Changed()));
connect(ggctrl, TQT_SIGNAL(gammaChanged(int)), TQT_SLOT(SyncScreens()));
connect(gctrl, TQT_SIGNAL(gammaChanged(int)), ggctrl, TQT_SLOT(setCtrl(int)));
connect(ggctrl, TQT_SIGNAL(gammaChanged(int)), gctrl, TQT_SLOT(suspend()));
connect(ggctrl, TQ_SIGNAL(gammaChanged(int)), TQ_SLOT(Changed()));
connect(ggctrl, TQ_SIGNAL(gammaChanged(int)), TQ_SLOT(SyncScreens()));
connect(gctrl, TQ_SIGNAL(gammaChanged(int)), ggctrl, TQ_SLOT(setCtrl(int)));
connect(ggctrl, TQ_SIGNAL(gammaChanged(int)), gctrl, TQ_SLOT(suspend()));
greenlabel->setBuddy( ggctrl );
bgctrl = new GammaCtrl(this, xv, XVidExtWrap::Blue);
connect(bgctrl, TQT_SIGNAL(gammaChanged(int)), TQT_SLOT(Changed()));
connect(bgctrl, TQT_SIGNAL(gammaChanged(int)), TQT_SLOT(SyncScreens()));
connect(gctrl, TQT_SIGNAL(gammaChanged(int)), bgctrl, TQT_SLOT(setCtrl(int)));
connect(bgctrl, TQT_SIGNAL(gammaChanged(int)), gctrl, TQT_SLOT(suspend()));
connect(bgctrl, TQ_SIGNAL(gammaChanged(int)), TQ_SLOT(Changed()));
connect(bgctrl, TQ_SIGNAL(gammaChanged(int)), TQ_SLOT(SyncScreens()));
connect(gctrl, TQ_SIGNAL(gammaChanged(int)), bgctrl, TQ_SLOT(setCtrl(int)));
connect(bgctrl, TQ_SIGNAL(gammaChanged(int)), gctrl, TQ_SLOT(suspend()));
bluelabel->setBuddy( bgctrl );
TQGridLayout *grid = new TQGridLayout(4, 9);
@ -256,17 +256,17 @@ void KGamma::setupUI() {
TQHBox *options = new TQHBox(this);
xf86cfgbox = new TQCheckBox( i18n("Save settings to X-Server Config"), options );
connect(xf86cfgbox, TQT_SIGNAL(clicked()), TQT_SLOT(changeConfig()));
connect(xf86cfgbox, TQ_SIGNAL(clicked()), TQ_SLOT(changeConfig()));
syncbox = new TQCheckBox( i18n("Sync screens"), options );
connect(syncbox, TQT_SIGNAL(clicked()), TQT_SLOT(SyncScreens()));
connect(syncbox, TQT_SIGNAL(clicked()), TQT_SLOT(Changed()));
connect(syncbox, TQ_SIGNAL(clicked()), TQ_SLOT(SyncScreens()));
connect(syncbox, TQ_SIGNAL(clicked()), TQ_SLOT(Changed()));
screenselect = new TQComboBox( options );
for ( int i = 0; i < ScreenCount; i++ )
screenselect->insertItem( i18n("Screen %1").arg(i+1) );
screenselect->setCurrentItem(currentScreen);
connect(screenselect, TQT_SIGNAL(activated(int)), TQT_SLOT(changeScreen(int)));
connect(screenselect, TQ_SIGNAL(activated(int)), TQ_SLOT(changeScreen(int)));
options->setSpacing( 10 );
options->setStretchFactor( xf86cfgbox, 10 );

@ -76,10 +76,10 @@ KDSCErrorDialog::KDSCErrorDialog( TQWidget* parent ) :
_ignoreAllButton = new TQPushButton( i18n("Ignore All"), this );
hbox->addWidget( _ignoreAllButton );
connect( _okButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotOk() ) );
connect( _cancelButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotCancel() ) );
connect( _ignoreAllButton, TQT_SIGNAL( clicked() ),
this, TQT_SLOT( slotIgnoreAll() ) );
connect( _okButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotOk() ) );
connect( _cancelButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotCancel() ) );
connect( _ignoreAllButton, TQ_SIGNAL( clicked() ),
this, TQ_SLOT( slotIgnoreAll() ) );
}
KDSCErrorHandler::Response KDSCErrorDialog::error( const KDSCError& err )

@ -66,16 +66,16 @@ KGVMiniWidget::KGVMiniWidget( KGVPart* part, const char* name ) :
static_cast< TQPrinter::PageSize >( locale.pageSize() ) );
_thumbnailService = new ThumbnailService( this );
connect( this, TQT_SIGNAL( newPageShown( int ) ),
TQT_SLOT( updateStatusBarText( int ) ) );
connect( this, TQ_SIGNAL( newPageShown( int ) ),
TQ_SLOT( updateStatusBarText( int ) ) );
}
void KGVMiniWidget::setDocument( KGVDocument* document )
{
_document = document;
if( _document )
connect( _document, TQT_SIGNAL( completed() ),
TQT_SLOT( slotDocumentOpened() ) );
connect( _document, TQ_SIGNAL( completed() ),
TQ_SLOT( slotDocumentOpened() ) );
}
TQString KGVMiniWidget::pageSizeToString( TQPrinter::PageSize pageSize )
@ -109,8 +109,8 @@ void KGVMiniWidget::setPSWidget( KPSWidget* psWidget )
{
_psWidget = psWidget;
// setMagnification( _magnification );
connect( _psWidget, TQT_SIGNAL( newPageImage( TQPixmap ) ),
this, TQT_SLOT( sendPage() ) );
connect( _psWidget, TQ_SIGNAL( newPageImage( TQPixmap ) ),
this, TQ_SLOT( sendPage() ) );
}
void KGVMiniWidget::goToPage()
@ -452,8 +452,8 @@ void KGVMiniWidget::showPage( int pagenumber )
}
}
// Do this after ajusting pagenumber above
_thumbnailService->cancelRequests( -1 , _part->scrollBox(), TQT_SLOT( setThumbnail( TQPixmap ) ) );
_thumbnailService->delayedGetThumbnail( pagenumber, _part->scrollBox(), TQT_SLOT( setThumbnail( TQPixmap ) ), true );
_thumbnailService->cancelRequests( -1 , _part->scrollBox(), TQ_SLOT( setThumbnail( TQPixmap ) ) );
_thumbnailService->delayedGetThumbnail( pagenumber, _part->scrollBox(), TQ_SLOT( setThumbnail( TQPixmap ) ), true );
emit newPageShown( pagenumber );
}

@ -94,28 +94,28 @@ KGVPart::KGVPart( TQWidget* parentWidget, const char*,
setProgressInfoEnabled( !args.contains( "Browser/View") );
_document = new KGVDocument( this );
connect( _document, TQT_SIGNAL( fileChangeFailed() ),
this, TQT_SLOT( slotCancelWatch() ) );
connect( _document, TQT_SIGNAL( completed() ),
this, TQT_SLOT( slotOpenFileCompleted() ) );
connect( _document, TQT_SIGNAL( canceled( const TQString& ) ),
this, TQT_SIGNAL( canceled( const TQString& ) ) );
connect( _document, TQ_SIGNAL( fileChangeFailed() ),
this, TQ_SLOT( slotCancelWatch() ) );
connect( _document, TQ_SIGNAL( completed() ),
this, TQ_SLOT( slotOpenFileCompleted() ) );
connect( _document, TQ_SIGNAL( canceled( const TQString& ) ),
this, TQ_SIGNAL( canceled( const TQString& ) ) );
_fileWatcher = new KDirWatch( this );
connect( _fileWatcher, TQT_SIGNAL( dirty( const TQString& ) ),
this, TQT_SLOT( slotFileDirty( const TQString& ) ) );
connect( _dirtyHandler, TQT_SIGNAL( timeout() ),
this, TQT_SLOT( slotDoFileDirty() ) );
connect( _fileWatcher, TQ_SIGNAL( dirty( const TQString& ) ),
this, TQ_SLOT( slotFileDirty( const TQString& ) ) );
connect( _dirtyHandler, TQ_SIGNAL( timeout() ),
this, TQ_SLOT( slotDoFileDirty() ) );
// Setup main widget
_mainWidget = new KGVMainWidget( parentWidget );
_mainWidget->setFocusPolicy( TQWidget::StrongFocus );
_mainWidget->installEventFilter( this );
_mainWidget->setAcceptDrops( true );
connect( _mainWidget, TQT_SIGNAL( spacePressed() ),
this, TQT_SLOT( slotReadDown() ) );
connect( _mainWidget, TQT_SIGNAL( urlDropped( const KURL& ) ),
this, TQT_SLOT( openURL( const KURL& ) ) );
connect( _mainWidget, TQ_SIGNAL( spacePressed() ),
this, TQ_SLOT( slotReadDown() ) );
connect( _mainWidget, TQ_SIGNAL( urlDropped( const KURL& ) ),
this, TQ_SLOT( openURL( const KURL& ) ) );
TQHBoxLayout* hlay = new TQHBoxLayout( _mainWidget, 0, 0 );
TQVBoxLayout* vlay = new TQVBoxLayout( hlay );
@ -146,17 +146,17 @@ KGVPart::KGVPart( TQWidget* parentWidget, const char*,
_psWidget = new KPSWidget( _pageDecorator );
_psWidget->readSettings();
_pageView->setPage( _pageDecorator );
connect( _psWidget, TQT_SIGNAL( output( char*, int ) ),
this, TQT_SLOT( slotGhostscriptOutput( char*, int ) ) );
connect( _psWidget, TQ_SIGNAL( output( char*, int ) ),
this, TQ_SLOT( slotGhostscriptOutput( char*, int ) ) );
connect( _psWidget, TQT_SIGNAL( ghostscriptError( const TQString& ) ),
this, TQT_SLOT( slotGhostscriptError( const TQString& ) ) );
connect( _psWidget, TQ_SIGNAL( ghostscriptError( const TQString& ) ),
this, TQ_SLOT( slotGhostscriptError( const TQString& ) ) );
_logWindow = new LogWindow( i18n( "Ghostscript Messages" ), _mainWidget, "logwindow" );
_showLogWindow = false;
connect( _logWindow, TQT_SIGNAL( configureGS() ), TQT_SLOT( slotConfigure() ) );
connect( _logWindow, TQ_SIGNAL( configureGS() ), TQ_SLOT( slotConfigure() ) );
_docManager = new KGVMiniWidget( this );
_docManager->setPSWidget( _psWidget );
@ -165,57 +165,57 @@ KGVPart::KGVPart( TQWidget* parentWidget, const char*,
_markList = new MarkList( _mainWidget, "marklist", _docManager );
_markList->setFixedWidth( PAGELIST_WIDTH );
vlay->addWidget( _markList, 1 );
connect( _markList, TQT_SIGNAL( contextMenuRequested ( int, int, const TQPoint& ) ),
this, TQT_SLOT( showPopup( int, int, const TQPoint& ) ) );
connect( _markList, TQT_SIGNAL( selected( int ) ),
_docManager, TQT_SLOT( goToPage( int ) ) );
connect( _docManager, TQT_SIGNAL( newPageShown( int ) ),
_markList, TQT_SLOT( select( int ) ) );
connect( _docManager, TQT_SIGNAL( setStatusBarText( const TQString& ) ),
this, TQT_SIGNAL( setStatusBarText( const TQString& ) ) );
connect( _scrollBox, TQT_SIGNAL( valueChangedRelative( int, int ) ),
_pageView, TQT_SLOT( scrollBy( int, int ) ) );
connect( _pageView, TQT_SIGNAL( pageSizeChanged( const TQSize& ) ),
_scrollBox, TQT_SLOT( setPageSize( const TQSize& ) ) );
connect( _pageView, TQT_SIGNAL( viewSizeChanged( const TQSize& ) ),
_scrollBox, TQT_SLOT( setViewSize( const TQSize& ) ) );
connect( _pageView, TQT_SIGNAL( contentsMoving( int, int ) ),
_scrollBox, TQT_SLOT( setViewPos( int, int ) ) );
connect( _markList, TQ_SIGNAL( contextMenuRequested ( int, int, const TQPoint& ) ),
this, TQ_SLOT( showPopup( int, int, const TQPoint& ) ) );
connect( _markList, TQ_SIGNAL( selected( int ) ),
_docManager, TQ_SLOT( goToPage( int ) ) );
connect( _docManager, TQ_SIGNAL( newPageShown( int ) ),
_markList, TQ_SLOT( select( int ) ) );
connect( _docManager, TQ_SIGNAL( setStatusBarText( const TQString& ) ),
this, TQ_SIGNAL( setStatusBarText( const TQString& ) ) );
connect( _scrollBox, TQ_SIGNAL( valueChangedRelative( int, int ) ),
_pageView, TQ_SLOT( scrollBy( int, int ) ) );
connect( _pageView, TQ_SIGNAL( pageSizeChanged( const TQSize& ) ),
_scrollBox, TQ_SLOT( setPageSize( const TQSize& ) ) );
connect( _pageView, TQ_SIGNAL( viewSizeChanged( const TQSize& ) ),
_scrollBox, TQ_SLOT( setViewSize( const TQSize& ) ) );
connect( _pageView, TQ_SIGNAL( contentsMoving( int, int ) ),
_scrollBox, TQ_SLOT( setViewPos( int, int ) ) );
//-- File Menu ----------------------------------------------------------
KStdAction::saveAs( document(), TQT_SLOT( saveAs() ),
KStdAction::saveAs( document(), TQ_SLOT( saveAs() ),
actionCollection() );
new TDEAction( i18n( "Document &Info" ), 0,
miniWidget(), TQT_SLOT( info() ),
miniWidget(), TQ_SLOT( info() ),
actionCollection(), "info" );
//-- Edit Menu -----------------------------------------------------
_popup = new TDEPopupMenu( _markList, "marklist_menu" );
TDEAction *act = new TDEAction( i18n( "Mark Current Page" ), "flag", CTRL+SHIFT+Key_M,
_markList, TQT_SLOT( markCurrent() ),
_markList, TQ_SLOT( markCurrent() ),
actionCollection(), "mark_current" );
act->plug( _popup );
act = new TDEAction( i18n( "Mark &All Pages" ), 0,
_markList, TQT_SLOT( markAll() ),
_markList, TQ_SLOT( markAll() ),
actionCollection(), "mark_all" );
act->plug( _popup );
act = new TDEAction( i18n( "Mark &Even Pages" ), 0,
_markList, TQT_SLOT( markEven() ),
_markList, TQ_SLOT( markEven() ),
actionCollection(), "mark_even" );
act->plug( _popup );
act = new TDEAction( i18n( "Mark &Odd Pages" ), 0,
_markList, TQT_SLOT( markOdd() ),
_markList, TQ_SLOT( markOdd() ),
actionCollection(), "mark_odd" );
act->plug( _popup );
act = new TDEAction( i18n( "&Toggle Page Marks" ), 0,
_markList, TQT_SLOT( toggleMarks() ),
_markList, TQ_SLOT( toggleMarks() ),
actionCollection(), "toggle" );
act->plug( _popup );
act = new TDEAction( i18n("&Remove Page Marks"), 0,
_markList, TQT_SLOT( removeMarks() ),
_markList, TQ_SLOT( removeMarks() ),
actionCollection(), "remove" );
act->plug( _popup );
@ -228,7 +228,7 @@ KGVPart::KGVPart( TQWidget* parentWidget, const char*,
actionCollection(), "media_menu" );
_flick = new TDEToggleAction( i18n( "No &Flicker" ), 0,
this, TQT_SLOT( slotFlicker() ),
this, TQ_SLOT( slotFlicker() ),
actionCollection(), "no_flicker" );
TQStringList orientations;
@ -239,22 +239,22 @@ KGVPart::KGVPart( TQWidget* parentWidget, const char*,
orientations.append( i18n( "Seascape" ) );
_selectOrientation->setItems( orientations );
connect( _selectOrientation, TQT_SIGNAL( activated( int ) ),
this, TQT_SLOT( slotOrientation( int ) ) );
connect( _selectMedia, TQT_SIGNAL( activated( int ) ),
this, TQT_SLOT( slotMedia( int ) ) );
connect( _selectOrientation, TQ_SIGNAL( activated( int ) ),
this, TQ_SLOT( slotOrientation( int ) ) );
connect( _selectMedia, TQ_SIGNAL( activated( int ) ),
this, TQ_SLOT( slotMedia( int ) ) );
{
TDEShortcut zoomInShort = TDEStdAccel::zoomIn();
zoomInShort.append( KKey( CTRL+Key_Equal ) );
_zoomIn = KStdAction::zoomIn( this, TQT_SLOT( slotZoomIn() ),
_zoomIn = KStdAction::zoomIn( this, TQ_SLOT( slotZoomIn() ),
actionCollection(), "zoomIn" );
_zoomIn->setShortcut( zoomInShort );
}
_zoomOut = KStdAction::zoomOut( this, TQT_SLOT( slotZoomOut() ),
_zoomOut = KStdAction::zoomOut( this, TQ_SLOT( slotZoomOut() ),
actionCollection(), "zoomOut" );
_zoomTo = new TDESelectAction( i18n( "Zoom" ), "viewmag", 0, actionCollection(), "zoomTo" );
connect( _zoomTo, TQT_SIGNAL( activated( const TQString & ) ), this, TQT_SLOT( slotZoom( const TQString& ) ) );
connect( _zoomTo, TQ_SIGNAL( activated( const TQString & ) ), this, TQ_SLOT( slotZoom( const TQString& ) ) );
_zoomTo->setEditable( true );
_zoomTo->clear();
TQValueList<double> mags = DisplayOptions::normalMagnificationValues();
@ -274,41 +274,41 @@ KGVPart::KGVPart( TQWidget* parentWidget, const char*,
_zoomTo->setCurrentItem( idx );
_fitWidth = new TDEAction( i18n( "&Fit to Page Width" ), 0, this,
TQT_SLOT( slotFitToPage() ), actionCollection(),
TQ_SLOT( slotFitToPage() ), actionCollection(),
"fit_to_page");
_fitScreen = new TDEAction( i18n( "&Fit to Screen" ), Key_S, this,
TQT_SLOT( slotFitToScreen() ), actionCollection(),
TQ_SLOT( slotFitToScreen() ), actionCollection(),
"fit_to_screen");
_prevPage = new TDEAction( i18n( "Previous Page" ), CTRL+Key_PageUp, this, TQT_SLOT( slotPrevPage() ),
_prevPage = new TDEAction( i18n( "Previous Page" ), CTRL+Key_PageUp, this, TQ_SLOT( slotPrevPage() ),
actionCollection(), "prevPage" );
_prevPage->setWhatsThis( i18n( "Moves to the previous page of the document" ) );
_nextPage = new TDEAction( i18n( "Next Page" ), CTRL + Key_PageDown, this, TQT_SLOT( slotNextPage() ),
_nextPage = new TDEAction( i18n( "Next Page" ), CTRL + Key_PageDown, this, TQ_SLOT( slotNextPage() ),
actionCollection(), "nextPage" );
_nextPage->setWhatsThis( i18n( "Moves to the next page of the document" ) );
_firstPage = KStdAction::firstPage( this, TQT_SLOT( slotGotoStart() ),
_firstPage = KStdAction::firstPage( this, TQ_SLOT( slotGotoStart() ),
actionCollection(), "goToStart" );
_firstPage->setWhatsThis( i18n( "Moves to the first page of the document" ) );
_lastPage = KStdAction::lastPage( this, TQT_SLOT( slotGotoEnd() ),
_lastPage = KStdAction::lastPage( this, TQ_SLOT( slotGotoEnd() ),
actionCollection(), "goToEnd" );
_lastPage->setWhatsThis( i18n( "Moves to the last page of the document" ) );
TDEShortcut readUpShort = TDEStdAccel::shortcut( TDEStdAccel::Prior );
readUpShort.append( KKey( SHIFT+Key_Space ) );
_readUp = new TDEAction( i18n( "Read Up" ), "go-up",
readUpShort, this, TQT_SLOT( slotReadUp() ),
readUpShort, this, TQ_SLOT( slotReadUp() ),
actionCollection(), "readUp" );
TDEShortcut readDownShort = TDEStdAccel::shortcut( TDEStdAccel::Next );
readDownShort.append( KKey( Key_Space ) );
_readDown = new TDEAction( i18n( "Read Down" ), "go-down",
readDownShort, this, TQT_SLOT( slotReadDown() ),
readDownShort, this, TQ_SLOT( slotReadDown() ),
actionCollection(), "readDown" );
_gotoPage = KStdAction::gotoPage( _docManager, TQT_SLOT( goToPage() ),
_gotoPage = KStdAction::gotoPage( _docManager, TQ_SLOT( goToPage() ),
actionCollection(), "goToPage" );
//-- Settings Menu ------------------------------------------------------
@ -316,7 +316,7 @@ KGVPart::KGVPart( TQWidget* parentWidget, const char*,
actionCollection(), "show_scrollbars" );
_showScrollBars->setCheckedState(i18n("Hide &Scrollbars"));
_watchFile = new TDEToggleAction( i18n( "&Watch File" ), 0,
this, TQT_SLOT( slotWatchFile() ),
this, TQ_SLOT( slotWatchFile() ),
actionCollection(), "watch_file" );
_showPageList = new TDEToggleAction( i18n( "Show &Page List" ), 0,
actionCollection(), "show_page_list" );
@ -324,29 +324,29 @@ KGVPart::KGVPart( TQWidget* parentWidget, const char*,
_showPageLabels = new TDEToggleAction( i18n("Show Page &Labels"), 0,
actionCollection(), "show_page_labels" );
_showPageLabels->setCheckedState(i18n("Hide Page &Labels"));
KStdAction::preferences( this, TQT_SLOT( slotConfigure() ), actionCollection() );
connect( _showScrollBars, TQT_SIGNAL( toggled( bool ) ),
TQT_SLOT( showScrollBars( bool ) ) );
connect( _showPageList, TQT_SIGNAL( toggled( bool ) ),
TQT_SLOT( showMarkList( bool ) ) );
connect( _showPageLabels, TQT_SIGNAL( toggled( bool ) ),
TQT_SLOT( showPageLabels( bool ) ) );
KStdAction::preferences( this, TQ_SLOT( slotConfigure() ), actionCollection() );
connect( _showScrollBars, TQ_SIGNAL( toggled( bool ) ),
TQ_SLOT( showScrollBars( bool ) ) );
connect( _showPageList, TQ_SIGNAL( toggled( bool ) ),
TQ_SLOT( showMarkList( bool ) ) );
connect( _showPageLabels, TQ_SIGNAL( toggled( bool ) ),
TQ_SLOT( showPageLabels( bool ) ) );
_extension = new KGVBrowserExtension( this );
setXMLFile( "kgv_part.rc" );
connect( miniWidget(), TQT_SIGNAL( newPageShown( int ) ),
this, TQT_SLOT( slotNewPage( int ) ) );
connect( _pageView, TQT_SIGNAL( contentsMoving( int, int ) ),
this, TQT_SLOT( slotPageMoved( int, int ) ) );
connect( miniWidget(), TQ_SIGNAL( newPageShown( int ) ),
this, TQ_SLOT( slotNewPage( int ) ) );
connect( _pageView, TQ_SIGNAL( contentsMoving( int, int ) ),
this, TQ_SLOT( slotPageMoved( int, int ) ) );
connect( _pageView, TQT_SIGNAL( nextPage() ), TQT_SLOT( slotNextPage() ));
connect( _pageView, TQT_SIGNAL( prevPage() ), TQT_SLOT( slotPrevPage() ));
connect( _pageView, TQT_SIGNAL( zoomIn() ), TQT_SLOT( slotZoomIn() ));
connect( _pageView, TQT_SIGNAL( zoomOut() ), TQT_SLOT( slotZoomOut() ));
connect( _pageView, TQT_SIGNAL( ReadUp() ), TQT_SLOT( slotReadUp() ));
connect( _pageView, TQT_SIGNAL( ReadDown() ), TQT_SLOT( slotReadDown() ));
connect( _pageView, TQ_SIGNAL( nextPage() ), TQ_SLOT( slotNextPage() ));
connect( _pageView, TQ_SIGNAL( prevPage() ), TQ_SLOT( slotPrevPage() ));
connect( _pageView, TQ_SIGNAL( zoomIn() ), TQ_SLOT( slotZoomIn() ));
connect( _pageView, TQ_SIGNAL( zoomOut() ), TQ_SLOT( slotZoomOut() ));
connect( _pageView, TQ_SIGNAL( ReadUp() ), TQ_SLOT( slotReadUp() ));
connect( _pageView, TQ_SIGNAL( ReadDown() ), TQ_SLOT( slotReadDown() ));
TQStringList items = document()->mediaNames();
items.prepend( i18n( "Auto ") );
@ -658,10 +658,10 @@ bool KGVPart::openURL( const KURL& url )
emit setWindowCaption( m_url.prettyURL() );
_mimetypeScanner = new KGVRun( m_url, 0, m_url.isLocalFile(), false );
connect( _mimetypeScanner, TQT_SIGNAL( finished( const TQString& ) ),
TQT_SLOT( slotMimetypeFinished( const TQString& ) ) );
connect( _mimetypeScanner, TQT_SIGNAL( error() ),
TQT_SLOT( slotMimetypeError() ) );
connect( _mimetypeScanner, TQ_SIGNAL( finished( const TQString& ) ),
TQ_SLOT( slotMimetypeFinished( const TQString& ) ) );
connect( _mimetypeScanner, TQ_SIGNAL( error() ),
TQ_SLOT( slotMimetypeError() ) );
return true;
}
@ -693,15 +693,15 @@ void KGVPart::openURLContinue()
/*
d->m_job = TDEIO::file_copy( m_url, m_file, 0600, true, false, d->m_showProgressInfo );
emit started( d->m_job );
connect( d->m_job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotJobFinished ( TDEIO::Job * ) ) );
connect( d->m_job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( slotJobFinished ( TDEIO::Job * ) ) );
*/
_job = TDEIO::get( m_url, false, isProgressInfoEnabled() );
connect( _job, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ),
TQT_SLOT( slotData( TDEIO::Job*, const TQByteArray& ) ) );
connect( _job, TQT_SIGNAL( result( TDEIO::Job* ) ),
TQT_SLOT( slotJobFinished( TDEIO::Job* ) ) );
connect( _job, TQ_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ),
TQ_SLOT( slotData( TDEIO::Job*, const TQByteArray& ) ) );
connect( _job, TQ_SIGNAL( result( TDEIO::Job* ) ),
TQ_SLOT( slotJobFinished( TDEIO::Job* ) ) );
emit started( _job );
}
@ -926,8 +926,8 @@ void KGVPart::slotFitToScreen()
{
kdDebug(4500) << "KGVPart::slotFitToScreen()" << endl;
if ( _fitTimer->isActive() ) {
disconnect( _fitTimer, TQT_SIGNAL( timeout() ), this, 0 );
connect( _fitTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotDoFitToScreen() ) );
disconnect( _fitTimer, TQ_SIGNAL( timeout() ), this, 0 );
connect( _fitTimer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotDoFitToScreen() ) );
}
else slotDoFitToScreen();
}
@ -996,7 +996,7 @@ KGVRun::KGVRun( const KURL& url, mode_t mode, bool isLocalFile,
bool showProgressInfo ) :
KRun( url, mode, isLocalFile, showProgressInfo )
{
connect( this, TQT_SIGNAL( finished() ), TQT_SLOT( emitFinishedWithMimetype() ) );
connect( this, TQ_SIGNAL( finished() ), TQ_SLOT( emitFinishedWithMimetype() ) );
}
KGVRun::~KGVRun()

@ -146,6 +146,6 @@ void ConfigDialog::showSettings( KGVPart* main ) {
gssw->setDetectedVersion(Configuration::version());
TQObject::connect( dialog, TQT_SIGNAL( settingsChanged() ), main, TQT_SLOT( slotConfigurationChanged() ) );
TQObject::connect( dialog, TQ_SIGNAL( settingsChanged() ), main, TQ_SLOT( slotConfigurationChanged() ) );
dialog->show();
}

@ -63,8 +63,8 @@ KGVDocument::KGVDocument( KGVPart* part, const char* name ) :
readSettings();
_pdf2dsc = new Pdf2dsc( _interpreterPath, this );
connect( _pdf2dsc, TQT_SIGNAL( finished( bool ) ),
TQT_SLOT( openPDFFileContinue( bool ) ) );
connect( _pdf2dsc, TQ_SIGNAL( finished( bool ) ),
TQ_SLOT( openPDFFileContinue( bool ) ) );
}
KGVDocument::~KGVDocument()
@ -87,7 +87,7 @@ void KGVDocument::openFile( const TQString& name, const TQString& mimetype )
_fileName = name;
_mimetype = mimetype;
TQTimer::singleShot( 0, this, TQT_SLOT( doOpenFile() ) );
TQTimer::singleShot( 0, this, TQ_SLOT( doOpenFile() ) );
}
void KGVDocument::doOpenFile()
@ -784,8 +784,8 @@ e=%1" ).arg( dscName )
<< "-c"
<< "quit";
connect( &process, TQT_SIGNAL( processExited( TDEProcess* ) ),
this, TQT_SLOT( pdf2psExited( TDEProcess* ) ) );
connect( &process, TQ_SIGNAL( processExited( TDEProcess* ) ),
this, TQ_SLOT( pdf2psExited( TDEProcess* ) ) );
kdDebug(4500) << "KGVDocument: pdf2ps started" << endl;
process.start( TDEProcess::NotifyOnExit );
@ -830,8 +830,8 @@ void Pdf2dsc::run( const TQString& pdfName, const TQString& dscName )
<< "-c"
<< "quit";
connect( _process, TQT_SIGNAL( processExited( TDEProcess* ) ),
this, TQT_SLOT( processExited() ) );
connect( _process, TQ_SIGNAL( processExited( TDEProcess* ) ),
this, TQ_SLOT( processExited() ) );
kdDebug(4500) << "Pdf2dsc: started" << endl;
_process->start( TDEProcess::NotifyOnExit );

@ -64,25 +64,25 @@ KGVShell::KGVShell() :
/*---- File -----------------------------------------------------------*/
openact =
KStdAction::open( this, TQT_SLOT( slotFileOpen() ),
KStdAction::open( this, TQ_SLOT( slotFileOpen() ),
actionCollection() );
recent =
KStdAction::openRecent( this, TQT_SLOT( openURL( const KURL& ) ),
KStdAction::openRecent( this, TQ_SLOT( openURL( const KURL& ) ),
actionCollection() );
KStdAction::print( m_gvpart->document(), TQT_SLOT( print() ),
KStdAction::print( m_gvpart->document(), TQ_SLOT( print() ),
actionCollection() );
(void)
KStdAction::quit( this, TQT_SLOT( slotQuit() ), actionCollection() );
KStdAction::quit( this, TQ_SLOT( slotQuit() ), actionCollection() );
/*---- View -----------------------------------------------------------*/
new TDEAction( i18n( "&Reload" ), "reload",
TDEStdAccel::shortcut( TDEStdAccel::Reload ),
m_gvpart, TQT_SLOT( reloadFile() ),
m_gvpart, TQ_SLOT( reloadFile() ),
actionCollection(), "reload" );
new TDEAction( i18n( "&Maximize" ), Key_M, this,
TQT_SLOT( slotMaximize() ), actionCollection(),
TQ_SLOT( slotMaximize() ), actionCollection(),
"maximize");
_showMenuBarAction = KStdAction::showMenubar( this, TQT_SLOT( slotShowMenubar() ), actionCollection() );
_showMenuBarAction = KStdAction::showMenubar( this, TQ_SLOT( slotShowMenubar() ), actionCollection() );
/*---- Settings -------------------------------------------------------*/
#if TDE_VERSION >= TDE_MAKE_VERSION(3,1,90)
@ -91,12 +91,12 @@ KGVShell::KGVShell() :
setAutoSaveSettings();
setStandardToolBarMenuEnabled(true);
#if TDE_VERSION >= TDE_MAKE_VERSION(3,1,90)
m_fullScreenAction = KStdAction::fullScreen( this, TQT_SLOT( slotUpdateFullScreen() ), actionCollection(), this );
m_fullScreenAction = KStdAction::fullScreen( this, TQ_SLOT( slotUpdateFullScreen() ), actionCollection(), this );
#else
m_fullScreenAction = new TDEToggleAction( this, TQT_SLOT( slotUpdateFullScreen() ) );
m_fullScreenAction = new TDEToggleAction( this, TQ_SLOT( slotUpdateFullScreen() ) );
#endif
KStdAction::configureToolbars( this, TQT_SLOT( slotConfigureToolbars() ), actionCollection() );
KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()),
KStdAction::configureToolbars( this, TQ_SLOT( slotConfigureToolbars() ), actionCollection() );
KStdAction::keyBindings(guiFactory(), TQ_SLOT(configureShortcuts()),
actionCollection());
//_popup = new TDEPopupMenu( i18n( "Full Screen Options" ), this, "rmb popup" );
@ -108,21 +108,21 @@ actionCollection());
m_fsFilter = new FullScreenFilter( *this );
// Just save them automatically is destructor. (TODO: of kgv_view!)
//KStdAction::saveOptions ( this, TQT_SLOT (slotWriteSettings()), actionCollection());
//KStdAction::saveOptions ( this, TQ_SLOT (slotWriteSettings()), actionCollection());
setXMLFile( "kghostviewui.rc" );
// We could, at the user's option, make this connection and kghostview
// will always resize to fit the width of the page. But, for now,
// let's not.
// connect ( m_gvpart->widget(), TQT_SIGNAL (sizeHintChanged()), this, TQT_SLOT (slotResize ()) );
// connect ( m_gvpart->widget(), TQ_SIGNAL (sizeHintChanged()), this, TQ_SLOT (slotResize ()) );
setCentralWidget( m_gvpart->widget() );
createGUI( m_gvpart );
connect( m_gvpart->pageView(), TQT_SIGNAL( rightClick() ),TQT_SLOT( slotRMBClick() ) );
connect( m_gvpart, TQT_SIGNAL( canceled(const TQString&) ),TQT_SLOT( slotReset() ) );
connect( m_gvpart, TQT_SIGNAL( completed() ), TQT_SLOT( slotDocumentState() ) );
connect( m_gvpart->pageView(), TQ_SIGNAL( rightClick() ),TQ_SLOT( slotRMBClick() ) );
connect( m_gvpart, TQ_SIGNAL( canceled(const TQString&) ),TQ_SLOT( slotReset() ) );
connect( m_gvpart, TQ_SIGNAL( completed() ), TQ_SLOT( slotDocumentState() ) );
if (!initialGeometrySet())
resize(640,400);
@ -304,7 +304,7 @@ void KGVShell::slotMaximize()
KWin::setState( winId(), NET::MaxHoriz | NET::MaxVert );
// If we do it now, it comes to nothing since it would work
// on the current (non-maximized) size
TQTimer::singleShot( 800, m_gvpart, TQT_SLOT( slotFitToPage() ) );
TQTimer::singleShot( 800, m_gvpart, TQ_SLOT( slotFitToPage() ) );
}
void KGVShell::slotResize()
@ -352,7 +352,7 @@ void KGVShell::slotConfigureToolbars()
{
saveMainWindowSettings( TDEGlobal::config(), "MainWindow" );
KEditToolbar dlg( factory() );
connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(slotNewToolbarConfig()));
connect(&dlg,TQ_SIGNAL(newToolbarConfig()),this,TQ_SLOT(slotNewToolbarConfig()));
dlg.exec();
}

@ -358,14 +358,14 @@ bool KPSWidget::startInterpreter()
else
*_process << _fileName << "-c" << "quit";
connect( _process, TQT_SIGNAL( processExited( TDEProcess* ) ),
this, TQT_SLOT( slotProcessExited( TDEProcess* ) ) );
connect( _process, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ),
this, TQT_SLOT( gs_output( TDEProcess*, char*, int ) ) );
connect( _process, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ),
this, TQT_SLOT( gs_output( TDEProcess*, char*, int ) ) );
connect( _process, TQT_SIGNAL( wroteStdin( TDEProcess*) ),
this, TQT_SLOT( gs_input( TDEProcess* ) ) );
connect( _process, TQ_SIGNAL( processExited( TDEProcess* ) ),
this, TQ_SLOT( slotProcessExited( TDEProcess* ) ) );
connect( _process, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ),
this, TQ_SLOT( gs_output( TDEProcess*, char*, int ) ) );
connect( _process, TQ_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ),
this, TQ_SLOT( gs_output( TDEProcess*, char*, int ) ) );
connect( _process, TQ_SIGNAL( wroteStdin( TDEProcess*) ),
this, TQ_SLOT( gs_input( TDEProcess* ) ) );
kapp->flushX();

@ -46,8 +46,8 @@ LogWindow::LogWindow( const TQString& caption,
_logView->setFont( TDEGlobalSettings::fixedFont() );
_logView->setMinimumWidth( 80 * fontMetrics().width( " " ) );
connect( this, TQT_SIGNAL( user1Clicked() ), TQT_SLOT( clear() ) );
connect( _configureGS, TQT_SIGNAL( leftClickedURL() ), TQT_SLOT( emitConfigureGS() ) );
connect( this, TQ_SIGNAL( user1Clicked() ), TQ_SLOT( clear() ) );
connect( _configureGS, TQ_SIGNAL( leftClickedURL() ), TQ_SLOT( emitConfigureGS() ) );
}
void LogWindow::emitConfigureGS() {

@ -105,7 +105,7 @@ void MarkListItem::paintEvent( TQPaintEvent* )
*/
if ( _requested ) return;
if ( !_thumbnailW->paletteBackgroundPixmap() || _thumbnailW->paletteBackgroundPixmap()->isNull() ) {
_miniWidget->getThumbnailService()->delayedGetThumbnail( _pageNum, this, TQT_SLOT( setPixmap( TQPixmap ) ) );
_miniWidget->getThumbnailService()->delayedGetThumbnail( _pageNum, this, TQ_SLOT( setPixmap( TQPixmap ) ) );
_requested = true;
}
}
@ -122,8 +122,8 @@ _miniWidget( mini )
setLeftMargin( 0 ); // we don't want the vertical header
horizontalHeader()->setLabel( 0, i18n("Page") );
connect( this, TQT_SIGNAL( currentChanged( int, int ) ),
this, TQT_SIGNAL( selected( int ) ) );
connect( this, TQ_SIGNAL( currentChanged( int, int ) ),
this, TQ_SIGNAL( selected( int ) ) );
}
TQValueList<int> MarkList::markList() const

@ -37,8 +37,8 @@ ThumbnailService::ThumbnailService( KGVMiniWidget* parent, const char* name ) :
{
_thumbnailDrawer = new KPSWidget( parent->_part->widget(), "thumbnail-drawer" );
_thumbnailDrawer->readSettings();
connect( _thumbnailDrawer, TQT_SIGNAL( newPageImage( TQPixmap ) ), TQT_SLOT( slotDone( TQPixmap ) ) );
connect( timer_, TQT_SIGNAL( timeout() ), TQT_SLOT( processOne() ) );
connect( _thumbnailDrawer, TQ_SIGNAL( newPageImage( TQPixmap ) ), TQ_SLOT( slotDone( TQPixmap ) ) );
connect( timer_, TQ_SIGNAL( timeout() ), TQ_SLOT( processOne() ) );
_thumbnailDrawer->hide();
}
@ -133,10 +133,10 @@ void ThumbnailService::processOne()
FILE* file = _mini->psFile();
Request req = *pending.begin();
kdDebug( 4500 ) << "ThumbnailService::processOne(): processing " << req.page << "(of " << pending.size() << " requests)" << endl;
disconnect( TQT_SIGNAL( relayPixmap( TQPixmap ) ) );
disconnect( TQ_SIGNAL( relayPixmap( TQPixmap ) ) );
while ( !pending.empty() && req.page == pending.begin()->page ) {
req = *pending.begin();
connect( this, TQT_SIGNAL( relayPixmap( TQPixmap ) ), req.receiver, req.slot );
connect( this, TQ_SIGNAL( relayPixmap( TQPixmap ) ), req.receiver, req.slot );
pending.erase( pending.begin() );
}
_thumbnailDrawer->setOrientation( _mini->orientation( req.page ) );

@ -56,8 +56,8 @@ ViewControl::ViewControl( TQWidget *parent, const char *name )
//magComboBox->hide();
connect ( magComboBox, TQT_SIGNAL (activated (int)),
this, TQT_SLOT (slotMagSelection (int)) );
connect ( magComboBox, TQ_SIGNAL (activated (int)),
this, TQ_SLOT (slotMagSelection (int)) );
grid->addWidget( magComboBox, 0, 1 );
@ -65,8 +65,8 @@ ViewControl::ViewControl( TQWidget *parent, const char *name )
mediaComboBox = new TQComboBox( FALSE, vcGroupBox );
mediaComboBox->setFixedHeight( magComboBox->sizeHint().height() );
connect ( mediaComboBox, TQT_SIGNAL (activated (int)),
this, TQT_SLOT (slotMediaSelection (int)) );
connect ( mediaComboBox, TQ_SIGNAL (activated (int)),
this, TQ_SLOT (slotMediaSelection (int)) );
grid->addWidget( mediaComboBox, 1, 1 );
@ -77,8 +77,8 @@ ViewControl::ViewControl( TQWidget *parent, const char *name )
orientComboBox->insertItem(i18n("Upside Down"));
orientComboBox->setFixedHeight( magComboBox->sizeHint().height() );
connect ( orientComboBox, TQT_SIGNAL (activated (int)),
this, TQT_SLOT (slotOrientSelection (int)) );
connect ( orientComboBox, TQ_SIGNAL (activated (int)),
this, TQ_SLOT (slotOrientSelection (int)) );
grid->addWidget( orientComboBox, 2, 1 );
int labelWidth = 0;
@ -124,10 +124,10 @@ ViewControl::ViewControl( TQWidget *parent, const char *name )
bbox->addStretch( 10 );
apply = bbox->addButton( KStdGuiItem::apply() );
connect( apply, TQT_SIGNAL(clicked()), TQT_SLOT(slotApplyClicked()) );
connect( apply, TQ_SIGNAL(clicked()), TQ_SLOT(slotApplyClicked()) );
TQPushButton *closebtn = bbox->addButton( KStdGuiItem::close() );
connect( closebtn, TQT_SIGNAL(clicked()), TQT_SLOT(reject()) );
connect( closebtn, TQ_SIGNAL(clicked()), TQ_SLOT(reject()) );
bbox->layout();

@ -191,8 +191,8 @@ int main (int argc, char *argv [])
// TQt says this is necessary but I don't think it is...
TQObject::connect (&app, TQT_SIGNAL (lastWindowClosed ()),
&app, TQT_SLOT (quit ()));
TQObject::connect (&app, TQ_SIGNAL (lastWindowClosed ()),
&app, TQ_SLOT (quit ()));
if (app.isRestored ())

@ -259,13 +259,13 @@ kpCommandHistoryBase::kpCommandHistoryBase (bool doReadConfig,
m_actionUndo = new TDEToolBarPopupAction (undoActionText (),
TQString::fromLatin1 ("edit-undo"),
TDEStdAccel::shortcut (TDEStdAccel::Undo),
this, TQT_SLOT (undo ()),
this, TQ_SLOT (undo ()),
ac, KStdAction::name (KStdAction::Undo));
m_actionRedo = new TDEToolBarPopupAction (redoActionText (),
TQString::fromLatin1 ("edit-redo"),
TDEStdAccel::shortcut (TDEStdAccel::Redo),
this, TQT_SLOT (redo ()),
this, TQ_SLOT (redo ()),
ac, KStdAction::name (KStdAction::Redo));
@ -273,10 +273,10 @@ kpCommandHistoryBase::kpCommandHistoryBase (bool doReadConfig,
m_actionRedo->setEnabled (false);
connect (m_actionUndo->popupMenu (), TQT_SIGNAL (activated (int)),
this, TQT_SLOT (undoUpToNumber (int)));
connect (m_actionRedo->popupMenu (), TQT_SIGNAL (activated (int)),
this, TQT_SLOT (redoUpToNumber (int)));
connect (m_actionUndo->popupMenu (), TQ_SIGNAL (activated (int)),
this, TQ_SLOT (undoUpToNumber (int)));
connect (m_actionRedo->popupMenu (), TQ_SIGNAL (activated (int)),
this, TQ_SLOT (redoUpToNumber (int)));
m_undoMinLimit = 10;

@ -1220,8 +1220,8 @@ void kpDocument::setSelection (const kpSelection &selection)
// 2. We delete our copy when setSelection() is called again.
//
// See code above for both.
connect (m_selection, TQT_SIGNAL (changed (const TQRect &)),
this, TQT_SLOT (slotContentsChanged (const TQRect &)));
connect (m_selection, TQ_SIGNAL (changed (const TQRect &)),
this, TQ_SLOT (slotContentsChanged (const TQRect &)));
if (!hadSelection)

@ -100,8 +100,8 @@ KDialogBase (parent, name, false/*non-modal*/,
lay->setRowStretch (0, 1);
connect (m_filePixmapLabel, TQT_SIGNAL (resized ()),
this, TQT_SLOT (updatePixmapPreview ()));
connect (m_filePixmapLabel, TQ_SIGNAL (resized ()),
this, TQ_SLOT (updatePixmapPreview ()));
}
kpDocumentSaveOptionsPreviewDialog::~kpDocumentSaveOptionsPreviewDialog ()
@ -331,27 +331,27 @@ void kpDocumentSaveOptionsWidget::init ()
lay->addWidget (m_previewButton, 0/*stretch*/, TQt::AlignRight);
connect (m_colorDepthCombo, TQT_SIGNAL (activated (int)),
this, TQT_SLOT (slotColorDepthSelected ()));
connect (m_colorDepthCombo, TQT_SIGNAL (activated (int)),
this, TQT_SLOT (updatePreview ()));
connect (m_colorDepthCombo, TQ_SIGNAL (activated (int)),
this, TQ_SLOT (slotColorDepthSelected ()));
connect (m_colorDepthCombo, TQ_SIGNAL (activated (int)),
this, TQ_SLOT (updatePreview ()));
connect (m_qualityInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SLOT (updatePreviewDelayed ()));
connect (m_qualityInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SLOT (updatePreviewDelayed ()));
connect (m_previewButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (showPreview (bool)));
connect (m_previewButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (showPreview (bool)));
m_updatePreviewDelay = 200/*ms*/;
m_updatePreviewTimer = new TQTimer (this);
connect (m_updatePreviewTimer, TQT_SIGNAL (timeout ()),
this, TQT_SLOT (updatePreview ()));
connect (m_updatePreviewTimer, TQ_SIGNAL (timeout ()),
this, TQ_SLOT (updatePreview ()));
m_updatePreviewDialogLastRelativeGeometryTimer = new TQTimer (this);
connect (m_updatePreviewDialogLastRelativeGeometryTimer, TQT_SIGNAL (timeout ()),
this, TQT_SLOT (updatePreviewDialogLastRelativeGeometry ()));
connect (m_updatePreviewDialogLastRelativeGeometryTimer, TQ_SIGNAL (timeout ()),
this, TQ_SLOT (updatePreviewDialogLastRelativeGeometry ()));
setMode (None);
@ -705,7 +705,7 @@ void kpDocumentSaveOptionsWidget::setMode (Mode mode)
// we change the height of "this", causing the text on the labels
// to move but the first instance of the text doesn't get erased.
// TQt bug.
TQTimer::singleShot (0, this, TQT_SLOT (repaintLabels ()));
TQTimer::singleShot (0, this, TQ_SLOT (repaintLabels ()));
}
// protected slot
@ -738,8 +738,8 @@ void kpDocumentSaveOptionsWidget::showPreview (bool yes)
m_previewDialog = new kpDocumentSaveOptionsPreviewDialog (m_visualParent, "previewSaveDialog");
updatePreview ();
connect (m_previewDialog, TQT_SIGNAL (finished ()),
this, TQT_SLOT (hidePreview ()));
connect (m_previewDialog, TQ_SIGNAL (finished ()),
this, TQ_SLOT (hidePreview ()));
TDEConfigGroupSaver cfgGroupSaver (TDEGlobal::config (), kpSettingsGroupPreviewSave);
@ -834,10 +834,10 @@ void kpDocumentSaveOptionsWidget::showPreview (bool yes)
updatePreviewDialogLastRelativeGeometry ();
connect (m_previewDialog, TQT_SIGNAL (moved ()),
this, TQT_SLOT (updatePreviewDialogLastRelativeGeometry ()));
connect (m_previewDialog, TQT_SIGNAL (resized ()),
this, TQT_SLOT (updatePreviewDialogLastRelativeGeometry ()));
connect (m_previewDialog, TQ_SIGNAL (moved ()),
this, TQ_SLOT (updatePreviewDialogLastRelativeGeometry ()));
connect (m_previewDialog, TQ_SIGNAL (resized ()),
this, TQ_SLOT (updatePreviewDialogLastRelativeGeometry ()));
m_updatePreviewDialogLastRelativeGeometryTimer->start (200/*ms*/);
}

@ -259,20 +259,20 @@ void kpMainWindow::init ()
#endif
m_scrollView = new kpViewScrollableContainer (this, "scrollView");
connect (m_scrollView, TQT_SIGNAL (beganDocResize ()),
this, TQT_SLOT (slotBeganDocResize ()));
connect (m_scrollView, TQT_SIGNAL (continuedDocResize (const TQSize &)),
this, TQT_SLOT (slotContinuedDocResize (const TQSize &)));
connect (m_scrollView, TQT_SIGNAL (cancelledDocResize ()),
this, TQT_SLOT (slotCancelledDocResize ()));
connect (m_scrollView, TQT_SIGNAL (endedDocResize (const TQSize &)),
this, TQT_SLOT (slotEndedDocResize (const TQSize &)));
connect (m_scrollView, TQT_SIGNAL (statusMessageChanged (const TQString &)),
this, TQT_SLOT (slotDocResizeMessageChanged (const TQString &)));
connect (m_scrollView, TQT_SIGNAL (contentsMoving (int, int)),
this, TQT_SLOT (slotScrollViewAboutToScroll ()));
connect (m_scrollView, TQ_SIGNAL (beganDocResize ()),
this, TQ_SLOT (slotBeganDocResize ()));
connect (m_scrollView, TQ_SIGNAL (continuedDocResize (const TQSize &)),
this, TQ_SLOT (slotContinuedDocResize (const TQSize &)));
connect (m_scrollView, TQ_SIGNAL (cancelledDocResize ()),
this, TQ_SLOT (slotCancelledDocResize ()));
connect (m_scrollView, TQ_SIGNAL (endedDocResize (const TQSize &)),
this, TQ_SLOT (slotEndedDocResize (const TQSize &)));
connect (m_scrollView, TQ_SIGNAL (statusMessageChanged (const TQString &)),
this, TQ_SLOT (slotDocResizeMessageChanged (const TQString &)));
connect (m_scrollView, TQ_SIGNAL (contentsMoving (int, int)),
this, TQ_SLOT (slotScrollViewAboutToScroll ()));
setCentralWidget (m_scrollView);
m_scrollView->show ();
#if DEBUG_KP_MAIN_WINDOW
@ -707,16 +707,16 @@ void kpMainWindow::setDocument (kpDocument *newDoc)
#endif
// Copy/Cut/Deselect/Delete
connect (m_document, TQT_SIGNAL (selectionEnabled (bool)),
m_actionCut, TQT_SLOT (setEnabled (bool)));
connect (m_document, TQT_SIGNAL (selectionEnabled (bool)),
m_actionCopy, TQT_SLOT (setEnabled (bool)));
connect (m_document, TQT_SIGNAL (selectionEnabled (bool)),
m_actionDelete, TQT_SLOT (setEnabled (bool)));
connect (m_document, TQT_SIGNAL (selectionEnabled (bool)),
m_actionDeselect, TQT_SLOT (setEnabled (bool)));
connect (m_document, TQT_SIGNAL (selectionEnabled (bool)),
m_actionCopyToFile, TQT_SLOT (setEnabled (bool)));
connect (m_document, TQ_SIGNAL (selectionEnabled (bool)),
m_actionCut, TQ_SLOT (setEnabled (bool)));
connect (m_document, TQ_SIGNAL (selectionEnabled (bool)),
m_actionCopy, TQ_SLOT (setEnabled (bool)));
connect (m_document, TQ_SIGNAL (selectionEnabled (bool)),
m_actionDelete, TQ_SLOT (setEnabled (bool)));
connect (m_document, TQ_SIGNAL (selectionEnabled (bool)),
m_actionDeselect, TQ_SLOT (setEnabled (bool)));
connect (m_document, TQ_SIGNAL (selectionEnabled (bool)),
m_actionCopyToFile, TQ_SLOT (setEnabled (bool)));
// this code won't actually enable any actions at this stage
// (fresh document) but better safe than sorry
@ -726,40 +726,40 @@ void kpMainWindow::setDocument (kpDocument *newDoc)
m_actionDelete->setEnabled (m_document->selection ());
m_actionCopyToFile->setEnabled (m_document->selection ());
connect (m_document, TQT_SIGNAL (selectionEnabled (bool)),
this, TQT_SLOT (slotImageMenuUpdateDueToSelection ()));
connect (m_document, TQT_SIGNAL (selectionIsTextChanged (bool)),
this, TQT_SLOT (slotImageMenuUpdateDueToSelection ()));
connect (m_document, TQ_SIGNAL (selectionEnabled (bool)),
this, TQ_SLOT (slotImageMenuUpdateDueToSelection ()));
connect (m_document, TQ_SIGNAL (selectionIsTextChanged (bool)),
this, TQ_SLOT (slotImageMenuUpdateDueToSelection ()));
// Status bar
connect (m_document, TQT_SIGNAL (documentOpened ()),
this, TQT_SLOT (recalculateStatusBar ()));
connect (m_document, TQ_SIGNAL (documentOpened ()),
this, TQ_SLOT (recalculateStatusBar ()));
connect (m_document, TQT_SIGNAL (sizeChanged (const TQSize &)),
this, TQT_SLOT (setStatusBarDocSize (const TQSize &)));
connect (m_document, TQ_SIGNAL (sizeChanged (const TQSize &)),
this, TQ_SLOT (setStatusBarDocSize (const TQSize &)));
// Caption (url, modified)
connect (m_document, TQT_SIGNAL (documentModified ()),
this, TQT_SLOT (slotUpdateCaption ()));
connect (m_document, TQT_SIGNAL (documentOpened ()),
this, TQT_SLOT (slotUpdateCaption ()));
connect (m_document, TQT_SIGNAL (documentSaved ()),
this, TQT_SLOT (slotUpdateCaption ()));
connect (m_document, TQ_SIGNAL (documentModified ()),
this, TQ_SLOT (slotUpdateCaption ()));
connect (m_document, TQ_SIGNAL (documentOpened ()),
this, TQ_SLOT (slotUpdateCaption ()));
connect (m_document, TQ_SIGNAL (documentSaved ()),
this, TQ_SLOT (slotUpdateCaption ()));
// File/Reload action only available with non-empty URL
connect (m_document, TQT_SIGNAL (documentSaved ()),
this, TQT_SLOT (slotEnableReload ()));
connect (m_document, TQ_SIGNAL (documentSaved ()),
this, TQ_SLOT (slotEnableReload ()));
connect (m_document, TQT_SIGNAL (documentSaved ()),
this, TQT_SLOT (slotEnableSettingsShowPath ()));
connect (m_document, TQ_SIGNAL (documentSaved ()),
this, TQ_SLOT (slotEnableSettingsShowPath ()));
// Command history
if (m_commandHistory)
{
connect (m_commandHistory, TQT_SIGNAL (documentRestored ()),
this, TQT_SLOT (slotDocumentRestored ())); // caption "!modified"
connect (m_document, TQT_SIGNAL (documentSaved ()),
m_commandHistory, TQT_SLOT (documentSaved ()));
connect (m_commandHistory, TQ_SIGNAL (documentRestored ()),
this, TQ_SLOT (slotDocumentRestored ())); // caption "!modified"
connect (m_document, TQ_SIGNAL (documentSaved ()),
m_commandHistory, TQ_SLOT (documentSaved ()));
}
else
{
@ -768,10 +768,10 @@ void kpMainWindow::setDocument (kpDocument *newDoc)
}
// Sync document -> views
connect (m_document, TQT_SIGNAL (contentsChanged (const TQRect &)),
m_viewManager, TQT_SLOT (updateViews (const TQRect &)));
connect (m_document, TQT_SIGNAL (sizeChanged (int, int)),
m_viewManager, TQT_SLOT (adjustViewsToEnvironment ()));
connect (m_document, TQ_SIGNAL (contentsChanged (const TQRect &)),
m_viewManager, TQ_SLOT (updateViews (const TQRect &)));
connect (m_document, TQ_SIGNAL (sizeChanged (int, int)),
m_viewManager, TQ_SLOT (adjustViewsToEnvironment ()));
#if DEBUG_KP_MAIN_WINDOW
kdDebug () << "\tenabling actions" << endl;
@ -814,7 +814,7 @@ void kpMainWindow::setDocument (kpDocument *newDoc)
#if DEBUG_KP_MAIN_WINDOW
kdDebug () << "\tcreating thumbnail LATER" << endl;
#endif
TQTimer::singleShot (0, this, TQT_SLOT (slotCreateThumbnail ()));
TQTimer::singleShot (0, this, TQ_SLOT (slotCreateThumbnail ()));
}
}
#endif
@ -1003,7 +1003,7 @@ void kpMainWindow::slotScrollViewAboutToScroll ()
}
#endif
TQTimer::singleShot (0, this, TQT_SLOT (slotScrollViewAfterScroll ()));
TQTimer::singleShot (0, this, TQ_SLOT (slotScrollViewAfterScroll ()));
}
// private slot

@ -103,25 +103,25 @@ void kpMainWindow::setupEditMenuActions ()
}
m_actionCut = KStdAction::cut (this, TQT_SLOT (slotCut ()), ac);
m_actionCopy = KStdAction::copy (this, TQT_SLOT (slotCopy ()), ac);
m_actionPaste = KStdAction::paste (this, TQT_SLOT (slotPaste ()), ac);
m_actionCut = KStdAction::cut (this, TQ_SLOT (slotCut ()), ac);
m_actionCopy = KStdAction::copy (this, TQ_SLOT (slotCopy ()), ac);
m_actionPaste = KStdAction::paste (this, TQ_SLOT (slotPaste ()), ac);
m_actionPasteInNewWindow = new TDEAction (i18n ("Paste in &New Window"),
TQt::CTRL + TQt::SHIFT + TQt::Key_V,
this, TQT_SLOT (slotPasteInNewWindow ()), ac, "edit_paste_in_new_window");
this, TQ_SLOT (slotPasteInNewWindow ()), ac, "edit_paste_in_new_window");
//m_actionDelete = KStdAction::clear (this, TQT_SLOT (slotDelete ()), ac);
//m_actionDelete = KStdAction::clear (this, TQ_SLOT (slotDelete ()), ac);
m_actionDelete = new TDEAction (i18n ("&Delete Selection"), 0,
this, TQT_SLOT (slotDelete ()), ac, "edit_clear");
this, TQ_SLOT (slotDelete ()), ac, "edit_clear");
m_actionSelectAll = KStdAction::selectAll (this, TQT_SLOT (slotSelectAll ()), ac);
m_actionDeselect = KStdAction::deselect (this, TQT_SLOT (slotDeselect ()), ac);
m_actionSelectAll = KStdAction::selectAll (this, TQ_SLOT (slotSelectAll ()), ac);
m_actionDeselect = KStdAction::deselect (this, TQ_SLOT (slotDeselect ()), ac);
m_actionCopyToFile = new TDEAction (i18n ("C&opy to File..."), 0,
this, TQT_SLOT (slotCopyToFile ()), ac, "edit_copy_to_file");
this, TQ_SLOT (slotCopyToFile ()), ac, "edit_copy_to_file");
m_actionPasteFromFile = new TDEAction (i18n ("Paste &From File..."), 0,
this, TQT_SLOT (slotPasteFromFile ()), ac, "edit_paste_from_file");
this, TQ_SLOT (slotPasteFromFile ()), ac, "edit_paste_from_file");
m_editMenuDocumentActionsEnabled = false;
@ -129,8 +129,8 @@ void kpMainWindow::setupEditMenuActions ()
// Paste should always be enabled, as long as there is something paste
// (independent of whether we have a document or not)
connect (TQApplication::clipboard (), TQT_SIGNAL (dataChanged ()),
this, TQT_SLOT (slotEnablePaste ()));
connect (TQApplication::clipboard (), TQ_SIGNAL (dataChanged ()),
this, TQ_SLOT (slotEnablePaste ()));
slotEnablePaste ();
}

@ -67,41 +67,41 @@ void kpMainWindow::setupFileMenuActions ()
#endif
TDEActionCollection *ac = actionCollection ();
m_actionNew = KStdAction::openNew (this, TQT_SLOT (slotNew ()), ac);
m_actionOpen = KStdAction::open (this, TQT_SLOT (slotOpen ()), ac);
m_actionNew = KStdAction::openNew (this, TQ_SLOT (slotNew ()), ac);
m_actionOpen = KStdAction::open (this, TQ_SLOT (slotOpen ()), ac);
m_actionOpenRecent = KStdAction::openRecent (this, TQT_SLOT (slotOpenRecent (const KURL &)), ac);
m_actionOpenRecent = KStdAction::openRecent (this, TQ_SLOT (slotOpenRecent (const KURL &)), ac);
m_actionOpenRecent->loadEntries (kapp->config ());
#if DEBUG_KP_MAIN_WINDOW
kdDebug () << "\trecent URLs=" << m_actionOpenRecent->items () << endl;
#endif
m_actionSave = KStdAction::save (this, TQT_SLOT (slotSave ()), ac);
m_actionSaveAs = KStdAction::saveAs (this, TQT_SLOT (slotSaveAs ()), ac);
m_actionSave = KStdAction::save (this, TQ_SLOT (slotSave ()), ac);
m_actionSaveAs = KStdAction::saveAs (this, TQ_SLOT (slotSaveAs ()), ac);
m_actionExport = new TDEAction (i18n ("E&xport..."), 0,
this, TQT_SLOT (slotExport ()), ac, "file_export");
this, TQ_SLOT (slotExport ()), ac, "file_export");
m_actionScan = new TDEAction (i18n ("Scan..."), SmallIcon ("scanner"), 0,
this, TQT_SLOT (slotScan ()), ac, "file_scan");
this, TQ_SLOT (slotScan ()), ac, "file_scan");
//m_actionRevert = KStdAction::revert (this, TQT_SLOT (slotRevert ()), ac);
//m_actionRevert = KStdAction::revert (this, TQ_SLOT (slotRevert ()), ac);
m_actionReload = new TDEAction (i18n ("Reloa&d"), TDEStdAccel::reload (),
this, TQT_SLOT (slotReload ()), ac, "file_revert");
this, TQ_SLOT (slotReload ()), ac, "file_revert");
slotEnableReload ();
m_actionPrint = KStdAction::print (this, TQT_SLOT (slotPrint ()), ac);
m_actionPrintPreview = KStdAction::printPreview (this, TQT_SLOT (slotPrintPreview ()), ac);
m_actionPrint = KStdAction::print (this, TQ_SLOT (slotPrint ()), ac);
m_actionPrintPreview = KStdAction::printPreview (this, TQ_SLOT (slotPrintPreview ()), ac);
m_actionMail = KStdAction::mail (this, TQT_SLOT (slotMail ()), ac);
m_actionMail = KStdAction::mail (this, TQ_SLOT (slotMail ()), ac);
m_actionSetAsWallpaperCentered = new TDEAction (i18n ("Set as Wa&llpaper (Centered)"), 0,
this, TQT_SLOT (slotSetAsWallpaperCentered ()), ac, "file_set_as_wallpaper_centered");
this, TQ_SLOT (slotSetAsWallpaperCentered ()), ac, "file_set_as_wallpaper_centered");
m_actionSetAsWallpaperTiled = new TDEAction (i18n ("Set as Wallpaper (&Tiled)"), 0,
this, TQT_SLOT (slotSetAsWallpaperTiled ()), ac, "file_set_as_wallpaper_tiled");
this, TQ_SLOT (slotSetAsWallpaperTiled ()), ac, "file_set_as_wallpaper_tiled");
m_actionClose = KStdAction::close (this, TQT_SLOT (slotClose ()), ac);
m_actionQuit = KStdAction::quit (this, TQT_SLOT (slotQuit ()), ac);
m_actionClose = KStdAction::close (this, TQ_SLOT (slotClose ()), ac);
m_actionQuit = KStdAction::quit (this, TQ_SLOT (slotQuit ()), ac);
m_scanDialog = 0;
@ -451,8 +451,8 @@ void kpMainWindow::slotScan ()
#if DEBUG_KP_MAIN_WINDOW
kdDebug () << "\tcreated scanDialog=" << m_scanDialog << endl;
#endif
connect (m_scanDialog, TQT_SIGNAL (finalImage (const TQImage &, int)),
TQT_SLOT (slotScanned (const TQImage &, int)));
connect (m_scanDialog, TQ_SIGNAL (finalImage (const TQImage &, int)),
TQ_SLOT (slotScanned (const TQImage &, int)));
}
@ -704,8 +704,8 @@ KURL kpMainWindow::askForSaveURL (const TQString &caption,
if (localOnly)
fd.setMode (KFile::File | KFile::LocalOnly);
connect (&fd, TQT_SIGNAL (filterChanged (const TQString &)),
saveOptionsWidget, TQT_SLOT (setMimeType (const TQString &)));
connect (&fd, TQ_SIGNAL (filterChanged (const TQString &)),
saveOptionsWidget, TQ_SLOT (setMimeType (const TQString &)));
if (fd.exec ())

@ -57,7 +57,7 @@ void kpMainWindow::setupHelpMenuActions ()
// -- Thurston
d->m_actionHelpTakingScreenshots = new TDEAction (
i18n ("Acquiring &Screenshots"), 0,
this, TQT_SLOT (slotHelpTakingScreenshots ()),
this, TQ_SLOT (slotHelpTakingScreenshots ()),
ac, "help_taking_screenshots");
@ -185,10 +185,10 @@ void kpMainWindow::slotHelpTakingScreenshots ()
true/*separator line*/);
KActiveLabel *messageLabel = new KActiveLabel (message, &dlg);
disconnect (messageLabel, TQT_SIGNAL (linkClicked (const TQString &)),
messageLabel, TQT_SLOT (openLink (const TQString &)));
connect (messageLabel, TQT_SIGNAL (linkClicked (const TQString &)),
this, TQT_SLOT (slotHelpTakingScreenshotsFollowLink (const TQString &)));
disconnect (messageLabel, TQ_SIGNAL (linkClicked (const TQString &)),
messageLabel, TQ_SLOT (openLink (const TQString &)));
connect (messageLabel, TQ_SIGNAL (linkClicked (const TQString &)),
this, TQ_SLOT (slotHelpTakingScreenshotsFollowLink (const TQString &)));
dlg.setMainWidget (messageLabel);

@ -90,37 +90,37 @@ void kpMainWindow::setupImageMenuActions ()
TDEActionCollection *ac = actionCollection ();
m_actionResizeScale = new TDEAction (i18n ("R&esize / Scale..."), TQt::CTRL + TQt::Key_E,
this, TQT_SLOT (slotResizeScale ()), ac, "image_resize_scale");
this, TQ_SLOT (slotResizeScale ()), ac, "image_resize_scale");
m_actionCrop = new TDEAction (i18n ("Se&t as Image (Crop)"), TQt::CTRL + TQt::Key_T,
this, TQT_SLOT (slotCrop ()), ac, "image_crop");
this, TQ_SLOT (slotCrop ()), ac, "image_crop");
m_actionAutoCrop = new TDEAction (autoCropText (), TQt::CTRL + TQt::Key_U,
this, TQT_SLOT (slotAutoCrop ()), ac, "image_auto_crop");
this, TQ_SLOT (slotAutoCrop ()), ac, "image_auto_crop");
m_actionFlip = new TDEAction (i18n ("&Flip..."), TQt::CTRL + TQt::Key_F,
this, TQT_SLOT (slotFlip ()), ac, "image_flip");
this, TQ_SLOT (slotFlip ()), ac, "image_flip");
m_actionRotate = new TDEAction (i18n ("&Rotate..."), TQt::CTRL + TQt::Key_R,
this, TQT_SLOT (slotRotate ()), ac, "image_rotate");
this, TQ_SLOT (slotRotate ()), ac, "image_rotate");
m_actionSkew = new TDEAction (i18n ("S&kew..."), TQt::CTRL + TQt::Key_K,
this, TQT_SLOT (slotSkew ()), ac, "image_skew");
this, TQ_SLOT (slotSkew ()), ac, "image_skew");
m_actionConvertToBlackAndWhite = new TDEAction (i18n ("Reduce to Mo&nochrome (Dithered)"), 0,
this, TQT_SLOT (slotConvertToBlackAndWhite ()), ac, "image_convert_to_black_and_white");
this, TQ_SLOT (slotConvertToBlackAndWhite ()), ac, "image_convert_to_black_and_white");
m_actionConvertToGrayscale = new TDEAction (i18n ("Reduce to &Grayscale"), 0,
this, TQT_SLOT (slotConvertToGrayscale ()), ac, "image_convert_to_grayscale");
this, TQ_SLOT (slotConvertToGrayscale ()), ac, "image_convert_to_grayscale");
m_actionInvertColors = new TDEAction (i18n ("&Invert Colors"), TQt::CTRL + TQt::Key_I,
this, TQT_SLOT (slotInvertColors ()), ac, "image_invert_colors");
this, TQ_SLOT (slotInvertColors ()), ac, "image_invert_colors");
m_actionClear = new TDEAction (i18n ("C&lear"), TQt::CTRL + TQt::SHIFT + TQt::Key_N,
this, TQT_SLOT (slotClear ()), ac, "image_clear");
this, TQ_SLOT (slotClear ()), ac, "image_clear");
m_actionMoreEffects = new TDEAction (i18n ("&More Effects..."), TQt::CTRL + TQt::Key_M,
this, TQT_SLOT (slotMoreEffects ()), ac, "image_more_effects");
this, TQ_SLOT (slotMoreEffects ()), ac, "image_more_effects");
enableImageMenuDocumentActions (false);
}

@ -57,19 +57,19 @@ void kpMainWindow::setupSettingsMenuActions ()
createStandardStatusBarAction ();
m_actionFullScreen = KStdAction::fullScreen (this, TQT_SLOT (slotFullScreen ()), ac,
m_actionFullScreen = KStdAction::fullScreen (this, TQ_SLOT (slotFullScreen ()), ac,
this/*window*/);
m_actionShowPath = new TDEToggleAction (i18n ("Show &Path"), 0,
this, TQT_SLOT (slotShowPathToggled ()), ac, "settings_show_path");
this, TQ_SLOT (slotShowPathToggled ()), ac, "settings_show_path");
m_actionShowPath->setCheckedState (i18n ("Hide &Path"));
slotEnableSettingsShowPath ();
m_actionKeyBindings = KStdAction::keyBindings (this, TQT_SLOT (slotKeyBindings ()), ac);
m_actionConfigureToolbars = KStdAction::configureToolbars (this, TQT_SLOT (slotConfigureToolBars ()), ac);
// m_actionConfigure = KStdAction::preferences (this, TQT_SLOT (slotConfigure ()), ac);
m_actionKeyBindings = KStdAction::keyBindings (this, TQ_SLOT (slotKeyBindings ()), ac);
m_actionConfigureToolbars = KStdAction::configureToolbars (this, TQ_SLOT (slotConfigureToolBars ()), ac);
// m_actionConfigure = KStdAction::preferences (this, TQ_SLOT (slotConfigure ()), ac);
enableSettingsMenuDocumentActions (false);
@ -174,8 +174,8 @@ void kpMainWindow::slotConfigureToolBars ()
// Clicking on OK after Apply brings up the dialog (below) again.
// Bug with KEditToolBar.
dialog.showButtonApply (false);
connect (&dialog, TQT_SIGNAL (newToolbarConfig ()),
this, TQT_SLOT (slotNewToolBarConfig ()));
connect (&dialog, TQ_SIGNAL (newToolbarConfig ()),
this, TQ_SLOT (slotNewToolBarConfig ()));
dialog.exec ();
}

@ -50,22 +50,22 @@ void kpMainWindow::setupTextToolBarActions ()
TDEActionCollection *ac = actionCollection ();
m_actionTextFontFamily = new TDEFontAction (i18n ("Font Family"), 0/*shortcut*/,
this, TQT_SLOT (slotTextFontFamilyChanged ()), ac, "text_font_family");
this, TQ_SLOT (slotTextFontFamilyChanged ()), ac, "text_font_family");
m_actionTextFontSize = new TDEFontSizeAction (i18n ("Font Size"), 0/*shortcut*/,
this, TQT_SLOT (slotTextFontSizeChanged ()), ac, "text_font_size");
this, TQ_SLOT (slotTextFontSizeChanged ()), ac, "text_font_size");
m_actionTextBold = new TDEToggleAction (i18n ("Bold"),
"format-text-bold"/*icon*/, 0/*shortcut*/,
this, TQT_SLOT (slotTextBoldChanged ()), ac, "format-text-bold");
this, TQ_SLOT (slotTextBoldChanged ()), ac, "format-text-bold");
m_actionTextItalic = new TDEToggleAction (i18n ("Italic"),
"format-text-italic"/*icon*/, 0/*shortcut*/,
this, TQT_SLOT (slotTextItalicChanged ()), ac, "format-text-italic");
this, TQ_SLOT (slotTextItalicChanged ()), ac, "format-text-italic");
m_actionTextUnderline = new TDEToggleAction (i18n ("Underline"),
"format-text-underline"/*icon*/, 0/*shortcut*/,
this, TQT_SLOT (slotTextUnderlineChanged ()), ac, "text_underline");
this, TQ_SLOT (slotTextUnderlineChanged ()), ac, "text_underline");
m_actionTextStrikeThru = new TDEToggleAction (i18n ("Strike Through"),
"format-text-strikethrough"/*icon*/, 0/*shortcut*/,
this, TQT_SLOT (slotTextStrikeThruChanged ()), ac, "text_strike_thru");
this, TQ_SLOT (slotTextStrikeThruChanged ()), ac, "text_strike_thru");
readAndApplyTextSettings ();

@ -103,23 +103,23 @@ void kpMainWindow::setupToolActions ()
m_actionPrevToolOptionGroup1 = new kpSingleKeyTriggersAction (
i18n ("Previous Tool Option (Group #1)"),
kpTool::shortcutForKey (TQt::Key_1),
this, TQT_SLOT (slotActionPrevToolOptionGroup1 ()),
this, TQ_SLOT (slotActionPrevToolOptionGroup1 ()),
ac, "prev_tool_option_group_1");
m_actionNextToolOptionGroup1 = new kpSingleKeyTriggersAction (
i18n ("Next Tool Option (Group #1)"),
kpTool::shortcutForKey (TQt::Key_2),
this, TQT_SLOT (slotActionNextToolOptionGroup1 ()),
this, TQ_SLOT (slotActionNextToolOptionGroup1 ()),
ac, "next_tool_option_group_1");
m_actionPrevToolOptionGroup2 = new kpSingleKeyTriggersAction (
i18n ("Previous Tool Option (Group #2)"),
kpTool::shortcutForKey (TQt::Key_3),
this, TQT_SLOT (slotActionPrevToolOptionGroup2 ()),
this, TQ_SLOT (slotActionPrevToolOptionGroup2 ()),
ac, "prev_tool_option_group_2");
m_actionNextToolOptionGroup2 = new kpSingleKeyTriggersAction (
i18n ("Next Tool Option (Group #2)"),
kpTool::shortcutForKey (TQt::Key_4),
this, TQT_SLOT (slotActionNextToolOptionGroup2 ()),
this, TQ_SLOT (slotActionNextToolOptionGroup2 ()),
ac, "next_tool_option_group_2");
}
@ -127,10 +127,10 @@ void kpMainWindow::setupToolActions ()
void kpMainWindow::createToolBox ()
{
m_toolToolBar = new kpToolToolBar (i18n ("Tool Box"), this, 2/*columns/rows*/, "Tool Box");
connect (m_toolToolBar, TQT_SIGNAL (sigToolSelected (kpTool *)),
this, TQT_SLOT (slotToolSelected (kpTool *)));
connect (m_toolToolBar, TQT_SIGNAL (toolWidgetOptionSelected ()),
this, TQT_SLOT (updateToolOptionPrevNextActionsEnabled ()));
connect (m_toolToolBar, TQ_SIGNAL (sigToolSelected (kpTool *)),
this, TQ_SLOT (slotToolSelected (kpTool *)));
connect (m_toolToolBar, TQ_SIGNAL (toolWidgetOptionSelected ()),
this, TQ_SLOT (updateToolOptionPrevNextActionsEnabled ()));
for (TQPtrList <kpTool>::const_iterator it = m_tools.begin ();
it != m_tools.end ();
@ -331,55 +331,55 @@ void kpMainWindow::slotToolSelected (kpTool *tool)
if (previousTool)
{
disconnect (previousTool, TQT_SIGNAL (movedAndAboutToDraw (const TQPoint &, const TQPoint &, int, bool *)),
this, TQT_SLOT (slotDragScroll (const TQPoint &, const TQPoint &, int, bool *)));
disconnect (previousTool, TQT_SIGNAL (endedDraw (const TQPoint &)),
this, TQT_SLOT (slotEndDragScroll ()));
disconnect (previousTool, TQT_SIGNAL (cancelledShape (const TQPoint &)),
this, TQT_SLOT (slotEndDragScroll ()));
disconnect (previousTool, TQT_SIGNAL (userMessageChanged (const TQString &)),
this, TQT_SLOT (recalculateStatusBarMessage ()));
disconnect (previousTool, TQT_SIGNAL (userShapePointsChanged (const TQPoint &, const TQPoint &)),
this, TQT_SLOT (recalculateStatusBarShape ()));
disconnect (previousTool, TQT_SIGNAL (userShapeSizeChanged (const TQSize &)),
this, TQT_SLOT (recalculateStatusBarShape ()));
disconnect (m_colorToolBar, TQT_SIGNAL (colorsSwapped (const kpColor &, const kpColor &)),
previousTool, TQT_SLOT (slotColorsSwappedInternal (const kpColor &, const kpColor &)));
disconnect (m_colorToolBar, TQT_SIGNAL (foregroundColorChanged (const kpColor &)),
previousTool, TQT_SLOT (slotForegroundColorChangedInternal (const kpColor &)));
disconnect (m_colorToolBar, TQT_SIGNAL (backgroundColorChanged (const kpColor &)),
previousTool, TQT_SLOT (slotBackgroundColorChangedInternal (const kpColor &)));
disconnect (m_colorToolBar, TQT_SIGNAL (colorSimilarityChanged (double, int)),
previousTool, TQT_SLOT (slotColorSimilarityChangedInternal (double, int)));
disconnect (previousTool, TQ_SIGNAL (movedAndAboutToDraw (const TQPoint &, const TQPoint &, int, bool *)),
this, TQ_SLOT (slotDragScroll (const TQPoint &, const TQPoint &, int, bool *)));
disconnect (previousTool, TQ_SIGNAL (endedDraw (const TQPoint &)),
this, TQ_SLOT (slotEndDragScroll ()));
disconnect (previousTool, TQ_SIGNAL (cancelledShape (const TQPoint &)),
this, TQ_SLOT (slotEndDragScroll ()));
disconnect (previousTool, TQ_SIGNAL (userMessageChanged (const TQString &)),
this, TQ_SLOT (recalculateStatusBarMessage ()));
disconnect (previousTool, TQ_SIGNAL (userShapePointsChanged (const TQPoint &, const TQPoint &)),
this, TQ_SLOT (recalculateStatusBarShape ()));
disconnect (previousTool, TQ_SIGNAL (userShapeSizeChanged (const TQSize &)),
this, TQ_SLOT (recalculateStatusBarShape ()));
disconnect (m_colorToolBar, TQ_SIGNAL (colorsSwapped (const kpColor &, const kpColor &)),
previousTool, TQ_SLOT (slotColorsSwappedInternal (const kpColor &, const kpColor &)));
disconnect (m_colorToolBar, TQ_SIGNAL (foregroundColorChanged (const kpColor &)),
previousTool, TQ_SLOT (slotForegroundColorChangedInternal (const kpColor &)));
disconnect (m_colorToolBar, TQ_SIGNAL (backgroundColorChanged (const kpColor &)),
previousTool, TQ_SLOT (slotBackgroundColorChangedInternal (const kpColor &)));
disconnect (m_colorToolBar, TQ_SIGNAL (colorSimilarityChanged (double, int)),
previousTool, TQ_SLOT (slotColorSimilarityChangedInternal (double, int)));
}
if (tool)
{
connect (tool, TQT_SIGNAL (movedAndAboutToDraw (const TQPoint &, const TQPoint &, int, bool *)),
this, TQT_SLOT (slotDragScroll (const TQPoint &, const TQPoint &, int, bool *)));
connect (tool, TQT_SIGNAL (endedDraw (const TQPoint &)),
this, TQT_SLOT (slotEndDragScroll ()));
connect (tool, TQT_SIGNAL (cancelledShape (const TQPoint &)),
this, TQT_SLOT (slotEndDragScroll ()));
connect (tool, TQT_SIGNAL (userMessageChanged (const TQString &)),
this, TQT_SLOT (recalculateStatusBarMessage ()));
connect (tool, TQT_SIGNAL (userShapePointsChanged (const TQPoint &, const TQPoint &)),
this, TQT_SLOT (recalculateStatusBarShape ()));
connect (tool, TQT_SIGNAL (userShapeSizeChanged (const TQSize &)),
this, TQT_SLOT (recalculateStatusBarShape ()));
connect (tool, TQ_SIGNAL (movedAndAboutToDraw (const TQPoint &, const TQPoint &, int, bool *)),
this, TQ_SLOT (slotDragScroll (const TQPoint &, const TQPoint &, int, bool *)));
connect (tool, TQ_SIGNAL (endedDraw (const TQPoint &)),
this, TQ_SLOT (slotEndDragScroll ()));
connect (tool, TQ_SIGNAL (cancelledShape (const TQPoint &)),
this, TQ_SLOT (slotEndDragScroll ()));
connect (tool, TQ_SIGNAL (userMessageChanged (const TQString &)),
this, TQ_SLOT (recalculateStatusBarMessage ()));
connect (tool, TQ_SIGNAL (userShapePointsChanged (const TQPoint &, const TQPoint &)),
this, TQ_SLOT (recalculateStatusBarShape ()));
connect (tool, TQ_SIGNAL (userShapeSizeChanged (const TQSize &)),
this, TQ_SLOT (recalculateStatusBarShape ()));
recalculateStatusBar ();
connect (m_colorToolBar, TQT_SIGNAL (colorsSwapped (const kpColor &, const kpColor &)),
tool, TQT_SLOT (slotColorsSwappedInternal (const kpColor &, const kpColor &)));
connect (m_colorToolBar, TQT_SIGNAL (foregroundColorChanged (const kpColor &)),
tool, TQT_SLOT (slotForegroundColorChangedInternal (const kpColor &)));
connect (m_colorToolBar, TQT_SIGNAL (backgroundColorChanged (const kpColor &)),
tool, TQT_SLOT (slotBackgroundColorChangedInternal (const kpColor &)));
connect (m_colorToolBar, TQT_SIGNAL (colorSimilarityChanged (double, int)),
tool, TQT_SLOT (slotColorSimilarityChangedInternal (double, int)));
connect (m_colorToolBar, TQ_SIGNAL (colorsSwapped (const kpColor &, const kpColor &)),
tool, TQ_SLOT (slotColorsSwappedInternal (const kpColor &, const kpColor &)));
connect (m_colorToolBar, TQ_SIGNAL (foregroundColorChanged (const kpColor &)),
tool, TQ_SLOT (slotForegroundColorChangedInternal (const kpColor &)));
connect (m_colorToolBar, TQ_SIGNAL (backgroundColorChanged (const kpColor &)),
tool, TQ_SLOT (slotBackgroundColorChangedInternal (const kpColor &)));
connect (m_colorToolBar, TQ_SIGNAL (colorSimilarityChanged (double, int)),
tool, TQ_SLOT (slotColorSimilarityChangedInternal (double, int)));
saveLastTool ();

@ -67,18 +67,18 @@ void kpMainWindow::setupViewMenuActions ()
m_actionFullScreen->setEnabled (false);*/
m_actionActualSize = KStdAction::actualSize (this, TQT_SLOT (slotActualSize ()), ac);
/*m_actionFitToPage = KStdAction::fitToPage (this, TQT_SLOT (slotFitToPage ()), ac);
m_actionFitToWidth = KStdAction::fitToWidth (this, TQT_SLOT (slotFitToWidth ()), ac);
m_actionFitToHeight = KStdAction::fitToHeight (this, TQT_SLOT (slotFitToHeight ()), ac);*/
m_actionActualSize = KStdAction::actualSize (this, TQ_SLOT (slotActualSize ()), ac);
/*m_actionFitToPage = KStdAction::fitToPage (this, TQ_SLOT (slotFitToPage ()), ac);
m_actionFitToWidth = KStdAction::fitToWidth (this, TQ_SLOT (slotFitToWidth ()), ac);
m_actionFitToHeight = KStdAction::fitToHeight (this, TQ_SLOT (slotFitToHeight ()), ac);*/
m_actionZoomIn = KStdAction::zoomIn (this, TQT_SLOT (slotZoomIn ()), ac);
m_actionZoomOut = KStdAction::zoomOut (this, TQT_SLOT (slotZoomOut ()), ac);
m_actionZoomIn = KStdAction::zoomIn (this, TQ_SLOT (slotZoomIn ()), ac);
m_actionZoomOut = KStdAction::zoomOut (this, TQ_SLOT (slotZoomOut ()), ac);
m_actionZoom = new TDESelectAction (i18n ("&Zoom"), 0,
this, TQT_SLOT (slotZoom ()), actionCollection (), "view_zoom_to");
this, TQ_SLOT (slotZoom ()), actionCollection (), "view_zoom_to");
m_actionZoom->setEditable (true);
// create the zoom list for the 1st call to zoomTo() below
@ -91,7 +91,7 @@ void kpMainWindow::setupViewMenuActions ()
m_actionShowGrid = new TDEToggleAction (i18n ("Show &Grid"), CTRL + Key_G,
this, TQT_SLOT (slotShowGridToggled ()), actionCollection (), "view_show_grid");
this, TQ_SLOT (slotShowGridToggled ()), actionCollection (), "view_show_grid");
m_actionShowGrid->setCheckedState (i18n ("Hide &Grid"));
@ -99,12 +99,12 @@ void kpMainWindow::setupViewMenuActions ()
// Testcase: Press CTRL+H twice on a fresh KolourPaint.
// The second CTRL+H doesn't close the thumbnail.
m_actionShowThumbnail = new TDEToggleAction (i18n ("Show T&humbnail"), CTRL + Key_H,
this, TQT_SLOT (slotShowThumbnailToggled ()), actionCollection (), "view_show_thumbnail");
this, TQ_SLOT (slotShowThumbnailToggled ()), actionCollection (), "view_show_thumbnail");
m_actionShowThumbnail->setCheckedState (i18n ("Hide T&humbnail"));
// Please do not use setCheckedState() here - it wouldn't make sense
m_actionZoomedThumbnail = new TDEToggleAction (i18n ("Zoo&med Thumbnail Mode"), 0,
this, TQT_SLOT (slotZoomedThumbnailToggled ()), actionCollection (), "view_zoomed_thumbnail");
this, TQ_SLOT (slotZoomedThumbnailToggled ()), actionCollection (), "view_zoomed_thumbnail");
// For consistency with the above action, don't use setCheckedState()
//
@ -114,7 +114,7 @@ void kpMainWindow::setupViewMenuActions ()
d->m_actionShowThumbnailRectangle = new TDEToggleAction (
i18n ("Enable Thumbnail &Rectangle"),
0,
this, TQT_SLOT (slotThumbnailShowRectangleToggled ()),
this, TQ_SLOT (slotThumbnailShowRectangleToggled ()),
actionCollection (), "view_show_thumbnail_rectangle");
@ -511,7 +511,7 @@ void kpMainWindow::zoomTo (int zoomLevel, bool centerUnderCursor)
// caused mainly by m_scrollView->center()
//
// TODO: remove flicker completely
//TQTimer::singleShot (0, this, TQT_SLOT (finishZoomTo ()));
//TQTimer::singleShot (0, this, TQ_SLOT (finishZoomTo ()));
// Later: I don't think there is an update() that needs to be queued
// - let's reduce latency instead.
@ -822,8 +822,8 @@ void kpMainWindow::notifyThumbnailGeometryChanged ()
if (!m_thumbnailSaveConfigTimer)
{
m_thumbnailSaveConfigTimer = new TQTimer (this);
connect (m_thumbnailSaveConfigTimer, TQT_SIGNAL (timeout ()),
this, TQT_SLOT (slotSaveThumbnailGeometry ()));
connect (m_thumbnailSaveConfigTimer, TQ_SIGNAL (timeout ()),
this, TQ_SLOT (slotSaveThumbnailGeometry ()));
}
m_thumbnailSaveConfigTimer->start (500/*msec*/, true/*single shot*/);
@ -1121,8 +1121,8 @@ void kpMainWindow::updateThumbnail ()
#if DEBUG_KP_MAIN_WINDOW
kdDebug () << "\t\tconnecting thumbnail::visibilityChange to destroy slot" << endl;
#endif
connect (m_thumbnail, TQT_SIGNAL (visibilityChanged (bool)),
this, TQT_SLOT (slotDestroyThumbnailIfNotVisible (bool)));
connect (m_thumbnail, TQ_SIGNAL (visibilityChanged (bool)),
this, TQ_SLOT (slotDestroyThumbnailIfNotVisible (bool)));
#if DEBUG_KP_MAIN_WINDOW
kdDebug () << "\t\tDONE" << endl;
#endif
@ -1143,8 +1143,8 @@ void kpMainWindow::updateThumbnail ()
destroyThumbnailView ();
disconnect (m_thumbnail, TQT_SIGNAL (visibilityChanged (bool)),
this, TQT_SLOT (slotDestroyThumbnailIfNotVisible (bool)));
disconnect (m_thumbnail, TQ_SIGNAL (visibilityChanged (bool)),
this, TQ_SLOT (slotDestroyThumbnailIfNotVisible (bool)));
m_thumbnail->deleteLater (); m_thumbnail = 0;
}

@ -109,10 +109,10 @@ void kpThumbnail::setView (kpThumbnailView *view)
if (m_view)
{
disconnect (m_view, TQT_SIGNAL (destroyed ()),
this, TQT_SLOT (slotViewDestroyed ()));
disconnect (m_view, TQT_SIGNAL (zoomLevelChanged (int, int)),
this, TQT_SLOT (updateCaption ()));
disconnect (m_view, TQ_SIGNAL (destroyed ()),
this, TQ_SLOT (slotViewDestroyed ()));
disconnect (m_view, TQ_SIGNAL (zoomLevelChanged (int, int)),
this, TQ_SLOT (updateCaption ()));
boxLayout ()->remove (m_view);
}
@ -121,10 +121,10 @@ void kpThumbnail::setView (kpThumbnailView *view)
if (m_view)
{
connect (m_view, TQT_SIGNAL (destroyed ()),
this, TQT_SLOT (slotViewDestroyed ()));
connect (m_view, TQT_SIGNAL (zoomLevelChanged (int, int)),
this, TQT_SLOT (updateCaption ()));
connect (m_view, TQ_SIGNAL (destroyed ()),
this, TQ_SLOT (slotViewDestroyed ()));
connect (m_view, TQ_SIGNAL (zoomLevelChanged (int, int)),
this, TQ_SLOT (updateCaption ()));
updateCaption ();
boxLayout ()->addWidget (m_view);

@ -151,13 +151,13 @@ void kpTool::createAction ()
m_action = new kpToolAction (text (), iconName (), shortcutForKey (m_key),
this, TQT_SLOT (slotActionActivated ()),
this, TQ_SLOT (slotActionActivated ()),
m_mainWindow->actionCollection (), name ());
m_action->setExclusiveGroup (TQString::fromLatin1 ("Tool Box Actions"));
m_action->setWhatsThis (description ());
connect (m_action, TQT_SIGNAL (toolTipChanged (const TQString &)),
this, TQT_SLOT (slotActionToolTipChanged (const TQString &)));
connect (m_action, TQ_SIGNAL (toolTipChanged (const TQString &)),
this, TQ_SLOT (slotActionToolTipChanged (const TQString &)));
}

@ -297,55 +297,55 @@ void kpView::showBuddyViewScrollableContainerRectangle (bool yes)
// Got these connect statements by analysing deps of
// updateBuddyViewScrollableContainerRectangle() rect update code.
connect (this, TQT_SIGNAL (zoomLevelChanged (int, int)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (this, TQT_SIGNAL (originChanged (const TQPoint &)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (this, TQ_SIGNAL (zoomLevelChanged (int, int)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (this, TQ_SIGNAL (originChanged (const TQPoint &)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
if (buddyViewScrollableContainer ())
{
connect (buddyViewScrollableContainer (), TQT_SIGNAL (contentsMovingSoon (int, int)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (buddyViewScrollableContainer (), TQT_SIGNAL (resized ()),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (buddyViewScrollableContainer (), TQ_SIGNAL (contentsMovingSoon (int, int)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (buddyViewScrollableContainer (), TQ_SIGNAL (resized ()),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
}
if (buddyView ())
{
connect (buddyView (), TQT_SIGNAL (zoomLevelChanged (int, int)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (buddyView (), TQT_SIGNAL (originChanged (const TQPoint &)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (buddyView (), TQ_SIGNAL (zoomLevelChanged (int, int)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (buddyView (), TQ_SIGNAL (originChanged (const TQPoint &)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (buddyView (), TQT_SIGNAL (sizeChanged (int, int)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
connect (buddyView (), TQ_SIGNAL (sizeChanged (int, int)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
}
}
else
{
disconnect (this, TQT_SIGNAL (zoomLevelChanged (int, int)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (this, TQT_SIGNAL (originChanged (const TQPoint &)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (this, TQ_SIGNAL (zoomLevelChanged (int, int)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (this, TQ_SIGNAL (originChanged (const TQPoint &)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
if (buddyViewScrollableContainer ())
{
disconnect (buddyViewScrollableContainer (), TQT_SIGNAL (contentsMovingSoon (int, int)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (buddyViewScrollableContainer (), TQT_SIGNAL (resized ()),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (buddyViewScrollableContainer (), TQ_SIGNAL (contentsMovingSoon (int, int)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (buddyViewScrollableContainer (), TQ_SIGNAL (resized ()),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
}
if (buddyView ())
{
disconnect (buddyView (), TQT_SIGNAL (zoomLevelChanged (int, int)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (buddyView (), TQT_SIGNAL (originChanged (const TQPoint &)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (buddyView (), TQ_SIGNAL (zoomLevelChanged (int, int)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (buddyView (), TQ_SIGNAL (originChanged (const TQPoint &)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (buddyView (), TQT_SIGNAL (sizeChanged (int, int)),
this, TQT_SLOT (updateBuddyViewScrollableContainerRectangle ()));
disconnect (buddyView (), TQ_SIGNAL (sizeChanged (int, int)),
this, TQ_SLOT (updateBuddyViewScrollableContainerRectangle ()));
}
}

@ -229,8 +229,8 @@ void kpViewManager::setTextCursorEnabled (bool yes)
if (yes)
{
m_textCursorBlinkTimer = new TQTimer (this);
connect (m_textCursorBlinkTimer, TQT_SIGNAL (timeout ()),
this, TQT_SLOT (slotTextCursorBlink ()));
connect (m_textCursorBlinkTimer, TQ_SIGNAL (timeout ()),
this, TQ_SLOT (slotTextCursorBlink ()));
slotTextCursorBlink ();
}
// TODO: What if !yes - shouldn't it clear the cursor?

@ -424,11 +424,11 @@ kpViewScrollableContainer::kpViewScrollableContainer (kpMainWindow *parent,
connectGripSignals (m_bottomRightGrip);
connect (this, TQT_SIGNAL (contentsMoving (int, int)),
this, TQT_SLOT (slotContentsMoving (int, int)));
connect (this, TQ_SIGNAL (contentsMoving (int, int)),
this, TQ_SLOT (slotContentsMoving (int, int)));
connect (m_dragScrollTimer, TQT_SIGNAL (timeout ()),
this, TQT_SLOT (slotDragScroll ()));
connect (m_dragScrollTimer, TQ_SIGNAL (timeout ()),
this, TQ_SLOT (slotDragScroll ()));
}
kpViewScrollableContainer::~kpViewScrollableContainer ()
@ -458,20 +458,20 @@ int kpViewScrollableContainer::contentsYSoon ()
// protected
void kpViewScrollableContainer::connectGripSignals (kpGrip *grip)
{
connect (grip, TQT_SIGNAL (beganDraw ()),
this, TQT_SLOT (slotGripBeganDraw ()));
connect (grip, TQT_SIGNAL (continuedDraw (int, int, bool)),
this, TQT_SLOT (slotGripContinuedDraw (int, int, bool)));
connect (grip, TQT_SIGNAL (cancelledDraw ()),
this, TQT_SLOT (slotGripCancelledDraw ()));
connect (grip, TQT_SIGNAL (endedDraw (int, int)),
this, TQT_SLOT (slotGripEndedDraw (int, int)));
connect (grip, TQ_SIGNAL (beganDraw ()),
this, TQ_SLOT (slotGripBeganDraw ()));
connect (grip, TQ_SIGNAL (continuedDraw (int, int, bool)),
this, TQ_SLOT (slotGripContinuedDraw (int, int, bool)));
connect (grip, TQ_SIGNAL (cancelledDraw ()),
this, TQ_SLOT (slotGripCancelledDraw ()));
connect (grip, TQ_SIGNAL (endedDraw (int, int)),
this, TQ_SLOT (slotGripEndedDraw (int, int)));
connect (grip, TQT_SIGNAL (statusMessageChanged (const TQString &)),
this, TQT_SLOT (slotGripStatusMessageChanged (const TQString &)));
connect (grip, TQ_SIGNAL (statusMessageChanged (const TQString &)),
this, TQ_SLOT (slotGripStatusMessageChanged (const TQString &)));
connect (grip, TQT_SIGNAL (releasedAllButtons ()),
this, TQT_SLOT (recalculateStatusMessage ()));
connect (grip, TQ_SIGNAL (releasedAllButtons ()),
this, TQ_SLOT (recalculateStatusMessage ()));
}
@ -946,7 +946,7 @@ void kpViewScrollableContainer::slotContentsMoving (int x, int y)
// Reduce flicker - don't let TQScrollView scroll to-be-erased lines
eraseResizeLines ();
TQTimer::singleShot (0, this, TQT_SLOT (slotContentsMoved ()));
TQTimer::singleShot (0, this, TQ_SLOT (slotContentsMoved ()));
}
// protected slot
@ -972,19 +972,19 @@ void kpViewScrollableContainer::slotContentsMoved ()
// protected
void kpViewScrollableContainer::disconnectViewSignals ()
{
disconnect (m_view, TQT_SIGNAL (sizeChanged (const TQSize &)),
this, TQT_SLOT (updateGrips ()));
disconnect (m_view, TQT_SIGNAL (destroyed ()),
this, TQT_SLOT (slotViewDestroyed ()));
disconnect (m_view, TQ_SIGNAL (sizeChanged (const TQSize &)),
this, TQ_SLOT (updateGrips ()));
disconnect (m_view, TQ_SIGNAL (destroyed ()),
this, TQ_SLOT (slotViewDestroyed ()));
}
// protected
void kpViewScrollableContainer::connectViewSignals ()
{
connect (m_view, TQT_SIGNAL (sizeChanged (const TQSize &)),
this, TQT_SLOT (updateGrips ()));
connect (m_view, TQT_SIGNAL (destroyed ()),
this, TQT_SLOT (slotViewDestroyed ()));
connect (m_view, TQ_SIGNAL (sizeChanged (const TQSize &)),
this, TQ_SLOT (updateGrips ()));
connect (m_view, TQ_SIGNAL (destroyed ()),
this, TQ_SLOT (slotViewDestroyed ()));
}

@ -389,7 +389,7 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp
+ //m_resizeLinesNeedErase = false;
+
QTimer::singleShot (0, this, SLOT (slotContentsMoved ()));
QTimer::singleShot (0, this, TQ_SLOT (slotContentsMoved ()));
}
@@ -874,9 +982,27 @@ void kpViewScrollableContainer::slotCont
<< " grip=" << grip << endl;
@ -466,7 +466,7 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp
+ QScrollView::windowActivationChange (wasActive);
+
+ // Wait for m_view to update
+ QTimer::singleShot (0, this, SLOT (windowActivationChanged ()));
+ QTimer::singleShot (0, this, TQ_SLOT (windowActivationChanged ()));
+}
+
+

@ -327,28 +327,28 @@ kpEffectBalanceWidget::kpEffectBalanceWidget (bool actOnSelection,
// (no need for settingsChangedDelayed() since BCG effect is so fast :))
connect (m_brightnessInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SIGNAL (settingsChangedNoWaitCursor ()));
connect (m_contrastInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SIGNAL (settingsChangedNoWaitCursor ()));
connect (m_gammaInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SLOT (recalculateGammaLabel ()));
connect (m_gammaInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SIGNAL (settingsChangedNoWaitCursor ()));
connect (m_channelsComboBox, TQT_SIGNAL (activated (int)),
this, TQT_SIGNAL (settingsChanged ()));
connect (brightnessResetPushButton, TQT_SIGNAL (clicked ()),
this, TQT_SLOT (resetBrightness ()));
connect (contrastResetPushButton, TQT_SIGNAL (clicked ()),
this, TQT_SLOT (resetContrast ()));
connect (gammaResetPushButton, TQT_SIGNAL (clicked ()),
this, TQT_SLOT (resetGamma ()));
connect (resetPushButton, TQT_SIGNAL (clicked ()),
this, TQT_SLOT (resetAll ()));
connect (m_brightnessInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SIGNAL (settingsChangedNoWaitCursor ()));
connect (m_contrastInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SIGNAL (settingsChangedNoWaitCursor ()));
connect (m_gammaInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SLOT (recalculateGammaLabel ()));
connect (m_gammaInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SIGNAL (settingsChangedNoWaitCursor ()));
connect (m_channelsComboBox, TQ_SIGNAL (activated (int)),
this, TQ_SIGNAL (settingsChanged ()));
connect (brightnessResetPushButton, TQ_SIGNAL (clicked ()),
this, TQ_SLOT (resetBrightness ()));
connect (contrastResetPushButton, TQ_SIGNAL (clicked ()),
this, TQ_SLOT (resetContrast ()));
connect (gammaResetPushButton, TQ_SIGNAL (clicked ()),
this, TQ_SLOT (resetGamma ()));
connect (resetPushButton, TQ_SIGNAL (clicked ()),
this, TQ_SLOT (resetAll ()));
recalculateGammaLabel ();

@ -149,11 +149,11 @@ kpEffectBlurSharpenWidget::kpEffectBlurSharpenWidget (bool actOnSelection,
lay->setColStretch (1, 1);
connect (m_amountInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SIGNAL (settingsChangedDelayed ()));
connect (m_amountInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SIGNAL (settingsChangedDelayed ()));
connect (m_amountInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SLOT (slotUpdateTypeLabel ()));
connect (m_amountInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SLOT (slotUpdateTypeLabel ()));
}
kpEffectBlurSharpenWidget::~kpEffectBlurSharpenWidget ()

@ -131,8 +131,8 @@ kpEffectEmbossWidget::kpEffectEmbossWidget (bool actOnSelection,
lay->setColStretch (1, 1);
connect (m_amountInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SIGNAL (settingsChanged ()));
connect (m_amountInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SIGNAL (settingsChanged ()));
#endif
m_enableCheckBox = new TQCheckBox (i18n ("E&nable"), this);
@ -144,8 +144,8 @@ kpEffectEmbossWidget::kpEffectEmbossWidget (bool actOnSelection,
// (settingsChangedDelayed() instead of settingsChanged() so that the
// user can quickly press OK to apply effect to document directly and
// not have to wait for the also slow preview)
connect (m_enableCheckBox, TQT_SIGNAL (toggled (bool)),
this, TQT_SIGNAL (settingsChangedDelayed ()));
connect (m_enableCheckBox, TQ_SIGNAL (toggled (bool)),
this, TQ_SIGNAL (settingsChangedDelayed ()));
}
kpEffectEmbossWidget::~kpEffectEmbossWidget ()

@ -168,13 +168,13 @@ kpEffectFlattenWidget::kpEffectFlattenWidget (bool actOnSelection,
lay->addWidget (colorButtonContainer);
connect (m_enableCheckBox, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotEnableChanged (bool)));
connect (m_enableCheckBox, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotEnableChanged (bool)));
connect (m_color1Button, TQT_SIGNAL (changed (const TQColor &)),
this, TQT_SIGNAL (settingsChanged ()));
connect (m_color2Button, TQT_SIGNAL (changed (const TQColor &)),
this, TQT_SIGNAL (settingsChanged ()));
connect (m_color1Button, TQ_SIGNAL (changed (const TQColor &)),
this, TQ_SIGNAL (settingsChanged ()));
connect (m_color2Button, TQ_SIGNAL (changed (const TQColor &)),
this, TQ_SIGNAL (settingsChanged ()));
}
kpEffectFlattenWidget::~kpEffectFlattenWidget ()

@ -192,15 +192,15 @@ kpEffectInvertWidget::kpEffectInvertWidget (bool actOnSelection,
m_inSignalHandler = false;
connect (m_redCheckBox, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotRGBCheckBoxToggled ()));
connect (m_greenCheckBox, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotRGBCheckBoxToggled ()));
connect (m_blueCheckBox, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotRGBCheckBoxToggled ()));
connect (m_allCheckBox, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotAllCheckBoxToggled ()));
connect (m_redCheckBox, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotRGBCheckBoxToggled ()));
connect (m_greenCheckBox, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotRGBCheckBoxToggled ()));
connect (m_blueCheckBox, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotRGBCheckBoxToggled ()));
connect (m_allCheckBox, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotAllCheckBoxToggled ()));
}
kpEffectInvertWidget::~kpEffectInvertWidget ()

@ -361,16 +361,16 @@ kpEffectReduceColorsWidget::kpEffectReduceColorsWidget (bool actOnSelection,
lay->addWidget (m_24BitRadioButton);
connect (m_blackAndWhiteRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SIGNAL (settingsChanged ()));
connect (m_blackAndWhiteDitheredRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SIGNAL (settingsChanged ()));
connect (m_8BitRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SIGNAL (settingsChanged ()));
connect (m_8BitDitheredRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SIGNAL (settingsChanged ()));
connect (m_24BitRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SIGNAL (settingsChanged ()));
connect (m_blackAndWhiteRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SIGNAL (settingsChanged ()));
connect (m_blackAndWhiteDitheredRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SIGNAL (settingsChanged ()));
connect (m_8BitRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SIGNAL (settingsChanged ()));
connect (m_8BitDitheredRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SIGNAL (settingsChanged ()));
connect (m_24BitRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SIGNAL (settingsChanged ()));
}
kpEffectReduceColorsWidget::~kpEffectReduceColorsWidget ()

@ -84,8 +84,8 @@ kpEffectsDialog::kpEffectsDialog (bool actOnSelection,
setCaption (i18n ("More Image Effects"));
connect (m_delayedUpdateTimer, TQT_SIGNAL (timeout ()),
this, TQT_SLOT (slotUpdateWithWaitCursor ()));
connect (m_delayedUpdateTimer, TQ_SIGNAL (timeout ()),
this, TQ_SLOT (slotUpdateWithWaitCursor ()));
TQHBox *effectContainer = new TQHBox (mainWidget ());
@ -116,8 +116,8 @@ kpEffectsDialog::kpEffectsDialog (bool actOnSelection,
addCustomWidgetToBack (m_settingsGroupBox);
connect (m_effectsComboBox, TQT_SIGNAL (activated (int)),
this, TQT_SLOT (selectEffect (int)));
connect (m_effectsComboBox, TQ_SIGNAL (activated (int)),
this, TQ_SLOT (selectEffect (int)));
selectEffect (0);
@ -308,12 +308,12 @@ void kpEffectsDialog::selectEffect (int which)
#endif
connect (m_colorEffectWidget, TQT_SIGNAL (settingsChangedNoWaitCursor ()),
this, TQT_SLOT (slotUpdate ()));
connect (m_colorEffectWidget, TQT_SIGNAL (settingsChanged ()),
this, TQT_SLOT (slotUpdateWithWaitCursor ()));
connect (m_colorEffectWidget, TQT_SIGNAL (settingsChangedDelayed ()),
this, TQT_SLOT (slotDelayedUpdate ()));
connect (m_colorEffectWidget, TQ_SIGNAL (settingsChangedNoWaitCursor ()),
this, TQ_SLOT (slotUpdate ()));
connect (m_colorEffectWidget, TQ_SIGNAL (settingsChanged ()),
this, TQ_SLOT (slotUpdateWithWaitCursor ()));
connect (m_colorEffectWidget, TQ_SIGNAL (settingsChangedDelayed ()),
this, TQ_SLOT (slotDelayedUpdate ()));
slotUpdateWithWaitCursor ();
#if DEBUG_KP_EFFECTS_DIALOG
kdDebug () << "\tafter slotUpdateWithWaitCursor, previewGroupBox.size="

@ -65,7 +65,7 @@ kpToolAirSpray::kpToolAirSpray (kpMainWindow *mainWindow)
m_currentCommand (0)
{
m_timer = new TQTimer (this);
connect (m_timer, TQT_SIGNAL (timeout ()), this, TQT_SLOT (actuallyDraw ()));
connect (m_timer, TQ_SIGNAL (timeout ()), this, TQ_SLOT (actuallyDraw ()));
}
kpToolAirSpray::~kpToolAirSpray ()
@ -95,8 +95,8 @@ void kpToolAirSpray::begin ()
if (m_toolWidgetSpraycanSize)
{
m_size = m_toolWidgetSpraycanSize->spraycanSize ();
connect (m_toolWidgetSpraycanSize, TQT_SIGNAL (spraycanSizeChanged (int)),
this, TQT_SLOT (slotSpraycanSizeChanged (int)));
connect (m_toolWidgetSpraycanSize, TQ_SIGNAL (spraycanSizeChanged (int)),
this, TQ_SLOT (slotSpraycanSizeChanged (int)));
m_toolWidgetSpraycanSize->show ();
}
@ -110,8 +110,8 @@ void kpToolAirSpray::end ()
{
if (m_toolWidgetSpraycanSize)
{
disconnect (m_toolWidgetSpraycanSize, TQT_SIGNAL (spraycanSizeChanged (int)),
this, TQT_SLOT (slotSpraycanSizeChanged (int)));
disconnect (m_toolWidgetSpraycanSize, TQ_SIGNAL (spraycanSizeChanged (int)),
this, TQ_SLOT (slotSpraycanSizeChanged (int)));
m_toolWidgetSpraycanSize = 0;
}

@ -171,10 +171,10 @@ kpToolFlipDialog::kpToolFlipDialog (bool actOnSelection, TQWidget *parent)
m_verticalFlipRadioButton->setChecked (s_lastIsVerticalFlip);
m_horizontalFlipRadioButton->setChecked (!s_lastIsVerticalFlip);
connect (m_verticalFlipRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotIsVerticalFlipChanged ()));
connect (m_horizontalFlipRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotIsVerticalFlipChanged ()));
connect (m_verticalFlipRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotIsVerticalFlipChanged ()));
connect (m_horizontalFlipRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotIsVerticalFlipChanged ()));
}
}

@ -133,8 +133,8 @@ void kpToolPen::begin ()
if (m_mode & SquareBrushes)
{
m_toolWidgetEraserSize = tb->toolWidgetEraserSize ();
connect (m_toolWidgetEraserSize, TQT_SIGNAL (eraserSizeChanged (int)),
this, TQT_SLOT (slotEraserSizeChanged (int)));
connect (m_toolWidgetEraserSize, TQ_SIGNAL (eraserSizeChanged (int)),
this, TQ_SLOT (slotEraserSizeChanged (int)));
m_toolWidgetEraserSize->show ();
slotEraserSizeChanged (m_toolWidgetEraserSize->eraserSize ());
@ -145,8 +145,8 @@ void kpToolPen::begin ()
if (m_mode & DiverseBrushes)
{
m_toolWidgetBrush = tb->toolWidgetBrush ();
connect (m_toolWidgetBrush, TQT_SIGNAL (brushChanged (const TQPixmap &, bool)),
this, TQT_SLOT (slotBrushChanged (const TQPixmap &, bool)));
connect (m_toolWidgetBrush, TQ_SIGNAL (brushChanged (const TQPixmap &, bool)),
this, TQ_SLOT (slotBrushChanged (const TQPixmap &, bool)));
m_toolWidgetBrush->show ();
slotBrushChanged (m_toolWidgetBrush->brush (),
@ -163,15 +163,15 @@ void kpToolPen::end ()
{
if (m_toolWidgetEraserSize)
{
disconnect (m_toolWidgetEraserSize, TQT_SIGNAL (eraserSizeChanged (int)),
this, TQT_SLOT (slotEraserSizeChanged (int)));
disconnect (m_toolWidgetEraserSize, TQ_SIGNAL (eraserSizeChanged (int)),
this, TQ_SLOT (slotEraserSizeChanged (int)));
m_toolWidgetEraserSize = 0;
}
if (m_toolWidgetBrush)
{
disconnect (m_toolWidgetBrush, TQT_SIGNAL (brushChanged (const TQPixmap &, bool)),
this, TQT_SLOT (slotBrushChanged (const TQPixmap &, bool)));
disconnect (m_toolWidgetBrush, TQ_SIGNAL (brushChanged (const TQPixmap &, bool)),
this, TQ_SLOT (slotBrushChanged (const TQPixmap &, bool)));
m_toolWidgetBrush = 0;
}

@ -370,11 +370,11 @@ void kpToolPolygon::begin ()
if (m_toolWidgetFillStyle)
{
connect (m_toolWidgetFillStyle, TQT_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)),
this, TQT_SLOT (slotFillStyleChanged (kpToolWidgetFillStyle::FillStyle)));
connect (m_toolWidgetFillStyle, TQ_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)),
this, TQ_SLOT (slotFillStyleChanged (kpToolWidgetFillStyle::FillStyle)));
}
connect (m_toolWidgetLineWidth, TQT_SIGNAL (lineWidthChanged (int)),
this, TQT_SLOT (slotLineWidthChanged (int)));
connect (m_toolWidgetLineWidth, TQ_SIGNAL (lineWidthChanged (int)),
this, TQ_SLOT (slotLineWidthChanged (int)));
if (m_toolWidgetFillStyle)
m_toolWidgetFillStyle->show ();
@ -404,15 +404,15 @@ void kpToolPolygon::end ()
if (m_toolWidgetFillStyle)
{
disconnect (m_toolWidgetFillStyle, TQT_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)),
this, TQT_SLOT (slotFillStyleChanged (kpToolWidgetFillStyle::FillStyle)));
disconnect (m_toolWidgetFillStyle, TQ_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)),
this, TQ_SLOT (slotFillStyleChanged (kpToolWidgetFillStyle::FillStyle)));
m_toolWidgetFillStyle = 0;
}
if (m_toolWidgetLineWidth)
{
disconnect (m_toolWidgetLineWidth, TQT_SIGNAL (lineWidthChanged (int)),
this, TQT_SLOT (slotLineWidthChanged (int)));
disconnect (m_toolWidgetLineWidth, TQ_SIGNAL (lineWidthChanged (int)),
this, TQ_SLOT (slotLineWidthChanged (int)));
m_toolWidgetLineWidth = 0;
}

@ -162,13 +162,13 @@ void kpToolPreviewDialog::createPreviewGroupBox ()
m_previewPixmapLabel = new kpResizeSignallingLabel (m_previewGroupBox);
m_previewPixmapLabel->setMinimumSize (150, 110);
connect (m_previewPixmapLabel, TQT_SIGNAL (resized ()),
this, TQT_SLOT (updatePreview ()));
connect (m_previewPixmapLabel, TQ_SIGNAL (resized ()),
this, TQ_SLOT (updatePreview ()));
TQPushButton *updatePushButton = new TQPushButton (i18n ("&Update"),
m_previewGroupBox);
connect (updatePushButton, TQT_SIGNAL (clicked ()),
this, TQT_SLOT (slotUpdateWithWaitCursor ()));
connect (updatePushButton, TQ_SIGNAL (clicked ()),
this, TQ_SLOT (slotUpdateWithWaitCursor ()));
TQVBoxLayout *previewLayout = new TQVBoxLayout (m_previewGroupBox,

@ -323,16 +323,16 @@ void kpToolRectangle::begin ()
if (tb)
{
m_toolWidgetLineWidth = tb->toolWidgetLineWidth ();
connect (m_toolWidgetLineWidth, TQT_SIGNAL (lineWidthChanged (int)),
this, TQT_SLOT (slotLineWidthChanged ()));
connect (m_toolWidgetLineWidth, TQ_SIGNAL (lineWidthChanged (int)),
this, TQ_SLOT (slotLineWidthChanged ()));
m_toolWidgetLineWidth->show ();
updatePens ();
m_toolWidgetFillStyle = tb->toolWidgetFillStyle ();
connect (m_toolWidgetFillStyle, TQT_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)),
this, TQT_SLOT (slotFillStyleChanged ()));
connect (m_toolWidgetFillStyle, TQ_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)),
this, TQ_SLOT (slotFillStyleChanged ()));
m_toolWidgetFillStyle->show ();
updateBrushes ();
@ -356,15 +356,15 @@ void kpToolRectangle::end ()
if (m_toolWidgetLineWidth)
{
disconnect (m_toolWidgetLineWidth, TQT_SIGNAL (lineWidthChanged (int)),
this, TQT_SLOT (slotLineWidthChanged ()));
disconnect (m_toolWidgetLineWidth, TQ_SIGNAL (lineWidthChanged (int)),
this, TQ_SLOT (slotLineWidthChanged ()));
m_toolWidgetLineWidth = 0;
}
if (m_toolWidgetFillStyle)
{
disconnect (m_toolWidgetFillStyle, TQT_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)),
this, TQT_SLOT (slotFillStyleChanged ()));
disconnect (m_toolWidgetFillStyle, TQ_SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)),
this, TQ_SLOT (slotFillStyleChanged ()));
m_toolWidgetFillStyle = 0;
}

@ -591,8 +591,8 @@ void kpToolResizeScaleDialog::createActOnBox (TQWidget *baseWidget)
m_actOnBox->setStretchFactor (m_actOnCombo, 1);
connect (m_actOnCombo, TQT_SIGNAL (activated (int)),
this, TQT_SLOT (slotActOnChanged ()));
connect (m_actOnCombo, TQ_SIGNAL (activated (int)),
this, TQ_SLOT (slotActOnChanged ()));
}
@ -713,12 +713,12 @@ void kpToolResizeScaleDialog::createOperationGroupBox (TQWidget *baseWidget)
//operationLayout->addWidget (m_smoothScaleLabel, 1, 2, TQt::AlignCenter);
connect (m_resizeButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotTypeChanged ()));
connect (m_scaleButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotTypeChanged ()));
connect (m_smoothScaleButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotTypeChanged ()));
connect (m_resizeButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotTypeChanged ()));
connect (m_scaleButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotTypeChanged ()));
connect (m_smoothScaleButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotTypeChanged ()));
}
// private
@ -800,18 +800,18 @@ void kpToolResizeScaleDialog::createDimensionsGroupBox (TQWidget *baseWidget)
dimensionsLayout->setRowSpacing (4/*row*/, dimensionsLayout->rowSpacing (4) * 2);
connect (m_newWidthInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SLOT (slotWidthChanged (int)));
connect (m_newHeightInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SLOT (slotHeightChanged (int)));
connect (m_newWidthInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SLOT (slotWidthChanged (int)));
connect (m_newHeightInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SLOT (slotHeightChanged (int)));
connect (m_percentWidthInput, TQT_SIGNAL (valueChanged (double)),
this, TQT_SLOT (slotPercentWidthChanged (double)));
connect (m_percentHeightInput, TQT_SIGNAL (valueChanged (double)),
this, TQT_SLOT (slotPercentHeightChanged (double)));
connect (m_percentWidthInput, TQ_SIGNAL (valueChanged (double)),
this, TQ_SLOT (slotPercentWidthChanged (double)));
connect (m_percentHeightInput, TQ_SIGNAL (valueChanged (double)),
this, TQ_SLOT (slotPercentHeightChanged (double)));
connect (m_keepAspectRatioCheckBox, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (setKeepAspectRatio (bool)));
connect (m_keepAspectRatioCheckBox, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (setKeepAspectRatio (bool)));
}

@ -300,10 +300,10 @@ void kpToolRotateDialog::createDirectionGroupBox ()
directionLayout->addWidget (m_clockwiseRadioButton, 1, 1, TQt::AlignCenter);
connect (m_antiClockwiseRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotUpdate ()));
connect (m_clockwiseRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotUpdate ()));
connect (m_antiClockwiseRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotUpdate ()));
connect (m_clockwiseRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotUpdate ()));
}
// private
@ -351,20 +351,20 @@ void kpToolRotateDialog::createAngleGroupBox ()
angleLayout->setColStretch (1, 2); // Stretch Custom Angle Input
connect (m_angle90RadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotUpdate ()));
connect (m_angle180RadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotUpdate ()));
connect (m_angle270RadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotUpdate ()));
connect (m_angle90RadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotUpdate ()));
connect (m_angle180RadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotUpdate ()));
connect (m_angle270RadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotUpdate ()));
connect (m_angleCustomRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotAngleCustomRadioButtonToggled (bool)));
connect (m_angleCustomRadioButton, TQT_SIGNAL (toggled (bool)),
this, TQT_SLOT (slotUpdate ()));
connect (m_angleCustomRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotAngleCustomRadioButtonToggled (bool)));
connect (m_angleCustomRadioButton, TQ_SIGNAL (toggled (bool)),
this, TQ_SLOT (slotUpdate ()));
connect (m_angleCustomInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SLOT (slotUpdate ()));
connect (m_angleCustomInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SLOT (slotUpdate ()));
}

@ -68,10 +68,10 @@ kpToolSelection::kpToolSelection (Mode mode,
m_createNOPTimer (new TQTimer (this)),
m_RMBMoveUpdateGUITimer (new TQTimer (this))
{
connect (m_createNOPTimer, TQT_SIGNAL (timeout ()),
this, TQT_SLOT (delayedDraw ()));
connect (m_RMBMoveUpdateGUITimer, TQT_SIGNAL (timeout ()),
this, TQT_SLOT (slotRMBMoveUpdateGUI ()));
connect (m_createNOPTimer, TQ_SIGNAL (timeout ()),
this, TQ_SLOT (delayedDraw ()));
connect (m_RMBMoveUpdateGUITimer, TQ_SIGNAL (timeout ()),
this, TQ_SLOT (slotRMBMoveUpdateGUI ()));
}
kpToolSelection::~kpToolSelection ()
@ -180,8 +180,8 @@ void kpToolSelection::begin ()
if (m_toolWidgetOpaqueOrTransparent)
{
connect (m_toolWidgetOpaqueOrTransparent, TQT_SIGNAL (isOpaqueChanged (bool)),
this, TQT_SLOT (slotIsOpaqueChanged ()));
connect (m_toolWidgetOpaqueOrTransparent, TQ_SIGNAL (isOpaqueChanged (bool)),
this, TQ_SLOT (slotIsOpaqueChanged ()));
m_toolWidgetOpaqueOrTransparent->show ();
}
}
@ -225,8 +225,8 @@ void kpToolSelection::end ()
if (m_toolWidgetOpaqueOrTransparent)
{
disconnect (m_toolWidgetOpaqueOrTransparent, TQT_SIGNAL (isOpaqueChanged (bool)),
this, TQT_SLOT (slotIsOpaqueChanged ()));
disconnect (m_toolWidgetOpaqueOrTransparent, TQ_SIGNAL (isOpaqueChanged (bool)),
this, TQ_SLOT (slotIsOpaqueChanged ()));
m_toolWidgetOpaqueOrTransparent = 0;
}
@ -2037,8 +2037,8 @@ kpToolSelectionResizeScaleCommand::kpToolSelectionResizeScaleCommand (
m_newWidth = selection ()->width ();
m_newHeight = selection ()->height ();
connect (m_smoothScaleTimer, TQT_SIGNAL (timeout ()),
this, TQT_SLOT (resizeScaleAndMove ()));
connect (m_smoothScaleTimer, TQ_SIGNAL (timeout ()),
this, TQ_SLOT (resizeScaleAndMove ()));
}
kpToolSelectionResizeScaleCommand::~kpToolSelectionResizeScaleCommand ()

@ -296,10 +296,10 @@ void kpToolSkewDialog::createAngleGroupBox ()
angleLayout->addWidget (verticalSkewDegreesLabel, 1, 3);
connect (m_horizontalSkewInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SLOT (slotUpdate ()));
connect (m_verticalSkewInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SLOT (slotUpdate ()));
connect (m_horizontalSkewInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SLOT (slotUpdate ()));
connect (m_verticalSkewInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SLOT (slotUpdate ()));
}

@ -61,9 +61,9 @@ kpUnzoomedThumbnailView::kpUnzoomedThumbnailView (
if (buddyViewScrollableContainer ())
{
connect (buddyViewScrollableContainer (),
TQT_SIGNAL (contentsMovingSoon (int, int)),
TQ_SIGNAL (contentsMovingSoon (int, int)),
this,
TQT_SLOT (adjustToEnvironment ()));
TQ_SLOT (adjustToEnvironment ()));
}
// Call to virtual function - this is why the class is sealed

@ -69,8 +69,8 @@ kpColorSimilarityDialog::kpColorSimilarityDialog (kpMainWindow *mainWindow,
cubeLayout->addWidget (updatePushButton, 0/*stretch*/, TQt::AlignHCenter);
connect (updatePushButton, TQT_SIGNAL (clicked ()),
this, TQT_SLOT (slotColorSimilarityValueChanged ()));
connect (updatePushButton, TQ_SIGNAL (clicked ()),
this, TQ_SLOT (slotColorSimilarityValueChanged ()));
TQGroupBox *inputGroupBox = new TQGroupBox (i18n ("RGB Color Cube Distance"), baseWidget);
@ -86,8 +86,8 @@ kpColorSimilarityDialog::kpColorSimilarityDialog (kpMainWindow *mainWindow,
inputLayout->addWidget (m_colorSimilarityInput);
connect (m_colorSimilarityInput, TQT_SIGNAL (valueChanged (int)),
this, TQT_SLOT (slotColorSimilarityValueChanged ()));
connect (m_colorSimilarityInput, TQ_SIGNAL (valueChanged (int)),
this, TQ_SLOT (slotColorSimilarityValueChanged ()));
TQVBoxLayout *baseLayout = new TQVBoxLayout (baseWidget, 0/*margin*/, spacingHint () * 2);

@ -476,8 +476,8 @@ kpColorCells::kpColorCells (TQWidget *parent,
setAcceptDrops (true);
setAcceptDrags (true);
connect (this, TQT_SIGNAL (colorDoubleClicked (int)),
TQT_SLOT (slotColorDoubleClicked (int)));
connect (this, TQ_SIGNAL (colorDoubleClicked (int)),
TQ_SLOT (slotColorDoubleClicked (int)));
if (!ownColorsInitialised)
{
@ -674,9 +674,9 @@ void kpColorCells::mouseReleaseEvent (TQMouseEvent *e)
m_mouseButton = 1;
}
connect (this, TQT_SIGNAL (colorSelected (int)), this, TQT_SLOT (slotColorSelected (int)));
connect (this, TQ_SIGNAL (colorSelected (int)), this, TQ_SLOT (slotColorSelected (int)));
KColorCells::mouseReleaseEvent (e);
disconnect (this, TQT_SIGNAL (colorSelected (int)), this, TQT_SLOT (slotColorSelected (int)));
disconnect (this, TQ_SIGNAL (colorSelected (int)), this, TQ_SLOT (slotColorSelected (int)));
#if DEBUG_KP_COLOR_TOOL_BAR
kdDebug () << "kpColorCells::mouseReleaseEvent() setting m_mouseButton back to -1" << endl;
@ -830,16 +830,16 @@ kpColorPalette::kpColorPalette (TQWidget *parent,
m_transparentColorCell = new kpTransparentColorCell (this);
m_transparentColorCell->setSizePolicy (TQSizePolicy::Fixed, TQSizePolicy::Fixed);
connect (m_transparentColorCell, TQT_SIGNAL (foregroundColorChanged (const kpColor &)),
this, TQT_SIGNAL (foregroundColorChanged (const kpColor &)));
connect (m_transparentColorCell, TQT_SIGNAL (backgroundColorChanged (const kpColor &)),
this, TQT_SIGNAL (backgroundColorChanged (const kpColor &)));
connect (m_transparentColorCell, TQ_SIGNAL (foregroundColorChanged (const kpColor &)),
this, TQ_SIGNAL (foregroundColorChanged (const kpColor &)));
connect (m_transparentColorCell, TQ_SIGNAL (backgroundColorChanged (const kpColor &)),
this, TQ_SIGNAL (backgroundColorChanged (const kpColor &)));
m_colorCells = new kpColorCells (this);
connect (m_colorCells, TQT_SIGNAL (foregroundColorChanged (const kpColor &)),
this, TQT_SIGNAL (foregroundColorChanged (const kpColor &)));
connect (m_colorCells, TQT_SIGNAL (backgroundColorChanged (const kpColor &)),
this, TQT_SIGNAL (backgroundColorChanged (const kpColor &)));
connect (m_colorCells, TQ_SIGNAL (foregroundColorChanged (const kpColor &)),
this, TQ_SIGNAL (foregroundColorChanged (const kpColor &)));
connect (m_colorCells, TQ_SIGNAL (backgroundColorChanged (const kpColor &)),
this, TQ_SIGNAL (backgroundColorChanged (const kpColor &)));
setOrientation (o);
}
@ -965,25 +965,25 @@ kpColorToolBar::kpColorToolBar (const TQString &label, kpMainWindow *mainWindow,
m_dualColorButton = new kpDualColorButton (mainWindow, base);
m_dualColorButton->setSizePolicy (TQSizePolicy::Fixed, TQSizePolicy::Fixed);
connect (m_dualColorButton, TQT_SIGNAL (colorsSwapped (const kpColor &, const kpColor &)),
this, TQT_SIGNAL (colorsSwapped (const kpColor &, const kpColor &)));
connect (m_dualColorButton, TQT_SIGNAL (foregroundColorChanged (const kpColor &)),
this, TQT_SIGNAL (foregroundColorChanged (const kpColor &)));
connect (m_dualColorButton, TQT_SIGNAL (backgroundColorChanged (const kpColor &)),
this, TQT_SIGNAL (backgroundColorChanged (const kpColor &)));
connect (m_dualColorButton, TQ_SIGNAL (colorsSwapped (const kpColor &, const kpColor &)),
this, TQ_SIGNAL (colorsSwapped (const kpColor &, const kpColor &)));
connect (m_dualColorButton, TQ_SIGNAL (foregroundColorChanged (const kpColor &)),
this, TQ_SIGNAL (foregroundColorChanged (const kpColor &)));
connect (m_dualColorButton, TQ_SIGNAL (backgroundColorChanged (const kpColor &)),
this, TQ_SIGNAL (backgroundColorChanged (const kpColor &)));
m_boxLayout->addWidget (m_dualColorButton, 0/*stretch*/);
m_colorPalette = new kpColorPalette (base);
connect (m_colorPalette, TQT_SIGNAL (foregroundColorChanged (const kpColor &)),
m_dualColorButton, TQT_SLOT (setForegroundColor (const kpColor &)));
connect (m_colorPalette, TQT_SIGNAL (backgroundColorChanged (const kpColor &)),
m_dualColorButton, TQT_SLOT (setBackgroundColor (const kpColor &)));
connect (m_colorPalette, TQ_SIGNAL (foregroundColorChanged (const kpColor &)),
m_dualColorButton, TQ_SLOT (setForegroundColor (const kpColor &)));
connect (m_colorPalette, TQ_SIGNAL (backgroundColorChanged (const kpColor &)),
m_dualColorButton, TQ_SLOT (setBackgroundColor (const kpColor &)));
m_boxLayout->addWidget (m_colorPalette, 0/*stretch*/);
m_colorSimilarityToolBarItem = new kpColorSimilarityToolBarItem (mainWindow, base);
m_colorSimilarityToolBarItem->setSizePolicy (TQSizePolicy::Fixed, TQSizePolicy::Fixed);
connect (m_colorSimilarityToolBarItem, TQT_SIGNAL (colorSimilarityChanged (double, int)),
this, TQT_SIGNAL (colorSimilarityChanged (double, int)));
connect (m_colorSimilarityToolBarItem, TQ_SIGNAL (colorSimilarityChanged (double, int)),
this, TQ_SIGNAL (colorSimilarityChanged (double, int)));
m_boxLayout->addWidget (m_colorSimilarityToolBarItem, 0/*stretch*/);
// HACK: couldn't get TQSpacerItem to work

@ -131,8 +131,8 @@ kpToolToolBar::kpToolToolBar (const TQString &label, kpMainWindow *mainWindow, i
it != m_toolWidgets.end ();
it++)
{
connect (*it, TQT_SIGNAL (optionSelected (int, int)),
this, TQT_SIGNAL (toolWidgetOptionSelected ()));
connect (*it, TQ_SIGNAL (optionSelected (int, int)),
this, TQ_SIGNAL (toolWidgetOptionSelected ()));
}
#if DEBUG_KP_TOOL_TOOL_BAR
@ -151,7 +151,7 @@ kpToolToolBar::kpToolToolBar (const TQString &label, kpMainWindow *mainWindow, i
m_buttonGroup = new TQButtonGroup (); // invisible
m_buttonGroup->setExclusive (true);
connect (m_buttonGroup, TQT_SIGNAL (clicked (int)), TQT_SLOT (slotToolButtonClicked ()));
connect (m_buttonGroup, TQ_SIGNAL (clicked (int)), TQ_SLOT (slotToolButtonClicked ()));
hideAllToolWidgets ();
}
@ -247,10 +247,10 @@ void kpToolToolBar::registerTool (kpTool *tool)
m_buttonToolPairs.append (kpButtonToolPair (b, tool));
connect (tool, TQT_SIGNAL (actionActivated ()),
this, TQT_SLOT (slotToolActionActivated ()));
connect (tool, TQT_SIGNAL (actionToolTipChanged (const TQString &)),
this, TQT_SLOT (slotToolActionToolTipChanged ()));
connect (tool, TQ_SIGNAL (actionActivated ()),
this, TQ_SLOT (slotToolActionActivated ()));
connect (tool, TQ_SIGNAL (actionToolTipChanged (const TQString &)),
this, TQ_SLOT (slotToolActionToolTipChanged ()));
}
// public
@ -265,10 +265,10 @@ void kpToolToolBar::unregisterTool (kpTool *tool)
delete ((*it).m_button);
m_buttonToolPairs.erase (it);
disconnect (tool, TQT_SIGNAL (actionActivated ()),
this, TQT_SLOT (slotToolActionActivated ()));
disconnect (tool, TQT_SIGNAL (actionToolTipChanged (const TQString &)),
this, TQT_SLOT (slotToolActionToolTipChanged ()));
disconnect (tool, TQ_SIGNAL (actionActivated ()),
this, TQ_SLOT (slotToolActionActivated ()));
disconnect (tool, TQ_SIGNAL (actionToolTipChanged (const TQString &)),
this, TQ_SLOT (slotToolActionToolTipChanged ()));
break;
}
}

@ -36,9 +36,9 @@ dwMenuAction::dwMenuAction( const TQString& text, const TDEShortcut& cut,
KDockMainWindow *mw, const char* name )
:TDEToggleAction(text,cut,parent,name),m_dw(dw),m_mw(mw)
{
connect(this,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotToggled(bool)));
connect(m_dw->dockManager(),TQT_SIGNAL(change()),this,TQT_SLOT(anDWChanged()));
connect(m_dw,TQT_SIGNAL(destroyed()),this,TQT_SLOT(slotWidgetDestroyed()));
connect(this,TQ_SIGNAL(toggled(bool)),this,TQ_SLOT(slotToggled(bool)));
connect(m_dw->dockManager(),TQ_SIGNAL(change()),this,TQ_SLOT(anDWChanged()));
connect(m_dw,TQ_SIGNAL(destroyed()),this,TQ_SLOT(slotWidgetDestroyed()));
setChecked(m_dw->mayBeHide());
}

@ -58,11 +58,11 @@ ImageSelectLine::ImageSelectLine( TQWidget *parent, const TQString& text )
m_urlCombo->setMaxItems(5);
connect( m_urlCombo, TQT_SIGNAL( urlActivated( const KURL& )),
this, TQT_SLOT( slUrlActivated( const KURL& )));
connect( m_urlCombo, TQ_SIGNAL( urlActivated( const KURL& )),
this, TQ_SLOT( slUrlActivated( const KURL& )));
connect( m_buttFileSelect, TQT_SIGNAL( clicked() ),
this, TQT_SLOT( slSelectFile()));
connect( m_buttFileSelect, TQ_SIGNAL( clicked() ),
this, TQ_SLOT( slSelectFile()));
}
void ImageSelectLine::slSelectFile()

@ -108,8 +108,8 @@ FormatDialog::FormatDialog( TQWidget *parent, const TQString&, const char *name
#endif
kdDebug(28000) << "#### have " << fo.count() << " image types" << endl;
lb_format->insertStringList( fo );
connect( lb_format, TQT_SIGNAL( highlighted(const TQString&)),
TQT_SLOT( showHelp(const TQString&)));
connect( lb_format, TQ_SIGNAL( highlighted(const TQString&)),
TQ_SLOT( showHelp(const TQString&)));
// Insert label for helptext
l_help = new TQLabel( page );

@ -59,7 +59,7 @@ ImgPrintDialog::ImgPrintDialog( KookaImage *img, TQWidget *parent, const char* n
m_scaleRadios = new TQButtonGroup( 2, TQt::Vertical, i18n("Image Print Size"), this );
m_scaleRadios->setRadioButtonExclusive(true);
connect( m_scaleRadios, TQT_SIGNAL(clicked(int)), TQT_SLOT(slScaleChanged(int)));
connect( m_scaleRadios, TQ_SIGNAL(clicked(int)), TQ_SLOT(slScaleChanged(int)));
m_rbScreen = new TQRadioButton( i18n("Scale to same size as on screen"),
m_scaleRadios );
@ -116,11 +116,11 @@ ImgPrintDialog::ImgPrintDialog( KookaImage *img, TQWidget *parent, const char* n
m_sizeW = new KIntNumInput( group );
m_sizeW->setLabel( i18n("Image width:"), AlignVCenter );
m_sizeW->setSuffix( i18n(" mm"));
connect( m_sizeW, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slCustomWidthChanged(int)));
connect( m_sizeW, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slCustomWidthChanged(int)));
m_sizeH = new KIntNumInput( m_sizeW, AlignVCenter, group );
m_sizeH->setLabel( i18n("Image height:"), AlignVCenter);
m_sizeH->setSuffix( i18n(" mm"));
connect( m_sizeH, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slCustomHeightChanged(int)));
connect( m_sizeH, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slCustomHeightChanged(int)));
m_ratio = new TQCheckBox( i18n("Maintain aspect ratio"), group, "cbAspectRatio" );
m_ratio->setChecked(true);

@ -86,9 +86,9 @@ KOCRBase::KOCRBase( TQWidget *parent, KSpellConfig *spellConfig,
m_userWantsSpellCheck = konf->readBoolEntry(CFG_WANT_TDESPELL, true);
/* Connect signals which disable the fields and store the configuration */
connect( this, TQT_SIGNAL( user1Clicked()), this, TQT_SLOT( writeConfig()));
connect( this, TQT_SIGNAL( user1Clicked()), this, TQT_SLOT( startOCR() ));
connect( this, TQT_SIGNAL( user2Clicked()), this, TQT_SLOT( stopOCR() ));
connect( this, TQ_SIGNAL( user1Clicked()), this, TQ_SLOT( writeConfig()));
connect( this, TQ_SIGNAL( user1Clicked()), this, TQ_SLOT( startOCR() ));
connect( this, TQ_SIGNAL( user2Clicked()), this, TQ_SLOT( stopOCR() ));
m_previewSize.setWidth(200);
m_previewSize.setHeight(300);
@ -191,13 +191,13 @@ void KOCRBase::spellCheckIntro()
spaceEater->setSizePolicy( TQSizePolicy( TQSizePolicy::Ignored, TQSizePolicy::Ignored ));
/* connect toggle button */
connect( m_cbWantCheck, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slWantSpellcheck(bool)));
connect( m_cbWantCheck, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slWantSpellcheck(bool)));
m_cbWantCheck->setChecked( m_userWantsSpellCheck );
m_gbSpellOpts->setEnabled( m_userWantsSpellCheck );
m_spellConfig = sCfg;
connect( sCfg, TQT_SIGNAL(configChanged()),
this, TQT_SLOT(slSpellConfigChanged()));
connect( sCfg, TQ_SIGNAL(configChanged()),
this, TQ_SLOT(slSpellConfigChanged()));
}
void KOCRBase::slSpellConfigChanged()
@ -242,10 +242,10 @@ void KOCRBase::introduceImage( KookaImage* img)
if( m_job )
{
connect( m_job, TQT_SIGNAL( result( TDEIO::Job * )),
this, TQT_SLOT( slPreviewResult( TDEIO::Job * )));
connect( m_job, TQT_SIGNAL( gotPreview( const KFileItem*, const TQPixmap& )),
TQT_SLOT( slGotPreview( const KFileItem*, const TQPixmap& ) ));
connect( m_job, TQ_SIGNAL( result( TDEIO::Job * )),
this, TQ_SLOT( slPreviewResult( TDEIO::Job * )));
connect( m_job, TQ_SIGNAL( gotPreview( const KFileItem*, const TQPixmap& )),
TQ_SLOT( slGotPreview( const KFileItem*, const TQPixmap& ) ));
/* TDEIO::Jo result is called in any way: Success, Failed, Error,
* thus connecting the failed is not really necessary.
*/

@ -291,7 +291,7 @@ EngineError KadmosDialog::setupGui()
m_cbLang = new TQComboBox( m_gbLang );
m_cbLang->setCurrentText( TDELocale::defaultCountry() );
connect( m_bbFont, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(slFontChanged(int) ));
connect( m_bbFont, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(slFontChanged(int) ));
m_rbMachine->setChecked(true);
/* --- */

@ -213,8 +213,8 @@ void ocradDialog::version( const TQString& exe )
*m_proc << exe;
*m_proc << TQString("-V");
connect( m_proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int )),
this, TQT_SLOT(slReceiveStdIn(TDEProcess *, char *, int )));
connect( m_proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int )),
this, TQ_SLOT(slReceiveStdIn(TDEProcess *, char *, int )));
if( ! m_proc->start( TDEProcess::NotifyOnExit, TDEProcess::Stdout ) )
{

@ -87,12 +87,12 @@ Kooka::Kooka( const TQCString& deviceToUse)
statusBar()->show();
// allow the view to change the statusbar and caption
connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
this, TQT_SLOT(changeStatusbar(const TQString&)));
connect(m_view, TQT_SIGNAL(signalCleanStatusbar(void)),
this, TQT_SLOT(cleanStatusbar()));
connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
this, TQT_SLOT(changeCaption(const TQString&)));
connect(m_view, TQ_SIGNAL(signalChangeStatusbar(const TQString&)),
this, TQ_SLOT(changeStatusbar(const TQString&)));
connect(m_view, TQ_SIGNAL(signalCleanStatusbar(void)),
this, TQ_SLOT(cleanStatusbar()));
connect(m_view, TQ_SIGNAL(signalChangeCaption(const TQString&)),
this, TQ_SLOT(changeCaption(const TQString&)));
changeCaption( i18n( "TDE Scanning" ));
@ -125,39 +125,39 @@ void Kooka::startup( void )
void Kooka::setupActions()
{
KStdAction::print(this, TQT_SLOT(filePrint()), actionCollection());
KStdAction::quit(this , TQT_SLOT(close()), actionCollection());
KStdAction::print(this, TQ_SLOT(filePrint()), actionCollection());
KStdAction::quit(this , TQ_SLOT(close()), actionCollection());
KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()),
KStdAction::keyBindings(guiFactory(), TQ_SLOT(configureShortcuts()),
actionCollection());
KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()),
KStdAction::configureToolbars(this, TQ_SLOT(optionsConfigureToolbars()),
actionCollection());
KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
KStdAction::preferences(this, TQ_SLOT(optionsPreferences()), actionCollection());
m_view->createDockMenu(actionCollection(), this, "settings_show_docks" );
/* Image Viewer action Toolbar - OCR, Scaling etc. */
(void) new TDEAction(i18n("&OCR Image..."), "ocr", CTRL+Key_O,
m_view, TQT_SLOT(doOCR()),
m_view, TQ_SLOT(doOCR()),
actionCollection(), "ocrImage" );
(void) new TDEAction(i18n("O&CR on Selection..."), "ocr-select", CTRL+Key_C,
m_view, TQT_SLOT(doOCRonSelection()),
m_view, TQ_SLOT(doOCRonSelection()),
actionCollection(), "ocrImageSelect" );
TDEAction *act;
act = new TDEAction(i18n("Scale to W&idth"), "scaletowidth", CTRL+Key_I,
m_view, TQT_SLOT( slIVScaleToWidth()),
m_view, TQ_SLOT( slIVScaleToWidth()),
actionCollection(), "scaleToWidth" );
m_view->connectViewerAction( act );
act = new TDEAction(i18n("Scale to &Height"), "scaletoheight", CTRL+Key_H,
m_view, TQT_SLOT( slIVScaleToHeight()),
m_view, TQ_SLOT( slIVScaleToHeight()),
actionCollection(), "scaleToHeight" );
m_view->connectViewerAction( act );
act = new TDEAction(i18n("Original &Size"), "scaleorig", CTRL+Key_S,
m_view, TQT_SLOT( slIVScaleOriginal()),
m_view, TQ_SLOT( slIVScaleOriginal()),
actionCollection(), "scaleOriginal" );
m_view->connectViewerAction( act );
@ -173,100 +173,100 @@ actionCollection());
actionCollection(), "keepZoom" );
#endif
connect( act, TQT_SIGNAL( toggled( bool ) ), m_view->getImageViewer(),
TQT_SLOT(setKeepZoom(bool)));
connect( act, TQ_SIGNAL( toggled( bool ) ), m_view->getImageViewer(),
TQ_SLOT(setKeepZoom(bool)));
m_view->connectViewerAction( act );
/* thumbview and gallery actions */
act = new TDEAction(i18n("Set Zoom..."), "viewmag", 0,
m_view, TQT_SLOT( slIVShowZoomDialog()),
m_view, TQ_SLOT( slIVShowZoomDialog()),
actionCollection(), "showZoomDialog" );
m_view->connectViewerAction( act );
(void) new TDEAction(i18n("Create From Selectio&n"), "crop", CTRL+Key_N,
m_view, TQT_SLOT( slCreateNewImgFromSelection() ),
m_view, TQ_SLOT( slCreateNewImgFromSelection() ),
actionCollection(), "createFromSelection" );
(void) new TDEAction(i18n("Mirror Image &Vertically"), "mirror-vert", CTRL+Key_V,
this, TQT_SLOT( slMirrorVertical() ),
this, TQ_SLOT( slMirrorVertical() ),
actionCollection(), "mirrorVertical" );
(void) new TDEAction(i18n("&Mirror Image Horizontally"), "mirror-horiz", CTRL+Key_M,
this, TQT_SLOT( slMirrorHorizontal() ),
this, TQ_SLOT( slMirrorHorizontal() ),
actionCollection(), "mirrorHorizontal" );
(void) new TDEAction(i18n("Mirror Image &Both Directions"), "mirror-both", CTRL+Key_B,
this, TQT_SLOT( slMirrorBoth() ),
this, TQ_SLOT( slMirrorBoth() ),
actionCollection(), "mirrorBoth" );
(void) new TDEAction(i18n("Open Image in &Graphic Application..."), "document-open", CTRL+Key_G,
m_view, TQT_SLOT( slOpenCurrInGraphApp() ),
m_view, TQ_SLOT( slOpenCurrInGraphApp() ),
actionCollection(), "openInGraphApp" );
act = new TDEAction(i18n("&Rotate Image Clockwise"), "object-rotate-right", CTRL+Key_R,
this, TQT_SLOT( slRotateClockWise() ),
this, TQ_SLOT( slRotateClockWise() ),
actionCollection(), "rotateClockwise" );
m_view->connectViewerAction( act );
act = new TDEAction(i18n("Rotate Image Counter-Clock&wise"), "object-rotate-left", CTRL+Key_W,
this, TQT_SLOT( slRotateCounterClockWise() ),
this, TQ_SLOT( slRotateCounterClockWise() ),
actionCollection(), "rotateCounterClockwise" );
m_view->connectViewerAction( act );
act = new TDEAction(i18n("Rotate Image 180 &Degrees"), "rotate", CTRL+Key_D,
this, TQT_SLOT( slRotate180() ),
this, TQ_SLOT( slRotate180() ),
actionCollection(), "upsitedown" );
m_view->connectViewerAction( act );
/* Gallery actions */
act = new TDEAction(i18n("&Create Folder..."), "folder-new", 0,
m_view->gallery(),TQT_SLOT( slotCreateFolder() ),
m_view->gallery(),TQ_SLOT( slotCreateFolder() ),
actionCollection(), "foldernew" );
m_view->connectGalleryAction( act );
act = new TDEAction(i18n("&Save Image..."), "document-save", 0,
m_view->gallery(),TQT_SLOT( slotExportFile() ),
m_view->gallery(),TQ_SLOT( slotExportFile() ),
actionCollection(), "saveImage" );
m_view->connectGalleryAction( act );
act = new TDEAction(i18n("&Import Image..."), "inline_image", 0,
m_view->gallery(),TQT_SLOT( slotImportFile() ),
m_view->gallery(),TQ_SLOT( slotImportFile() ),
actionCollection(), "importImage" );
m_view->connectGalleryAction( act );
act = new TDEAction(i18n("&Delete Image"), "edittrash", 0,
m_view->gallery(),TQT_SLOT( slotDeleteItems() ),
m_view->gallery(),TQ_SLOT( slotDeleteItems() ),
actionCollection(), "deleteImage" );
m_view->connectGalleryAction( act );
act = new TDEAction(i18n("&Unload Image"), "window-close", 0,
m_view->gallery(),TQT_SLOT( slotUnloadItems() ),
m_view->gallery(),TQ_SLOT( slotUnloadItems() ),
actionCollection(), "unloadImage" );
m_view->connectGalleryAction( act );
#if 0
/* not yet supported actions - coming post 3.1 */
(void) new TDEAction(i18n("&Load Scan Parameters"), "bookmark_add", CTRL+Key_L,
m_view, TQT_SLOT(slLoadScanParams()),
m_view, TQ_SLOT(slLoadScanParams()),
actionCollection(), "loadscanparam" );
(void) new TDEAction(i18n("Save &Scan Parameters"), "bookmark_add", CTRL+Key_S,
m_view, TQT_SLOT(slSaveScanParams()),
m_view, TQ_SLOT(slSaveScanParams()),
actionCollection(), "savescanparam" );
#endif
(void) new TDEAction(i18n("Select Scan Device"), "scanner", 0,
m_view, TQT_SLOT( slSelectDevice()),
m_view, TQ_SLOT( slSelectDevice()),
actionCollection(), "selectsource" );
(void) new TDEAction( i18n("Enable All Warnings && Messages"), 0,
this, TQT_SLOT(slEnableWarnings()),
this, TQ_SLOT(slEnableWarnings()),
actionCollection(), "enable_msgs");
m_saveOCRTextAction = new TDEAction( i18n("Save OCR Res&ult Text"), "document-save-as", CTRL+Key_U,
m_view, TQT_SLOT(slSaveOCRResult()),
m_view, TQ_SLOT(slSaveOCRResult()),
actionCollection(), "saveOCRResult");
}
@ -387,7 +387,7 @@ void Kooka::optionsConfigureToolbars()
// use the standard toolbar editor
saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
KEditToolbar dlg(factory());
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_SLOT(newToolbarConfig()));
connect(&dlg, TQ_SIGNAL(newToolbarConfig()), TQ_SLOT(newToolbarConfig()));
dlg.exec();
}
@ -402,7 +402,7 @@ void Kooka::optionsPreferences()
// popup some sort of preference dialog, here
KookaPreferences dlg;
dlg.showPage( m_prefDialogIndex );
connect( &dlg, TQT_SIGNAL( dataSaved() ), m_view, TQT_SLOT(slFreshUpThumbView()));
connect( &dlg, TQ_SIGNAL( dataSaved() ), m_view, TQ_SLOT(slFreshUpThumbView()));
if (dlg.exec())
{

@ -100,8 +100,8 @@ void KookaPreferences::setupOCRPage()
*/
TQVGroupBox *gp = new TQVGroupBox( i18n("GOCR OCR"), page );
m_urlReqGocr = binaryCheckBox( gp, "gocr" );
connect( m_urlReqGocr, TQT_SIGNAL( textChanged( const TQString& )),
this, TQT_SLOT( slCheckOnGOCR( const TQString& )));
connect( m_urlReqGocr, TQ_SIGNAL( textChanged( const TQString& )),
this, TQ_SLOT( slCheckOnGOCR( const TQString& )));
TQString cmdGocr = tryFindBinary( "gocr", CFG_GOCR_BINARY );
kdDebug(28000) << "Found gocr command: " << cmdGocr << endl;
m_gocrBut->setEnabled(false);
@ -119,8 +119,8 @@ void KookaPreferences::setupOCRPage()
*/
gp = new TQVGroupBox( i18n("OCRAD OCR"), page );
m_urlReqOcrad = binaryCheckBox( gp, "ocrad" );
connect( m_urlReqOcrad, TQT_SIGNAL( textChanged( const TQString& )),
this, TQT_SLOT( slCheckOnOCRAD( const TQString& )));
connect( m_urlReqOcrad, TQ_SIGNAL( textChanged( const TQString& )),
this, TQ_SLOT( slCheckOnOCRAD( const TQString& )));
TQString cmdOcrad = tryFindBinary( "ocrad", CFG_OCRAD_BINARY );
kdDebug(28000) << "Found ocrad command: " << cmdOcrad << endl;
m_ocradBut->setEnabled(false);

@ -112,8 +112,8 @@ KookaView::KookaView( KParts::DockMainWindow *parent, const TQCString& deviceToU
img_canvas = new ImageCanvas( m_mainDock );
img_canvas->setMinimumSize(100,200);
img_canvas->enableContextMenu(true);
connect( img_canvas, TQT_SIGNAL( imageReadOnly(bool)),
this, TQT_SLOT(slViewerReadOnly(bool)));
connect( img_canvas, TQ_SIGNAL( imageReadOnly(bool)),
this, TQ_SLOT(slViewerReadOnly(bool)));
TDEPopupMenu *ctxtmenu = static_cast<TDEPopupMenu*>(img_canvas->contextMenu());
if( ctxtmenu )
@ -147,10 +147,10 @@ KookaView::KookaView( KParts::DockMainWindow *parent, const TQCString& deviceToU
30 ); // relation target/this (in percent)
connect( packager, TQT_SIGNAL(showThumbnails( KFileTreeViewItem* )),
this, TQT_SLOT( slShowThumbnails( KFileTreeViewItem* )));
connect( m_thumbview, TQT_SIGNAL( selectFromThumbnail( const KURL& )),
packager, TQT_SLOT( slSelectImage(const KURL&)));
connect( packager, TQ_SIGNAL(showThumbnails( KFileTreeViewItem* )),
this, TQ_SLOT( slShowThumbnails( KFileTreeViewItem* )));
connect( m_thumbview, TQ_SIGNAL( selectFromThumbnail( const KURL& )),
packager, TQ_SLOT( slSelectImage(const KURL&)));
/*
* Create a Kombobox that holds the last folders visible even on the preview page
@ -174,14 +174,14 @@ KookaView::KookaView( KParts::DockMainWindow *parent, const TQCString& deviceToU
connect( packager, TQT_SIGNAL( galleryPathSelected( KFileTreeBranch*, const TQString&)),
recentFolder, TQT_SLOT( slotGalleryPathChanged( KFileTreeBranch*, const TQString& )));
connect( packager, TQ_SIGNAL( galleryPathSelected( KFileTreeBranch*, const TQString&)),
recentFolder, TQ_SLOT( slotGalleryPathChanged( KFileTreeBranch*, const TQString& )));
connect( packager, TQT_SIGNAL( directoryToRemove( KFileTreeBranch*, const TQString&)),
recentFolder, TQT_SLOT( slotPathRemove( KFileTreeBranch*, const TQString& )));
connect( packager, TQ_SIGNAL( directoryToRemove( KFileTreeBranch*, const TQString&)),
recentFolder, TQ_SLOT( slotPathRemove( KFileTreeBranch*, const TQString& )));
connect( recentFolder, TQT_SIGNAL(activated( const TQString& )),
packager, TQT_SLOT(slotSelectDirectory( const TQString& )));
connect( recentFolder, TQ_SIGNAL(activated( const TQString& )),
packager, TQ_SLOT(slotSelectDirectory( const TQString& )));
/* the object from the kscan lib to handle low level scanning */
m_dockScanParam = parent->createDockWidget( "Scan Parameter",
@ -246,33 +246,33 @@ KookaView::KookaView( KParts::DockMainWindow *parent, const TQCString& deviceToU
}
/* New image created after scanning */
connect(sane, TQT_SIGNAL(sigNewImage(TQImage*,ImgScanInfo*)), this, TQT_SLOT(slNewImageScanned(TQImage*,ImgScanInfo*)));
connect(sane, TQ_SIGNAL(sigNewImage(TQImage*,ImgScanInfo*)), this, TQ_SLOT(slNewImageScanned(TQImage*,ImgScanInfo*)));
/* New preview image */
connect(sane, TQT_SIGNAL(sigNewPreview(TQImage*,ImgScanInfo *)), this, TQT_SLOT( slNewPreview(TQImage*,ImgScanInfo *)));
connect(sane, TQ_SIGNAL(sigNewPreview(TQImage*,ImgScanInfo *)), this, TQ_SLOT( slNewPreview(TQImage*,ImgScanInfo *)));
connect( sane, TQT_SIGNAL( sigScanStart() ), this, TQT_SLOT( slScanStart()));
connect( sane, TQT_SIGNAL( sigScanFinished(KScanStat)), this, TQT_SLOT(slScanFinished(KScanStat)));
connect( sane, TQT_SIGNAL( sigAcquireStart()), this, TQT_SLOT( slAcquireStart()));
connect( sane, TQ_SIGNAL( sigScanStart() ), this, TQ_SLOT( slScanStart()));
connect( sane, TQ_SIGNAL( sigScanFinished(KScanStat)), this, TQ_SLOT(slScanFinished(KScanStat)));
connect( sane, TQ_SIGNAL( sigAcquireStart()), this, TQ_SLOT( slAcquireStart()));
/* Image canvas should show a new document */
connect( packager, TQT_SIGNAL( showImage( KookaImage* )),
this, TQT_SLOT( slShowAImage( KookaImage*)));
connect( packager, TQ_SIGNAL( showImage( KookaImage* )),
this, TQ_SLOT( slShowAImage( KookaImage*)));
connect( packager, TQT_SIGNAL( aboutToShowImage(const KURL&)),
this, TQT_SLOT( slStartLoading( const KURL& )));
connect( packager, TQ_SIGNAL( aboutToShowImage(const KURL&)),
this, TQ_SLOT( slStartLoading( const KURL& )));
/* Packager unloads the image */
connect( packager, TQT_SIGNAL( unloadImage( KookaImage* )),
this, TQT_SLOT( slUnloadAImage( KookaImage*)));
connect( packager, TQ_SIGNAL( unloadImage( KookaImage* )),
this, TQ_SLOT( slUnloadAImage( KookaImage*)));
/* a image changed mostly through a image manipulation method like rotate */
connect( packager, TQT_SIGNAL( fileChanged( KFileItem* )),
m_thumbview, TQT_SLOT( slImageChanged( KFileItem* )));
connect( packager, TQ_SIGNAL( fileChanged( KFileItem* )),
m_thumbview, TQ_SLOT( slImageChanged( KFileItem* )));
connect( packager, TQT_SIGNAL( fileRenamed( KFileItem*, const KURL& )),
m_thumbview, TQT_SLOT( slImageRenamed( KFileItem*, const KURL& )));
connect( packager, TQ_SIGNAL( fileRenamed( KFileItem*, const KURL& )),
m_thumbview, TQ_SLOT( slImageRenamed( KFileItem*, const KURL& )));
connect( packager, TQT_SIGNAL( fileDeleted( KFileItem* )),
m_thumbview, TQT_SLOT( slImageDeleted( KFileItem* )));
connect( packager, TQ_SIGNAL( fileDeleted( KFileItem* )),
m_thumbview, TQ_SLOT( slImageDeleted( KFileItem* )));
packager->openRoots();
@ -346,8 +346,8 @@ bool KookaView::slSelectDevice( const TQCString& useDevice )
if( sane->openDevice( selDevice ) == KSCAN_OK )
{
connect( scan_params, TQT_SIGNAL( scanResolutionChanged( int, int )),
preview_canvas, TQT_SLOT( slNewScanResolutions( int, int )));
connect( scan_params, TQ_SIGNAL( scanResolutionChanged( int, int )),
preview_canvas, TQ_SLOT( slNewScanResolutions( int, int )));
if( ! scan_params->connectDevice( sane ) )
{
@ -360,12 +360,12 @@ bool KookaView::slSelectDevice( const TQCString& useDevice )
/* New Rectangle selection in the preview, now scanimge exists */
ImageCanvas *previewCanvas = preview_canvas->getImageCanvas();
connect( previewCanvas , TQT_SIGNAL( newRect(TQRect)),
scan_params, TQT_SLOT(slCustomScanSize(TQRect)));
connect( previewCanvas, TQT_SIGNAL( noRect()),
scan_params, TQT_SLOT(slMaximalScanSize()));
// connect( scan_params, TQT_SIGNAL( scanResolutionChanged( int, int )),
// preview_canvas, TQT_SLOT( slNewScanResolutions( int, int )));
connect( previewCanvas , TQ_SIGNAL( newRect(TQRect)),
scan_params, TQ_SLOT(slCustomScanSize(TQRect)));
connect( previewCanvas, TQ_SIGNAL( noRect()),
scan_params, TQ_SLOT(slMaximalScanSize()));
// connect( scan_params, TQ_SIGNAL( scanResolutionChanged( int, int )),
// preview_canvas, TQ_SLOT( slNewScanResolutions( int, int )));
/* load the preview image */
if( preview_canvas )
{
@ -558,32 +558,32 @@ void KookaView::startOCR( KookaImage *img )
ocrFabric = new KSANEOCR( m_mainDock, TDEGlobal::config() );
ocrFabric->setImageCanvas( img_canvas );
connect( ocrFabric, TQT_SIGNAL( newOCRResultText( const TQString& )),
m_ocrResEdit, TQT_SLOT(setText( const TQString& )));
connect( ocrFabric, TQ_SIGNAL( newOCRResultText( const TQString& )),
m_ocrResEdit, TQ_SLOT(setText( const TQString& )));
connect( ocrFabric, TQT_SIGNAL( newOCRResultText( const TQString& )),
m_dockOCRText, TQT_SLOT( show() ));
connect( ocrFabric, TQ_SIGNAL( newOCRResultText( const TQString& )),
m_dockOCRText, TQ_SLOT( show() ));
connect( ocrFabric, TQT_SIGNAL( repaintOCRResImage( )),
img_canvas, TQT_SLOT(repaint()));
connect( ocrFabric, TQ_SIGNAL( repaintOCRResImage( )),
img_canvas, TQ_SLOT(repaint()));
connect( ocrFabric, TQT_SIGNAL( clearOCRResultText()),
m_ocrResEdit, TQT_SLOT(clear()));
connect( ocrFabric, TQ_SIGNAL( clearOCRResultText()),
m_ocrResEdit, TQ_SLOT(clear()));
connect( ocrFabric, TQT_SIGNAL( updateWord(int, const TQString&, const TQString& )),
m_ocrResEdit, TQT_SLOT( slUpdateOCRResult( int, const TQString&, const TQString& )));
connect( ocrFabric, TQ_SIGNAL( updateWord(int, const TQString&, const TQString& )),
m_ocrResEdit, TQ_SLOT( slUpdateOCRResult( int, const TQString&, const TQString& )));
connect( ocrFabric, TQT_SIGNAL( ignoreWord(int, const ocrWord&)),
m_ocrResEdit, TQT_SLOT( slIgnoreWrongWord( int, const ocrWord& )));
connect( ocrFabric, TQ_SIGNAL( ignoreWord(int, const ocrWord&)),
m_ocrResEdit, TQ_SLOT( slIgnoreWrongWord( int, const ocrWord& )));
connect( ocrFabric, TQT_SIGNAL( markWordWrong(int, const ocrWord& )),
m_ocrResEdit, TQT_SLOT( slMarkWordWrong( int, const ocrWord& )));
connect( ocrFabric, TQ_SIGNAL( markWordWrong(int, const ocrWord& )),
m_ocrResEdit, TQ_SLOT( slMarkWordWrong( int, const ocrWord& )));
connect( ocrFabric, TQT_SIGNAL( readOnlyEditor( bool )),
m_ocrResEdit, TQT_SLOT( setReadOnly( bool )));
connect( ocrFabric, TQ_SIGNAL( readOnlyEditor( bool )),
m_ocrResEdit, TQ_SLOT( setReadOnly( bool )));
connect( ocrFabric, TQT_SIGNAL( selectWord( int, const ocrWord& )),
m_ocrResEdit, TQT_SLOT( slSelectWord( int, const ocrWord& )));
connect( ocrFabric, TQ_SIGNAL( selectWord( int, const ocrWord& )),
m_ocrResEdit, TQ_SLOT( slSelectWord( int, const ocrWord& )));
}

@ -224,9 +224,9 @@ bool KSANEOCR::startOCRVisible( TQWidget *parent )
m_ocrProcessDia->introduceImage( m_img );
visibleOCRRunning = true;
connect( m_ocrProcessDia, TQT_SIGNAL( user1Clicked()), this, TQT_SLOT( startOCRProcess() ));
connect( m_ocrProcessDia, TQT_SIGNAL( closeClicked()), this, TQT_SLOT( slotClose() ));
connect( m_ocrProcessDia, TQT_SIGNAL( user2Clicked()), this, TQT_SLOT( slotStopOCR() ));
connect( m_ocrProcessDia, TQ_SIGNAL( user1Clicked()), this, TQ_SLOT( startOCRProcess() ));
connect( m_ocrProcessDia, TQ_SIGNAL( closeClicked()), this, TQ_SLOT( slotClose() ));
connect( m_ocrProcessDia, TQ_SIGNAL( user2Clicked()), this, TQ_SLOT( slotStopOCR() ));
m_ocrProcessDia->show();
}
@ -279,9 +279,9 @@ void KSANEOCR::finishedOCRVisible( bool success )
*/
connect( new KSpell( m_parent, i18n("Kooka OCR Dictionary Check"),
this, TQT_SLOT( slSpellReady(KSpell*)),
this, TQ_SLOT( slSpellReady(KSpell*)),
m_ocrProcessDia->spellConfig() ),
TQT_SIGNAL( death()), this, TQT_SLOT(slSpellDead()));
TQ_SIGNAL( death()), this, TQ_SLOT(slSpellDead()));
}
delete m_ocrProcessDia;
@ -425,12 +425,12 @@ void KSANEOCR::startOCRAD( )
m_ocrResultText = "";
connect(daemon, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT( ocradExited(TDEProcess*)));
connect(daemon, TQT_SIGNAL(receivedStdout(TDEProcess *, char*, int)),
this, TQT_SLOT( ocradStdIn(TDEProcess*, char*, int)));
connect(daemon, TQT_SIGNAL(receivedStderr(TDEProcess *, char*, int)),
this, TQT_SLOT( ocradStdErr(TDEProcess*, char*, int)));
connect(daemon, TQ_SIGNAL(processExited(TDEProcess *)),
this, TQ_SLOT( ocradExited(TDEProcess*)));
connect(daemon, TQ_SIGNAL(receivedStdout(TDEProcess *, char*, int)),
this, TQ_SLOT( ocradStdIn(TDEProcess*, char*, int)));
connect(daemon, TQ_SIGNAL(receivedStderr(TDEProcess *, char*, int)),
this, TQ_SLOT( ocradStdErr(TDEProcess*, char*, int)));
if (!daemon->start(TDEProcess::NotifyOnExit, TDEProcess::All))
{
@ -535,12 +535,12 @@ void KSANEOCR::startOCRProcess( void )
TQ_CHECK_PTR(daemon);
m_ocrResultText = "";
connect(daemon, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT( gocrExited(TDEProcess*)));
connect(daemon, TQT_SIGNAL(receivedStdout(TDEProcess *, char*, int)),
this, TQT_SLOT( gocrStdIn(TDEProcess*, char*, int)));
connect(daemon, TQT_SIGNAL(receivedStderr(TDEProcess *, char*, int)),
this, TQT_SLOT( gocrStdErr(TDEProcess*, char*, int)));
connect(daemon, TQ_SIGNAL(processExited(TDEProcess *)),
this, TQ_SLOT( gocrExited(TDEProcess*)));
connect(daemon, TQ_SIGNAL(receivedStdout(TDEProcess *, char*, int)),
this, TQ_SLOT( gocrStdIn(TDEProcess*, char*, int)));
connect(daemon, TQ_SIGNAL(receivedStderr(TDEProcess *, char*, int)),
this, TQ_SLOT( gocrStdErr(TDEProcess*, char*, int)));
TQString opt;
*daemon << TQFile::encodeName(cmd).data();
@ -649,7 +649,7 @@ void KSANEOCR::startOCRProcess( void )
}
#ifdef TQT_THREAD_SUPPORT
/* start a timer and wait until it fires. */
TQTimer::singleShot( 500, this, TQT_SLOT( slotKadmosResult() ));
TQTimer::singleShot( 500, this, TQ_SLOT( slotKadmosResult() ));
#else
slotKadmosResult();
#endif
@ -703,7 +703,7 @@ void KSANEOCR::slotKadmosResult()
else
{
/* recognition thread is not yet finished. Wait another half a second. */
TQTimer::singleShot( 500, this, TQT_SLOT( slotKadmosResult() ));
TQTimer::singleShot( 500, this, TQ_SLOT( slotKadmosResult() ));
/* Never comes here if no threads exist on the system */
}
#endif /* HAVE_KADMOS */
@ -1347,18 +1347,18 @@ void KSANEOCR::slMisspelling( const TQString& originalword, const TQStringList&
void KSANEOCR::slSpellReady( KSpell *spell )
{
m_spell = spell;
connect ( m_spell, TQT_SIGNAL( misspelling( const TQString&, const TQStringList&,
connect ( m_spell, TQ_SIGNAL( misspelling( const TQString&, const TQStringList&,
unsigned int )),
this, TQT_SLOT( slMisspelling(const TQString& ,
this, TQ_SLOT( slMisspelling(const TQString& ,
const TQStringList& ,
unsigned int )));
connect( m_spell, TQT_SIGNAL( corrected ( const TQString&, const TQString&, unsigned int )),
this, TQT_SLOT( slSpellCorrected( const TQString&, const TQString&, unsigned int )));
connect( m_spell, TQ_SIGNAL( corrected ( const TQString&, const TQString&, unsigned int )),
this, TQ_SLOT( slSpellCorrected( const TQString&, const TQString&, unsigned int )));
connect( m_spell, TQT_SIGNAL( ignoreword( const TQString& )),
this, TQT_SLOT( slSpellIgnoreWord( const TQString& )));
connect( m_spell, TQ_SIGNAL( ignoreword( const TQString& )),
this, TQ_SLOT( slSpellIgnoreWord( const TQString& )));
connect( m_spell, TQT_SIGNAL( done(bool)), this, TQT_SLOT(slCheckListDone(bool)));
connect( m_spell, TQ_SIGNAL( done(bool)), this, TQ_SLOT(slCheckListDone(bool)));
kdDebug(28000) << "Spellcheck available" << endl;

@ -90,8 +90,8 @@ ScanPackager::ScanPackager( TQWidget *parent ) : KFileTreeView( parent )
setDropVisualizer(true);
setAcceptDrops(true);
connect( this, TQT_SIGNAL(dropped( TQWidget*, TQDropEvent*, KURL::List&, KURL& )),
this, TQT_SLOT( slotUrlsDropped( TQWidget*, TQDropEvent*, KURL::List&, KURL& )));
connect( this, TQ_SIGNAL(dropped( TQWidget*, TQDropEvent*, KURL::List&, KURL& )),
this, TQ_SLOT( slotUrlsDropped( TQWidget*, TQDropEvent*, KURL::List&, KURL& )));
kdDebug(28000) << "connected Drop-Signal" << endl;
setRenameable ( 0, true );
@ -101,14 +101,14 @@ ScanPackager::ScanPackager( TQWidget *parent ) : KFileTreeView( parent )
setRootIsDecorated( false );
connect( this, TQT_SIGNAL( clicked( TQListViewItem*)),
TQT_SLOT( slClicked(TQListViewItem*)));
connect( this, TQ_SIGNAL( clicked( TQListViewItem*)),
TQ_SLOT( slClicked(TQListViewItem*)));
connect( this, TQT_SIGNAL( rightButtonPressed( TQListViewItem *, const TQPoint &, int )),
TQT_SLOT( slShowContextMenue(TQListViewItem *, const TQPoint &, int )));
connect( this, TQ_SIGNAL( rightButtonPressed( TQListViewItem *, const TQPoint &, int )),
TQ_SLOT( slShowContextMenue(TQListViewItem *, const TQPoint &, int )));
connect( this, TQT_SIGNAL(itemRenamed (TQListViewItem*, const TQString &, int ) ), this,
TQT_SLOT(slFileRename( TQListViewItem*, const TQString&, int)));
connect( this, TQ_SIGNAL(itemRenamed (TQListViewItem*, const TQString &, int ) ), this,
TQ_SLOT(slFileRename( TQListViewItem*, const TQString&, int)));
img_counter = 1;
@ -158,17 +158,17 @@ KFileTreeBranch* ScanPackager::openRoot( const KURL& root, bool )
setDirOnlyMode( m_defaultBranch, false );
m_defaultBranch->setShowExtensions( true ); // false );
connect( m_defaultBranch, TQT_SIGNAL( newTreeViewItems( KFileTreeBranch*, const KFileTreeViewItemList& )),
this, TQT_SLOT( slotDecorate(KFileTreeBranch*, const KFileTreeViewItemList& )));
connect( m_defaultBranch, TQ_SIGNAL( newTreeViewItems( KFileTreeBranch*, const KFileTreeViewItemList& )),
this, TQ_SLOT( slotDecorate(KFileTreeBranch*, const KFileTreeViewItemList& )));
connect( m_defaultBranch, TQT_SIGNAL( directoryChildCount( KFileTreeViewItem* , int )),
this, TQT_SLOT( slotDirCount( KFileTreeViewItem *, int )));
connect( m_defaultBranch, TQ_SIGNAL( directoryChildCount( KFileTreeViewItem* , int )),
this, TQ_SLOT( slotDirCount( KFileTreeViewItem *, int )));
connect( m_defaultBranch, TQT_SIGNAL( deleteItem( KFileItem* )),
this, TQT_SLOT( slotDeleteFromBranch(KFileItem*)));
connect( m_defaultBranch, TQ_SIGNAL( deleteItem( KFileItem* )),
this, TQ_SLOT( slotDeleteFromBranch(KFileItem*)));
connect( m_defaultBranch, TQT_SIGNAL( populateFinished( KFileTreeViewItem * )),
this, TQT_SLOT( slotStartupFinished( KFileTreeViewItem * )));
connect( m_defaultBranch, TQ_SIGNAL( populateFinished( KFileTreeViewItem * )),
this, TQ_SLOT( slotStartupFinished( KFileTreeViewItem * )));
return( m_defaultBranch );

@ -73,8 +73,8 @@ ThumbView::ThumbView( TQWidget *parent, const char *name )
slSetBackGround();
connect( m_iconView, TQT_SIGNAL( executed( TQIconViewItem* )),
this, TQT_SLOT( slDoubleClicked( TQIconViewItem* )));
connect( m_iconView, TQ_SIGNAL( executed( TQIconViewItem* )),
this, TQ_SLOT( slDoubleClicked( TQIconViewItem* )));
m_pendingJobs.setAutoDelete(false);
}
@ -389,18 +389,18 @@ void ThumbView::slNewFileItems( const KFileItemList& items )
if( m_job )
{
connect( m_job, TQT_SIGNAL( result( TDEIO::Job * )),
this, TQT_SLOT( slPreviewResult( TDEIO::Job * )));
connect( m_job, TQT_SIGNAL( gotPreview( const KFileItem*, const TQPixmap& )),
TQT_SLOT( slGotPreview( const KFileItem*, const TQPixmap& ) ));
connect( m_job, TQ_SIGNAL( result( TDEIO::Job * )),
this, TQ_SLOT( slPreviewResult( TDEIO::Job * )));
connect( m_job, TQ_SIGNAL( gotPreview( const KFileItem*, const TQPixmap& )),
TQ_SLOT( slGotPreview( const KFileItem*, const TQPixmap& ) ));
m_pendingJobs.clear();
/* TDEIO::Jo result is called in any way: Success, Failed, Error,
* thus connecting the failed is not really necessary.
*/
// connect( job, TQT_SIGNAL( failed( const KFileItem* )),
// this, TQT_SLOT( slotFailed( const KFileItem* ) ));
// connect( job, TQ_SIGNAL( failed( const KFileItem* )),
// this, TQ_SLOT( slotFailed( const KFileItem* ) ));
}
}

@ -204,7 +204,7 @@ bool KPDFDocument::openDocument( const TQString & docFile, const KURL & url, con
if ( !d->saveBookmarksTimer )
{
d->saveBookmarksTimer = new TQTimer( this );
connect( d->saveBookmarksTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( saveDocumentInfo() ) );
connect( d->saveBookmarksTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( saveDocumentInfo() ) );
}
d->saveBookmarksTimer->start( 5 * 60 * 1000 );
@ -212,7 +212,7 @@ bool KPDFDocument::openDocument( const TQString & docFile, const KURL & url, con
if ( !d->memCheckTimer )
{
d->memCheckTimer = new TQTimer( this );
connect( d->memCheckTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotTimedMemoryCheck() ) );
connect( d->memCheckTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotTimedMemoryCheck() ) );
}
d->memCheckTimer->start( 2000 );

@ -120,11 +120,11 @@ Part::Part(TQWidget *parentWidget, const char *widgetName,
m_actionsSearched(false), m_searchStarted(false)
{
// connect the started signal to tell the job the mimetypes we like
connect(this, TQT_SIGNAL(started(TDEIO::Job *)), this, TQT_SLOT(setMimeTypes(TDEIO::Job *)));
connect(this, TQ_SIGNAL(started(TDEIO::Job *)), this, TQ_SLOT(setMimeTypes(TDEIO::Job *)));
// connect the completed signal so we can put the window caption when loading remote files
connect(this, TQT_SIGNAL(completed()), this, TQT_SLOT(emitWindowCaption()));
connect(this, TQT_SIGNAL(canceled(const TQString &)), this, TQT_SLOT(emitWindowCaption()));
connect(this, TQ_SIGNAL(completed()), this, TQ_SLOT(emitWindowCaption()));
connect(this, TQ_SIGNAL(canceled(const TQString &)), this, TQ_SLOT(emitWindowCaption()));
// load catalog for translation
TDEGlobal::locale()->insertCatalogue("kpdf");
@ -144,17 +144,17 @@ Part::Part(TQWidget *parentWidget, const char *widgetName,
// build the document
m_document = new KPDFDocument(widget());
connect( m_document, TQT_SIGNAL( linkFind() ), this, TQT_SLOT( slotFind() ) );
connect( m_document, TQT_SIGNAL( linkGoToPage() ), this, TQT_SLOT( slotGoToPage() ) );
connect( m_document, TQT_SIGNAL( linkPresentation() ), this, TQT_SLOT( slotShowPresentation() ) );
connect( m_document, TQT_SIGNAL( linkEndPresentation() ), this, TQT_SLOT( slotHidePresentation() ) );
connect( m_document, TQT_SIGNAL( openURL(const KURL &) ), this, TQT_SLOT( openURLFromDocument(const KURL &) ) );
connect( m_document, TQT_SIGNAL( close() ), this, TQT_SLOT( close() ) );
connect( m_document, TQ_SIGNAL( linkFind() ), this, TQ_SLOT( slotFind() ) );
connect( m_document, TQ_SIGNAL( linkGoToPage() ), this, TQ_SLOT( slotGoToPage() ) );
connect( m_document, TQ_SIGNAL( linkPresentation() ), this, TQ_SLOT( slotShowPresentation() ) );
connect( m_document, TQ_SIGNAL( linkEndPresentation() ), this, TQ_SLOT( slotHidePresentation() ) );
connect( m_document, TQ_SIGNAL( openURL(const KURL &) ), this, TQ_SLOT( openURLFromDocument(const KURL &) ) );
connect( m_document, TQ_SIGNAL( close() ), this, TQ_SLOT( close() ) );
if (parent && parent->metaObject()->slotNames(true).contains("slotQuit()"))
connect( m_document, TQT_SIGNAL( quit() ), parent, TQT_SLOT( slotQuit() ) );
connect( m_document, TQ_SIGNAL( quit() ), parent, TQ_SLOT( slotQuit() ) );
else
connect( m_document, TQT_SIGNAL( quit() ), this, TQT_SLOT( cannotQuit() ) );
connect( m_document, TQ_SIGNAL( quit() ), this, TQ_SLOT( cannotQuit() ) );
// widgets: ^searchbar (toolbar containing label and SearchWidget)
// m_searchToolBar = new TDEToolBar( parentWidget, "searchBar" );
@ -169,7 +169,7 @@ Part::Part(TQWidget *parentWidget, const char *widgetName,
m_splitter->setOpaqueResize( true );
setWidget( m_splitter );
m_showLeftPanel = new TDEToggleAction( i18n( "Show &Navigation Panel"), "show_side_panel", 0, this, TQT_SLOT( slotShowLeftPanel() ), actionCollection(), "show_leftpanel" );
m_showLeftPanel = new TDEToggleAction( i18n( "Show &Navigation Panel"), "show_side_panel", 0, this, TQ_SLOT( slotShowLeftPanel() ), actionCollection(), "show_leftpanel" );
m_showLeftPanel->setCheckedState( i18n( "Hide &Navigation Panel") );
m_showLeftPanel->setShortcut( "CTRL+L" );
m_showLeftPanel->setChecked( KpdfSettings::showLeftPanel() );
@ -191,7 +191,7 @@ Part::Part(TQWidget *parentWidget, const char *widgetName,
TQVBoxLayout *tocWrapperLayout = new TQVBoxLayout(tocWrapper);
m_tocFrame = new TOC( tocWrapper, m_document );
tocWrapperLayout->add(m_tocFrame);
connect(m_tocFrame, TQT_SIGNAL(hasTOC(bool)), this, TQT_SLOT(enableTOC(bool)));
connect(m_tocFrame, TQ_SIGNAL(hasTOC(bool)), this, TQ_SLOT(enableTOC(bool)));
index = m_toolBox->addItem( tocWrapper, TQIconSet(SmallIcon("format-text-direction-ltr")), i18n("Contents") );
m_toolBox->setItemToolTip(index, i18n("Contents"));
enableTOC( false );
@ -201,8 +201,8 @@ Part::Part(TQWidget *parentWidget, const char *widgetName,
m_searchWidget = new SearchWidget( thumbsBox, m_document );
m_thumbnailList = new ThumbnailList( thumbsBox, m_document );
// ThumbnailController * m_tc = new ThumbnailController( thumbsBox, m_thumbnailList );
connect( m_thumbnailList, TQT_SIGNAL( urlDropped( const KURL& ) ), TQT_SLOT( openURLFromDocument( const KURL & )) );
connect( m_thumbnailList, TQT_SIGNAL( rightClick(const KPDFPage *, const TQPoint &) ), this, TQT_SLOT( slotShowMenu(const KPDFPage *, const TQPoint &) ) );
connect( m_thumbnailList, TQ_SIGNAL( urlDropped( const KURL& ) ), TQ_SLOT( openURLFromDocument( const KURL & )) );
connect( m_thumbnailList, TQ_SIGNAL( rightClick(const KPDFPage *, const TQPoint &) ), this, TQ_SLOT( slotShowMenu(const KPDFPage *, const TQPoint &) ) );
// shrink the bottom controller toolbar (too hackish..)
thumbsBox->setStretchFactor( m_searchWidget, 100 );
thumbsBox->setStretchFactor( m_thumbnailList, 100 );
@ -234,8 +234,8 @@ Part::Part(TQWidget *parentWidget, const char *widgetName,
m_pageView = new PageView( m_splitter, m_document );
m_pageView->setFocus(); //usability setting
m_splitter->setFocusProxy(m_pageView);
connect( m_pageView, TQT_SIGNAL( urlDropped( const KURL& ) ), TQT_SLOT( openURLFromDocument( const KURL & )));
connect( m_pageView, TQT_SIGNAL( rightClick(const KPDFPage *, const TQPoint &) ), this, TQT_SLOT( slotShowMenu(const KPDFPage *, const TQPoint &) ) );
connect( m_pageView, TQ_SIGNAL( urlDropped( const KURL& ) ), TQ_SLOT( openURLFromDocument( const KURL & )));
connect( m_pageView, TQ_SIGNAL( rightClick(const KPDFPage *, const TQPoint &) ), this, TQ_SLOT( slotShowMenu(const KPDFPage *, const TQPoint &) ) );
// add document observers
m_document->addObserver( this );
@ -248,53 +248,53 @@ Part::Part(TQWidget *parentWidget, const char *widgetName,
TDEActionCollection * ac = actionCollection();
// Page Traversal actions
m_gotoPage = KStdAction::gotoPage( this, TQT_SLOT( slotGoToPage() ), ac, "goto_page" );
m_gotoPage = KStdAction::gotoPage( this, TQ_SLOT( slotGoToPage() ), ac, "goto_page" );
m_gotoPage->setShortcut( "CTRL+G" );
// dirty way to activate gotopage when pressing miniBar's button
connect( m_miniBar, TQT_SIGNAL( gotoPage() ), m_gotoPage, TQT_SLOT( activate() ) );
connect( m_miniBar, TQ_SIGNAL( gotoPage() ), m_gotoPage, TQ_SLOT( activate() ) );
m_prevPage = KStdAction::prior(this, TQT_SLOT(slotPreviousPage()), ac, "previous_page");
m_prevPage = KStdAction::prior(this, TQ_SLOT(slotPreviousPage()), ac, "previous_page");
m_prevPage->setWhatsThis( i18n( "Moves to the previous page of the document" ) );
m_prevPage->setShortcut( 0 );
// dirty way to activate prev page when pressing miniBar's button
connect( m_miniBar, TQT_SIGNAL( prevPage() ), m_prevPage, TQT_SLOT( activate() ) );
connect( m_miniBar, TQ_SIGNAL( prevPage() ), m_prevPage, TQ_SLOT( activate() ) );
m_nextPage = KStdAction::next(this, TQT_SLOT(slotNextPage()), ac, "next_page" );
m_nextPage = KStdAction::next(this, TQ_SLOT(slotNextPage()), ac, "next_page" );
m_nextPage->setWhatsThis( i18n( "Moves to the next page of the document" ) );
m_nextPage->setShortcut( 0 );
// dirty way to activate next page when pressing miniBar's button
connect( m_miniBar, TQT_SIGNAL( nextPage() ), m_nextPage, TQT_SLOT( activate() ) );
connect( m_miniBar, TQ_SIGNAL( nextPage() ), m_nextPage, TQ_SLOT( activate() ) );
m_firstPage = KStdAction::firstPage( this, TQT_SLOT( slotGotoFirst() ), ac, "first_page" );
m_firstPage = KStdAction::firstPage( this, TQ_SLOT( slotGotoFirst() ), ac, "first_page" );
m_firstPage->setWhatsThis( i18n( "Moves to the first page of the document" ) );
m_lastPage = KStdAction::lastPage( this, TQT_SLOT( slotGotoLast() ), ac, "last_page" );
m_lastPage = KStdAction::lastPage( this, TQ_SLOT( slotGotoLast() ), ac, "last_page" );
m_lastPage->setWhatsThis( i18n( "Moves to the last page of the document" ) );
m_historyBack = KStdAction::back( this, TQT_SLOT( slotHistoryBack() ), ac, "history_back" );
m_historyBack = KStdAction::back( this, TQ_SLOT( slotHistoryBack() ), ac, "history_back" );
m_historyBack->setWhatsThis( i18n( "Go to the place you were before" ) );
m_historyNext = KStdAction::forward( this, TQT_SLOT( slotHistoryNext() ), ac, "history_forward" );
m_historyNext = KStdAction::forward( this, TQ_SLOT( slotHistoryNext() ), ac, "history_forward" );
m_historyNext->setWhatsThis( i18n( "Go to the place you were after" ) );
// Find and other actions
m_find = KStdAction::find( this, TQT_SLOT( slotFind() ), ac, "find" );
m_find = KStdAction::find( this, TQ_SLOT( slotFind() ), ac, "find" );
m_find->setEnabled( false );
m_findNext = KStdAction::findNext( this, TQT_SLOT( slotFindNext() ), ac, "find_next" );
m_findNext = KStdAction::findNext( this, TQ_SLOT( slotFindNext() ), ac, "find_next" );
m_findNext->setEnabled( false );
m_saveAs = KStdAction::saveAs( this, TQT_SLOT( slotSaveFileAs() ), ac, "save" );
m_saveAs = KStdAction::saveAs( this, TQ_SLOT( slotSaveFileAs() ), ac, "save" );
m_saveAs->setEnabled( false );
TDEAction * prefs = KStdAction::preferences( this, TQT_SLOT( slotPreferences() ), ac, "preferences" );
TDEAction * prefs = KStdAction::preferences( this, TQ_SLOT( slotPreferences() ), ac, "preferences" );
prefs->setText( i18n( "Configure KPDF..." ) );
m_printPreview = KStdAction::printPreview( this, TQT_SLOT( slotPrintPreview() ), ac );
m_printPreview = KStdAction::printPreview( this, TQ_SLOT( slotPrintPreview() ), ac );
m_printPreview->setEnabled( false );
m_showProperties = new TDEAction(i18n("&Properties"), "application-vnd.tde.info", 0, this, TQT_SLOT(slotShowProperties()), ac, "properties");
m_showProperties = new TDEAction(i18n("&Properties"), "application-vnd.tde.info", 0, this, TQ_SLOT(slotShowProperties()), ac, "properties");
m_showProperties->setEnabled( false );
m_showPresentation = new TDEAction( i18n("P&resentation"), "application-x-kpresenter", "Ctrl+Shift+P", this, TQT_SLOT(slotShowPresentation()), ac, "presentation");
m_showPresentation = new TDEAction( i18n("P&resentation"), "application-x-kpresenter", "Ctrl+Shift+P", this, TQ_SLOT(slotShowPresentation()), ac, "presentation");
m_showPresentation->setEnabled( false );
// attach the actions of the children widgets too
@ -313,11 +313,11 @@ Part::Part(TQWidget *parentWidget, const char *widgetName,
// by connecting to TQt4::TQSplitter's sliderMoved())
m_pageView->installEventFilter( this );
m_watcher = new KDirWatch( this );
connect( m_watcher, TQT_SIGNAL( dirty( const TQString& ) ), this, TQT_SLOT( slotFileDirty( const TQString& ) ) );
connect( m_watcher, TQ_SIGNAL( dirty( const TQString& ) ), this, TQ_SLOT( slotFileDirty( const TQString& ) ) );
m_dirtyHandler = new TQTimer( this );
connect( m_dirtyHandler, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotDoFileDirty() ) );
connect( m_dirtyHandler, TQ_SIGNAL( timeout() ),this, TQ_SLOT( slotDoFileDirty() ) );
m_saveSplitterSizeTimer = new TQTimer( this );
connect( m_saveSplitterSizeTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( saveSplitterSize() ) );
connect( m_saveSplitterSizeTimer, TQ_SIGNAL( timeout() ),this, TQ_SLOT( saveSplitterSize() ) );
slotNewConfig();
@ -432,7 +432,7 @@ bool Part::openFile()
*p << app;
*p << m_file << m_temporaryLocalFile;
m_pageView->showText(i18n("Converting from ps to pdf..."), 0);
connect(p, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(psTransformEnded()));
connect(p, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(psTransformEnded()));
p -> start();
return true;
}
@ -527,7 +527,7 @@ void Part::setMimeTypes(TDEIO::Job *job)
if (job)
{
job->addMetaData("accept", "application/pdf, */*;q=0.5");
connect(job, TQT_SIGNAL(mimetype(TDEIO::Job*,const TQString&)), this, TQT_SLOT(readMimeType(TDEIO::Job*,const TQString&)));
connect(job, TQ_SIGNAL(mimetype(TDEIO::Job*,const TQString&)), this, TQ_SLOT(readMimeType(TDEIO::Job*,const TQString&)));
}
}
@ -830,7 +830,7 @@ void Part::slotPreferences()
// we didn't find an instance of this dialog, so lets create it
PreferencesDialog * dialog = new PreferencesDialog( m_pageView, KpdfSettings::self() );
// keep us informed when the user changes settings
connect( dialog, TQT_SIGNAL( settingsChanged() ), this, TQT_SLOT( slotNewConfig() ) );
connect( dialog, TQ_SIGNAL( settingsChanged() ), this, TQ_SLOT( slotNewConfig() ) );
dialog->show();
}

@ -87,9 +87,9 @@ void Shell::init()
m_part = 0;
return;
}
connect( this, TQT_SIGNAL( restoreDocument(TDEConfig*) ),m_part, TQT_SLOT( restoreDocument(TDEConfig*)));
connect( this, TQT_SIGNAL( saveDocumentRestoreInfo(TDEConfig*) ), m_part, TQT_SLOT( saveDocumentRestoreInfo(TDEConfig*)));
connect( m_part, TQT_SIGNAL( enablePrintAction(bool) ), m_printAction, TQT_SLOT( setEnabled(bool)));
connect( this, TQ_SIGNAL( restoreDocument(TDEConfig*) ),m_part, TQ_SLOT( restoreDocument(TDEConfig*)));
connect( this, TQ_SIGNAL( saveDocumentRestoreInfo(TDEConfig*) ), m_part, TQ_SLOT( saveDocumentRestoreInfo(TDEConfig*)));
connect( m_part, TQ_SIGNAL( enablePrintAction(bool) ), m_printAction, TQ_SLOT( setEnabled(bool)));
readSettings();
if (!TDEGlobal::config()->hasGroup("MainWindow"))
@ -99,7 +99,7 @@ void Shell::init()
}
setAutoSaveSettings();
if (m_openUrl.isValid()) TQTimer::singleShot(0, this, TQT_SLOT(delayedOpen()));
if (m_openUrl.isValid()) TQTimer::singleShot(0, this, TQ_SLOT(delayedOpen()));
}
void Shell::delayedOpen()
@ -146,19 +146,19 @@ void Shell::writeSettings()
void Shell::setupActions()
{
TDEAction * openAction = KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
m_recent = KStdAction::openRecent( this, TQT_SLOT( openURL( const KURL& ) ), actionCollection() );
connect( m_recent, TQT_SIGNAL( activated() ), openAction, TQT_SLOT( activate() ) );
TDEAction * openAction = KStdAction::open(this, TQ_SLOT(fileOpen()), actionCollection());
m_recent = KStdAction::openRecent( this, TQ_SLOT( openURL( const KURL& ) ), actionCollection() );
connect( m_recent, TQ_SIGNAL( activated() ), openAction, TQ_SLOT( activate() ) );
m_recent->setWhatsThis( i18n( "<b>Click</b> to open a file or <b>Click and hold</b> to select a recent file" ) );
m_printAction = KStdAction::print( m_part, TQT_SLOT( slotPrint() ), actionCollection() );
m_printAction = KStdAction::print( m_part, TQ_SLOT( slotPrint() ), actionCollection() );
m_printAction->setEnabled( false );
KStdAction::quit(this, TQT_SLOT(slotQuit()), actionCollection());
KStdAction::quit(this, TQ_SLOT(slotQuit()), actionCollection());
setStandardToolBarMenuEnabled(true);
m_showMenuBarAction = KStdAction::showMenubar( this, TQT_SLOT( slotShowMenubar() ), actionCollection());
KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
m_fullScreenAction = KStdAction::fullScreen( this, TQT_SLOT( slotUpdateFullScreen() ), actionCollection(), this );
m_showMenuBarAction = KStdAction::showMenubar( this, TQ_SLOT( slotShowMenubar() ), actionCollection());
KStdAction::configureToolbars(this, TQ_SLOT(optionsConfigureToolbars()), actionCollection());
m_fullScreenAction = KStdAction::fullScreen( this, TQ_SLOT( slotUpdateFullScreen() ), actionCollection(), this );
}
void Shell::saveProperties(TDEConfig* config)
@ -197,7 +197,7 @@ Shell::fileOpen()
Shell::optionsConfigureToolbars()
{
KEditToolbar dlg(factory());
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(applyNewToolbarConfig()));
connect(&dlg, TQ_SIGNAL(newToolbarConfig()), this, TQ_SLOT(applyNewToolbarConfig()));
dlg.exec();
}

@ -121,10 +121,10 @@ MiniBar::MiniBar( TQWidget * parent, KPDFDocument * document )
setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
// connect signals from child widgets to internal handlers / signals bouncers
connect( m_pagesEdit, TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( slotChangePage() ) );
connect( m_pagesButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( gotoPage() ) );
connect( m_prevButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( prevPage() ) );
connect( m_nextButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( nextPage() ) );
connect( m_pagesEdit, TQ_SIGNAL( returnPressed() ), this, TQ_SLOT( slotChangePage() ) );
connect( m_pagesButton, TQ_SIGNAL( clicked() ), this, TQ_SIGNAL( gotoPage() ) );
connect( m_prevButton, TQ_SIGNAL( clicked() ), this, TQ_SIGNAL( prevPage() ) );
connect( m_nextButton, TQ_SIGNAL( clicked() ), this, TQ_SIGNAL( nextPage() ) );
// widget starts hidden (will be shown after opening a document)
parent->hide();

@ -216,8 +216,8 @@ PageView::PageView( TQWidget *parent, KPDFDocument *document )
viewport()->setMouseTracking( true );
// conntect the padding of the viewport to pixmaps requests
connect( this, TQT_SIGNAL(contentsMoving(int, int)), this, TQT_SLOT(slotRequestVisiblePixmaps(int, int)) );
connect( &d->dragScrollTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotDragScroll()) );
connect( this, TQ_SIGNAL(contentsMoving(int, int)), this, TQ_SLOT(slotRequestVisiblePixmaps(int, int)) );
connect( &d->dragScrollTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotDragScroll()) );
// set a corner button to resize the view to the page size
// TQPushButton * resizeButton = new TQPushButton( viewport() );
@ -228,7 +228,7 @@ PageView::PageView( TQWidget *parent, KPDFDocument *document )
setInputMethodEnabled( true );
// schedule the welcome message
TQTimer::singleShot( 0, this, TQT_SLOT( slotShowWelcome() ) );
TQTimer::singleShot( 0, this, TQ_SLOT( slotShowWelcome() ) );
}
PageView::~PageView()
@ -246,68 +246,68 @@ PageView::~PageView()
void PageView::setupActions( TDEActionCollection * ac )
{
// Zoom actions ( higher scales takes lots of memory! )
d->aZoom = new TDESelectAction( i18n( "Zoom" ), "viewmag", 0, this, TQT_SLOT( slotZoom() ), ac, "zoom_to" );
d->aZoom = new TDESelectAction( i18n( "Zoom" ), "viewmag", 0, this, TQ_SLOT( slotZoom() ), ac, "zoom_to" );
d->aZoom->setEditable( true );
#if KDE_IS_VERSION(3,4,89)
d->aZoom->setMaxComboViewCount( 13 );
#endif
updateZoomText();
KStdAction::zoomIn( this, TQT_SLOT( slotZoomIn() ), ac, "zoom_in" );
KStdAction::zoomIn( this, TQ_SLOT( slotZoomIn() ), ac, "zoom_in" );
KStdAction::zoomOut( this, TQT_SLOT( slotZoomOut() ), ac, "zoom_out" );
KStdAction::zoomOut( this, TQ_SLOT( slotZoomOut() ), ac, "zoom_out" );
d->aZoomFitWidth = new TDEToggleAction( i18n("Fit to Page &Width"), "view_fit_width", 0, ac, "zoom_fit_width" );
connect( d->aZoomFitWidth, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( slotFitToWidthToggled( bool ) ) );
connect( d->aZoomFitWidth, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( slotFitToWidthToggled( bool ) ) );
d->aZoomFitPage = new TDEToggleAction( i18n("Fit to &Page"), "view_fit_window", 0, ac, "zoom_fit_page" );
connect( d->aZoomFitPage, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( slotFitToPageToggled( bool ) ) );
connect( d->aZoomFitPage, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( slotFitToPageToggled( bool ) ) );
d->aZoomFitText = new TDEToggleAction( i18n("Fit to &Text"), "zoom-fit-best", 0, ac, "zoom_fit_text" );
connect( d->aZoomFitText, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( slotFitToTextToggled( bool ) ) );
connect( d->aZoomFitText, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( slotFitToTextToggled( bool ) ) );
// rotate actions
TDEAction *action;
action = new TDEAction( i18n("Rotate Right"), "object-rotate-right", TDEShortcut( "Ctrl+Shift++" ),
this, TQT_SLOT( slotRotateRight() ), ac, "rotate_right" );
this, TQ_SLOT( slotRotateRight() ), ac, "rotate_right" );
action = new TDEAction( i18n("Rotate Left"), "object-rotate-left", TDEShortcut( "Ctrl+Shift+-" ),
this, TQT_SLOT( slotRotateLeft() ), ac, "rotate_left" );
this, TQ_SLOT( slotRotateLeft() ), ac, "rotate_left" );
// View-Layout actions
d->aViewTwoPages = new TDEToggleAction( i18n("&Two Pages"), "view_left_right", 0, ac, "view_twopages" );
connect( d->aViewTwoPages, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( slotTwoPagesToggled( bool ) ) );
connect( d->aViewTwoPages, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( slotTwoPagesToggled( bool ) ) );
d->aViewTwoPages->setChecked( KpdfSettings::viewColumns() > 1 );
d->aViewContinuous = new TDEToggleAction( i18n("&Continuous"), "view_text", 0, ac, "view_continuous" );
connect( d->aViewContinuous, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( slotContinuousToggled( bool ) ) );
connect( d->aViewContinuous, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( slotContinuousToggled( bool ) ) );
d->aViewContinuous->setChecked( KpdfSettings::viewContinuous() );
d->aViewCoverPage = new TDEToggleAction( i18n("Co&ver Page"), "contents2", 0, ac, "view_coverpage" );
connect( d->aViewCoverPage, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( slotCoverPageToggled( bool ) ) );
connect( d->aViewCoverPage, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( slotCoverPageToggled( bool ) ) );
d->aViewCoverPage->setChecked( KpdfSettings::viewCoverPage() );
d->aViewCoverPage->setEnabled( KpdfSettings::viewColumns() > 1 );
// Mouse-Mode actions
d->aMouseNormal = new TDERadioAction( i18n("&Browse Tool"), "input-mouse", 0, this, TQT_SLOT( slotSetMouseNormal() ), ac, "mouse_drag" );
d->aMouseNormal = new TDERadioAction( i18n("&Browse Tool"), "input-mouse", 0, this, TQ_SLOT( slotSetMouseNormal() ), ac, "mouse_drag" );
d->aMouseNormal->setExclusiveGroup( "MouseType" );
d->aMouseNormal->setChecked( true );
TDEToggleAction * mz = new TDERadioAction( i18n("&Zoom Tool"), "viewmag", 0, this, TQT_SLOT( slotSetMouseZoom() ), ac, "mouse_zoom" );
TDEToggleAction * mz = new TDERadioAction( i18n("&Zoom Tool"), "viewmag", 0, this, TQ_SLOT( slotSetMouseZoom() ), ac, "mouse_zoom" );
mz->setExclusiveGroup( "MouseType" );
d->aMouseSelect = new TDERadioAction( i18n("&Select Tool"), "frame_edit", 0, this, TQT_SLOT( slotSetMouseSelect() ), ac, "mouse_select" );
d->aMouseSelect = new TDERadioAction( i18n("&Select Tool"), "frame_edit", 0, this, TQ_SLOT( slotSetMouseSelect() ), ac, "mouse_select" );
d->aMouseSelect->setExclusiveGroup( "MouseType" );
/* d->aMouseEdit = new TDERadioAction( i18n("Draw"), "edit", 0, this, TQT_SLOT( slotSetMouseDraw() ), ac, "mouse_draw" );
/* d->aMouseEdit = new TDERadioAction( i18n("Draw"), "edit", 0, this, TQ_SLOT( slotSetMouseDraw() ), ac, "mouse_draw" );
d->aMouseEdit->setExclusiveGroup("MouseType");
d->aMouseEdit->setEnabled( false ); // implement feature before removing this line*/
// Other actions
TDEAction * su = new TDEAction( i18n("Scroll Up"), 0, this, TQT_SLOT( slotScrollUp() ), ac, "view_scroll_up" );
TDEAction * su = new TDEAction( i18n("Scroll Up"), 0, this, TQ_SLOT( slotScrollUp() ), ac, "view_scroll_up" );
su->setShortcut( "Shift+Up" );
TDEAction * sd = new TDEAction( i18n("Scroll Down"), 0, this, TQT_SLOT( slotScrollDown() ), ac, "view_scroll_down" );
TDEAction * sd = new TDEAction( i18n("Scroll Down"), 0, this, TQ_SLOT( slotScrollDown() ), ac, "view_scroll_down" );
sd->setShortcut( "Shift+Down" );
}
@ -354,7 +354,7 @@ void PageView::notifySetup( const TQValueVector< KPDFPage * > & pageSet, bool do
// Need slotRelayoutPages() here instead of d->dirtyLayout = true
// because opening a pdf from another pdf will not trigger a viewportchange
// so pages are never relayouted
TQTimer::singleShot(0, this, TQT_SLOT(slotRelayoutPages()));
TQTimer::singleShot(0, this, TQ_SLOT(slotRelayoutPages()));
else
{
// update the mouse cursor when closing because we may have close through a link and
@ -437,8 +437,8 @@ void PageView::notifyViewportChanged( bool smoothMove )
if ( !d->viewportMoveTimer )
{
d->viewportMoveTimer = new TQTimer( this );
connect( d->viewportMoveTimer, TQT_SIGNAL( timeout() ),
this, TQT_SLOT( slotMoveViewport() ) );
connect( d->viewportMoveTimer, TQ_SIGNAL( timeout() ),
this, TQ_SLOT( slotMoveViewport() ) );
}
d->viewportMoveTimer->start( 25 );
verticalScrollBar()->setEnabled( false );
@ -643,7 +643,7 @@ void PageView::viewportResizeEvent( TQResizeEvent * )
if ( !d->delayResizeTimer )
{
d->delayResizeTimer = new TQTimer( this );
connect( d->delayResizeTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotRelayoutPages() ) );
connect( d->delayResizeTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotRelayoutPages() ) );
}
d->delayResizeTimer->start( 333, true );
}
@ -725,7 +725,7 @@ void PageView::keyPressEvent( TQKeyEvent * e )
{
// create the timer on demand
d->findTimeoutTimer = new TQTimer( this );
connect( d->findTimeoutTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( findAheadStop() ) );
connect( d->findTimeoutTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( findAheadStop() ) );
}
d->findTimeoutTimer->start( 3000, true );
// it is needed to grab the keyboard becase people may have Space assigned to a
@ -2004,7 +2004,7 @@ void PageView::slotAutoScoll()
if ( !d->autoScrollTimer )
{
d->autoScrollTimer = new TQTimer( this );
connect( d->autoScrollTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotAutoScoll() ) );
connect( d->autoScrollTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotAutoScoll() ) );
}
// if scrollIncrement is zero, stop the timer

@ -131,7 +131,7 @@ void PageViewMessage::display( const TQString & message, Icon icon, int duration
if ( !m_timer )
{
m_timer = new TQTimer( this );
connect( m_timer, TQT_SIGNAL( timeout() ), TQT_SLOT( hide() ) );
connect( m_timer, TQ_SIGNAL( timeout() ), TQ_SLOT( hide() ) );
}
m_timer->start( durationMs, true );
} else if ( m_timer )

@ -69,11 +69,11 @@ PresentationWidget::PresentationWidget( TQWidget * parent, KPDFDocument * doc )
// misc stuff
setMouseTracking( true );
m_transitionTimer = new TQTimer( this );
connect( m_transitionTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotTransitionStep() ) );
connect( m_transitionTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotTransitionStep() ) );
m_overlayHideTimer = new TQTimer( this );
connect( m_overlayHideTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotHideOverlay() ) );
connect( m_overlayHideTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotHideOverlay() ) );
m_nextPageTimer = new TQTimer( this );
connect( m_nextPageTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotNextPage() ) );
connect( m_nextPageTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotNextPage() ) );
// handle cursor appearance as specified in configuration
if ( KpdfSettings::slidesCursor() == KpdfSettings::EnumSlidesCursor::HiddenDelay )
@ -100,11 +100,11 @@ PresentationWidget::~PresentationWidget()
void PresentationWidget::setupActions( TDEActionCollection * ac )
{
m_accel->insert( "previous_page", ac->action( "previous_page" )->shortcut(), this, TQT_SLOT( slotPrevPage() ), false, true );
m_accel->insert( "next_page", ac->action( "next_page" )->shortcut(), this, TQT_SLOT( slotNextPage() ), false, true );
m_accel->insert( "first_page", ac->action( "first_page" )->shortcut(), this, TQT_SLOT( slotFirstPage() ), false, true );
m_accel->insert( "last_page", ac->action( "last_page" )->shortcut(), this, TQT_SLOT( slotLastPage() ), false, true );
m_accel->insert( "presentation", ac->action( "presentation" )->shortcut(), this, TQT_SLOT( close() ), false, true );
m_accel->insert( "previous_page", ac->action( "previous_page" )->shortcut(), this, TQ_SLOT( slotPrevPage() ), false, true );
m_accel->insert( "next_page", ac->action( "next_page" )->shortcut(), this, TQ_SLOT( slotNextPage() ), false, true );
m_accel->insert( "first_page", ac->action( "first_page" )->shortcut(), this, TQ_SLOT( slotFirstPage() ), false, true );
m_accel->insert( "last_page", ac->action( "last_page" )->shortcut(), this, TQ_SLOT( slotLastPage() ), false, true );
m_accel->insert( "presentation", ac->action( "presentation" )->shortcut(), this, TQ_SLOT( close() ), false, true );
}
void PresentationWidget::notifySetup( const TQValueVector< KPDFPage * > & pageSet, bool /*documentChanged*/ )
@ -307,9 +307,9 @@ void PresentationWidget::paintEvent( TQPaintEvent * pe )
m_topBar = new TDEToolBar( this, "presentationBar" );
m_topBar->setIconSize( 32 );
m_topBar->setMovingEnabled( false );
m_topBar->insertButton( TQApplication::reverseLayout() ? "1rightarrow" : "1leftarrow", 2, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotPrevPage() ) );
m_topBar->insertButton( TQApplication::reverseLayout() ? "1leftarrow" : "1rightarrow", 3, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotNextPage() ) );
m_topBar->insertButton( "system-log-out", 1, TQT_SIGNAL( clicked() ), this, TQT_SLOT( close() ) );
m_topBar->insertButton( TQApplication::reverseLayout() ? "1rightarrow" : "1leftarrow", 2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotPrevPage() ) );
m_topBar->insertButton( TQApplication::reverseLayout() ? "1leftarrow" : "1rightarrow", 3, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotNextPage() ) );
m_topBar->insertButton( "system-log-out", 1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( close() ) );
m_topBar->setGeometry( 0, 0, m_width, 32 + 10 );
m_topBar->alignItemRight( 1 );
m_topBar->hide();

@ -40,18 +40,18 @@ SearchWidget::SearchWidget( TQWidget * parent, KPDFDocument * document )
// a timer to ensure that we don't flood the document with requests to search
m_inputDelayTimer = new TQTimer(this);
connect( m_inputDelayTimer, TQT_SIGNAL( timeout() ),
this, TQT_SLOT( startSearch() ) );
connect( m_inputDelayTimer, TQ_SIGNAL( timeout() ),
this, TQ_SLOT( startSearch() ) );
// 1. text line
insertLined( TQString(), LEDIT_ID, TQT_SIGNAL( textChanged(const TQString &) ),
this, TQT_SLOT( slotTextChanged(const TQString &) ), true,
insertLined( TQString(), LEDIT_ID, TQ_SIGNAL( textChanged(const TQString &) ),
this, TQ_SLOT( slotTextChanged(const TQString &) ), true,
i18n( "Enter at least 3 letters to filter pages" ), 0/*size*/, 1 );
// 2. clear button (uses a lineEdit slot, so it must be created after)
insertButton( TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase",
CLEAR_ID, TQT_SIGNAL( clicked() ),
getLined( LEDIT_ID ), TQT_SLOT( clear() ), true,
CLEAR_ID, TQ_SIGNAL( clicked() ),
getLined( LEDIT_ID ), TQ_SLOT( clear() ), true,
i18n( "Clear filter" ), 0/*index*/ );
// 3.1. create the popup menu for changing filtering features
@ -62,7 +62,7 @@ SearchWidget::SearchWidget( TQWidget * parent, KPDFDocument * document )
m_menu->insertItem( i18n("Match All Words"), 4 );
m_menu->insertItem( i18n("Match Any Word"), 5 );
m_menu->setItemChecked( 3, true );
connect( m_menu, TQT_SIGNAL( activated(int) ), TQT_SLOT( slotMenuChaged(int) ) );
connect( m_menu, TQ_SIGNAL( activated(int) ), TQ_SLOT( slotMenuChaged(int) ) );
// 3.2. create the toolbar button that spawns the popup menu
insertButton( "kpdf", FIND_ID, m_menu, true, i18n( "Filter Options" ), 2/*index*/ );

@ -85,7 +85,7 @@ ThumbnailList::ThumbnailList( TQWidget *parent, KPDFDocument *document )
viewport()->setPaletteBackgroundColor( palette().active().base() );
setFrameStyle( StyledPanel | Raised );
connect( this, TQT_SIGNAL(contentsMoving(int, int)), this, TQT_SLOT(slotRequestVisiblePixmaps(int, int)) );
connect( this, TQ_SIGNAL(contentsMoving(int, int)), this, TQ_SLOT(slotRequestVisiblePixmaps(int, int)) );
}
ThumbnailList::~ThumbnailList()
@ -444,7 +444,7 @@ void ThumbnailList::delayedRequestVisiblePixmaps( int delayMs )
if ( !m_delayTimer )
{
m_delayTimer = new TQTimer( this );
connect( m_delayTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotDelayTimeout() ) );
connect( m_delayTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotDelayTimeout() ) );
}
m_delayTimer->start( delayMs, true );
}
@ -563,8 +563,8 @@ ThumbnailController::ThumbnailController( TQWidget * parent, ThumbnailList * lis
// insert a togglebutton [show only bookmarked pages]
//insertSeparator();
insertButton( "bookmark", FILTERB_ID, TQT_SIGNAL( toggled( bool ) ),
list, TQT_SLOT( slotFilterBookmarks( bool ) ),
insertButton( "bookmark", FILTERB_ID, TQ_SIGNAL( toggled( bool ) ),
list, TQ_SLOT( slotFilterBookmarks( bool ) ),
true, i18n( "Show bookmarked pages only" ) );
setToggle( FILTERB_ID );
setButton( FILTERB_ID, KpdfSettings::filterBookmarks() );

@ -67,8 +67,8 @@ TOC::TOC(TQWidget *parent, KPDFDocument *document) : TDEListView(parent), m_docu
// the next line causes bug:147233
// setResizeMode(AllColumns);
setAllColumnsShowFocus(true);
connect(this, TQT_SIGNAL(clicked(TQListViewItem *)), this, TQT_SLOT(slotExecuted(TQListViewItem *)));
connect(this, TQT_SIGNAL(returnPressed(TQListViewItem *)), this, TQT_SLOT(slotExecuted(TQListViewItem *)));
connect(this, TQ_SIGNAL(clicked(TQListViewItem *)), this, TQ_SLOT(slotExecuted(TQListViewItem *)));
connect(this, TQ_SIGNAL(returnPressed(TQListViewItem *)), this, TQ_SLOT(slotExecuted(TQListViewItem *)));
}
TOC::~TOC()

@ -213,7 +213,7 @@ things are set multiple times. But it works :-)
(font-lock-add-keywords 'c++-mode
'(("\\<TQ_OBJECT\\>" . 'qt-keywords-face)))
(font-lock-add-keywords 'c++-mode
'(("\\<SIGNAL\\|SLOT\\>" . 'qt-keywords-face)))
'(("\\<TQ_SIGNAL\\|TQ_SLOT\\>" . 'qt-keywords-face)))
(font-lock-add-keywords 'c++-mode
'(("\\<Q[A-Z][A-Za-z]*" . 'qt-keywords-face)))
)

@ -82,11 +82,11 @@ int PMComboAction::plug( TQWidget* w, int index )
toolBar->insertWidget( id, m_minWidth > 0 ? m_minWidth : 300,
comboBox, index );
connect( comboBox, TQT_SIGNAL( activated( int ) ), m_receiver, m_member );
connect( comboBox, TQ_SIGNAL( activated( int ) ), m_receiver, m_member );
addContainer( toolBar, id );
connect( toolBar, TQT_SIGNAL( destroyed( ) ), this, TQT_SLOT( slotDestroyed( ) ) );
connect( toolBar, TQ_SIGNAL( destroyed( ) ), this, TQ_SLOT( slotDestroyed( ) ) );
//toolBar->setItemAutoSized( id, true );
@ -164,7 +164,7 @@ int PMLabelAction::plug( TQWidget *widget, int index )
addContainer( tb, id );
connect( tb, TQT_SIGNAL( destroyed( ) ), this, TQT_SLOT( slotDestroyed( ) ) );
connect( tb, TQ_SIGNAL( destroyed( ) ), this, TQ_SLOT( slotDestroyed( ) ) );
return containerCount( ) - 1;
}
@ -216,11 +216,11 @@ int PMSpinBoxAction::plug( TQWidget* w, int index )
TQSpinBox* spinBox = new TQSpinBox( -1000, 1000, 1, w );
toolBar->insertWidget( id, 70, spinBox, index );
connect( spinBox, TQT_SIGNAL( valueChanged( int ) ), m_receiver, m_member );
connect( spinBox, TQ_SIGNAL( valueChanged( int ) ), m_receiver, m_member );
addContainer( toolBar, id );
connect( toolBar, TQT_SIGNAL( destroyed( ) ), this, TQT_SLOT( slotDestroyed( ) ) );
connect( toolBar, TQ_SIGNAL( destroyed( ) ), this, TQ_SLOT( slotDestroyed( ) ) );
//toolBar->setItemAutoSized( id, false );
m_spinBox = spinBox;

@ -78,15 +78,15 @@ void PMBicubicPatchEdit::createTopWidgets( )
m_pUVVectors->setSize( 4 );
topLayout( )->addWidget( m_pUVVectors );
connect( m_pType, TQT_SIGNAL( highlighted( int ) ), TQT_SLOT( slotTypeSelected( int ) ) );
connect( m_pUSteps, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pVSteps, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pFlatness, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pPoints, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pPoints, TQT_SIGNAL( selectionChanged( ) ),
TQT_SLOT( slotSelectionChanged( ) ) );
connect( m_pUVEnabled, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotUVEnabledClicked( ) ) );
connect( m_pUVVectors, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pType, TQ_SIGNAL( highlighted( int ) ), TQ_SLOT( slotTypeSelected( int ) ) );
connect( m_pUSteps, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pVSteps, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pFlatness, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pPoints, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pPoints, TQ_SIGNAL( selectionChanged( ) ),
TQ_SLOT( slotSelectionChanged( ) ) );
connect( m_pUVEnabled, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotUVEnabledClicked( ) ) );
connect( m_pUVVectors, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMBicubicPatchEdit::displayObject( PMObject* o )

@ -83,13 +83,13 @@ void PMBlendMapModifiersEdit::createTopWidgets( )
hl->addWidget( m_pWaveExponentEdit );
hl->addStretch( 1 );
connect( m_pEnableFrequencyEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotFrequencyClicked( ) ) );
connect( m_pFrequencyEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pEnablePhaseEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotPhaseClicked( ) ) );
connect( m_pPhaseEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pEnableWaveFormEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotWaveFormClicked( ) ) );
connect( m_pWaveExponentEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pWaveTypeCombo, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotTypeComboChanged( int ) ) );
connect( m_pEnableFrequencyEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotFrequencyClicked( ) ) );
connect( m_pFrequencyEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pEnablePhaseEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotPhaseClicked( ) ) );
connect( m_pPhaseEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pEnableWaveFormEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotWaveFormClicked( ) ) );
connect( m_pWaveExponentEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pWaveTypeCombo, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotTypeComboChanged( int ) ) );
}
void PMBlendMapModifiersEdit::displayObject( PMObject* o )

@ -58,10 +58,10 @@ void PMBlobCylinderEdit::createTopWidgets( )
gl->addWidget( m_pStrength, 1, 1 );
layout->addStretch( 1 );
connect( m_pEnd1, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pEnd2, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pRadius, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pStrength, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pEnd1, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pEnd2, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pRadius, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pStrength, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMBlobCylinderEdit::displayObject( PMObject* o )

@ -49,9 +49,9 @@ void PMBlobEdit::createTopWidgets( )
m_pHierarchy = new TQCheckBox( i18n( "Hierarchy" ), this );
topLayout( )->addWidget( m_pHierarchy );
connect( m_pThreshold, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pHierarchy, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pSturm, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pThreshold, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pHierarchy, TQ_SIGNAL( clicked( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pSturm, TQ_SIGNAL( clicked( ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMBlobEdit::displayObject( PMObject* o )

@ -52,9 +52,9 @@ void PMBlobSphereEdit::createTopWidgets( )
gl->addWidget( m_pStrength, 1, 1 );
layout->addStretch( 1 );
connect( m_pCentre, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pRadius, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pStrength, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pCentre, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pRadius, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pStrength, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMBlobSphereEdit::displayObject( PMObject* o )

@ -43,8 +43,8 @@ void PMBoxEdit::createTopWidgets( )
gl->addWidget( new TQLabel( i18n( "Corner 2:" ), this ), 1, 0 );
gl->addWidget( m_pCorner2, 1, 1 );
connect( m_pCorner1, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pCorner2, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pCorner1, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pCorner2, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMBoxEdit::displayObject( PMObject* o )

@ -110,14 +110,14 @@ void PMBumpMapEdit::createTopWidgets( )
hl->addWidget( m_pBumpSizeEdit );
hl->addStretch( 1 );
connect( m_pImageFileTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotImageFileTypeChanged( int ) ) );
connect( m_pMapTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotMapTypeChanged( int ) ) );
connect( m_pInterpolateTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotInterpolateTypeChanged( int ) ) );
connect( m_pImageFileNameBrowse, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotImageFileBrowseClicked( ) ) );
connect( m_pImageFileNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( slotImageFileNameChanged( const TQString& ) ) );
connect( m_pOnceEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pUseIndexEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pBumpSizeEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pImageFileTypeEdit, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotImageFileTypeChanged( int ) ) );
connect( m_pMapTypeEdit, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotMapTypeChanged( int ) ) );
connect( m_pInterpolateTypeEdit, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotInterpolateTypeChanged( int ) ) );
connect( m_pImageFileNameBrowse, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotImageFileBrowseClicked( ) ) );
connect( m_pImageFileNameEdit, TQ_SIGNAL( textChanged( const TQString& ) ), TQ_SLOT( slotImageFileNameChanged( const TQString& ) ) );
connect( m_pOnceEdit, TQ_SIGNAL( clicked( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pUseIndexEdit, TQ_SIGNAL( clicked( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pBumpSizeEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMBumpMapEdit::displayObject( PMObject* o )

@ -141,29 +141,29 @@ void PMCameraEdit::createTopWidgets( )
m_pExport = new TQCheckBox( i18n( "Export to renderer" ), this );
topLayout( )->addWidget( m_pExport );
connect( m_pLocation, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pDirection, TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotDirectionChanged( ) ) );
connect( m_pRight, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pRight, TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotRightChanged( ) ) );
connect( m_pUp, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pSky, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pLookAt, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pEnableAngle, TQT_SIGNAL( toggled( bool ) ),
TQT_SLOT( slotAngleToggled( bool ) ) );
connect( m_pAngle, TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotAngleChanged( ) ) );
connect( m_pCameraType, TQT_SIGNAL( activated( int ) ),
TQT_SLOT( slotCameraTypeActivated( int ) ) );
connect( m_pCylinderType, TQT_SIGNAL( activated( int ) ),
TQT_SLOT( slotCylinderTypeActivated( int ) ) );
connect( m_pFocalBlur, TQT_SIGNAL( toggled( bool ) ),
TQT_SLOT( slotFocalBlurToggled( bool ) ) );
connect( m_pAperture, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pBlurSamples, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pFocalPoint, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pVariance, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pConfidence, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pExport, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pLocation, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pDirection, TQ_SIGNAL( dataChanged( ) ), TQ_SLOT( slotDirectionChanged( ) ) );
connect( m_pRight, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pRight, TQ_SIGNAL( dataChanged( ) ), TQ_SLOT( slotRightChanged( ) ) );
connect( m_pUp, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pSky, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pLookAt, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pEnableAngle, TQ_SIGNAL( toggled( bool ) ),
TQ_SLOT( slotAngleToggled( bool ) ) );
connect( m_pAngle, TQ_SIGNAL( dataChanged( ) ), TQ_SLOT( slotAngleChanged( ) ) );
connect( m_pCameraType, TQ_SIGNAL( activated( int ) ),
TQ_SLOT( slotCameraTypeActivated( int ) ) );
connect( m_pCylinderType, TQ_SIGNAL( activated( int ) ),
TQ_SLOT( slotCylinderTypeActivated( int ) ) );
connect( m_pFocalBlur, TQ_SIGNAL( toggled( bool ) ),
TQ_SLOT( slotFocalBlurToggled( bool ) ) );
connect( m_pAperture, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pBlurSamples, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pFocalPoint, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pVariance, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pConfidence, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pExport, TQ_SIGNAL( clicked( ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMCameraEdit::displayObject( PMObject* o )
@ -385,9 +385,9 @@ void PMCameraEdit::slotAngleChanged( )
if( ( m_pCameraType->currentItem( ) == 0 ) && m_pEnableAngle->isChecked( ) )
{
// Only change direction's value in perspective and with an enabled angle
disconnect( m_pDirection, TQT_SIGNAL( dataChanged( ) ), 0, 0 );
disconnect( m_pDirection, TQ_SIGNAL( dataChanged( ) ), 0, 0 );
m_pDirection->setVector( 0.5 * m_pRight->vector( ) / tan( 2 * deg2Rad( m_pAngle->value( ) ) ) );
connect( m_pDirection, TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotDirectionChanged( ) ) );
connect( m_pDirection, TQ_SIGNAL( dataChanged( ) ), TQ_SLOT( slotDirectionChanged( ) ) );
}
*/
emit dataChanged( );

@ -63,16 +63,16 @@ PMColorEdit::PMColorEdit( bool filterAndTransmit, TQWidget* parent, const char*
l->addWidget( m_edits[4] );
}
connect( m_edits[0], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) );
connect( m_edits[1], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) );
connect( m_edits[2], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) );
connect( m_edits[0], TQ_SIGNAL( dataChanged( ) ), TQ_SLOT( slotEditChanged( ) ) );
connect( m_edits[1], TQ_SIGNAL( dataChanged( ) ), TQ_SLOT( slotEditChanged( ) ) );
connect( m_edits[2], TQ_SIGNAL( dataChanged( ) ), TQ_SLOT( slotEditChanged( ) ) );
if( filterAndTransmit )
{
connect( m_edits[3], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) );
connect( m_edits[4], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) );
connect( m_edits[3], TQ_SIGNAL( dataChanged( ) ), TQ_SLOT( slotEditChanged( ) ) );
connect( m_edits[4], TQ_SIGNAL( dataChanged( ) ), TQ_SLOT( slotEditChanged( ) ) );
}
connect( m_pButton, TQT_SIGNAL( changed( const TQColor& ) ),
TQT_SLOT( slotColorChanged( const TQColor& ) ) );
connect( m_pButton, TQ_SIGNAL( changed( const TQColor& ) ),
TQ_SLOT( slotColorChanged( const TQColor& ) ) );
}
void PMColorEdit::setColor( const PMColor& c )

@ -39,7 +39,7 @@ void PMCommentEdit::createTopWidgets( )
m_pEdit->setFont( TDEGlobalSettings::fixedFont( ) );
topLayout( )->addWidget( m_pEdit, 2 );
connect( m_pEdit, TQT_SIGNAL( textChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pEdit, TQ_SIGNAL( textChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMCommentEdit::displayObject( PMObject* o )

@ -61,11 +61,11 @@ void PMConeEdit::createTopWidgets( )
topLayout( )->addWidget( m_pOpen );
connect( m_pEnd1, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pEnd2, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pRadius1, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pRadius2, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pOpen, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pEnd1, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pEnd2, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pRadius1, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pRadius2, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pOpen, TQ_SIGNAL( clicked( ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMConeEdit::displayObject( PMObject* o )

@ -46,7 +46,7 @@ void PMCSGEdit::createTopWidgets( )
layout->addWidget( m_pTypeCombo );
layout->addStretch( 1 );
connect( m_pTypeCombo, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotTypeSelected( int ) ) );
connect( m_pTypeCombo, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotTypeSelected( int ) ) );
}
void PMCSGEdit::displayObject( PMObject* o )

@ -58,10 +58,10 @@ void PMCylinderEdit::createTopWidgets( )
layout = new TQHBoxLayout( topLayout( ) );
layout->addWidget( m_pOpen );
connect( m_pEnd1, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pEnd2, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pRadius, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pOpen, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pEnd1, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pEnd2, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pRadius, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pOpen, TQ_SIGNAL( clicked( ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMCylinderEdit::displayObject( PMObject* o )

@ -52,8 +52,8 @@ void PMDeclareEdit::createTopWidgets( )
layout->addWidget( label );
layout->addWidget( m_pNameEdit );
connect( m_pNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
TQT_SLOT( slotNameChanged( const TQString& ) ) );
connect( m_pNameEdit, TQ_SIGNAL( textChanged( const TQString& ) ),
TQ_SLOT( slotNameChanged( const TQString& ) ) );
}
void PMDeclareEdit::createBottomWidgets( )
@ -63,15 +63,15 @@ void PMDeclareEdit::createBottomWidgets( )
m_pLinkedObjects = new TQListBox( this );
m_pLinkedObjects->setMinimumHeight( 100 );
connect( m_pLinkedObjects, TQT_SIGNAL( highlighted( TQListBoxItem* ) ),
TQT_SLOT( slotItemSelected( TQListBoxItem* ) ) );
connect( m_pLinkedObjects, TQ_SIGNAL( highlighted( TQListBoxItem* ) ),
TQ_SLOT( slotItemSelected( TQListBoxItem* ) ) );
topLayout( )->addWidget( m_pLinkedObjects, 1 );
TQHBoxLayout* layout = new TQHBoxLayout( topLayout( ) );
m_pSelectButton = new TQPushButton( i18n( "Select..." ), this );
m_pSelectButton->setEnabled( false );
connect( m_pSelectButton, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotSelect( ) ) );
connect( m_pSelectButton, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotSelect( ) ) );
layout->addStretch( );
layout->addWidget( m_pSelectButton );

@ -48,8 +48,8 @@ void PMDetailObjectEdit::createTopWidgets( )
layout->addWidget( m_pLocalDetailLevel );
layout->addStretch( );
connect( m_pGlobalDetail, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotGlobalDetailClicked( ) ) );
connect( m_pLocalDetailLevel, TQT_SIGNAL( activated( int ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pGlobalDetail, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotGlobalDetailClicked( ) ) );
connect( m_pLocalDetailLevel, TQ_SIGNAL( activated( int ) ), TQ_SIGNAL( dataChanged( ) ) );
}
void PMDetailObjectEdit::displayObject( PMObject* o )

@ -178,28 +178,28 @@ void PMDialogEditBase::displayObject( PMObject* o )
vl->addWidget( m_pRenderFrame );
m_pRenderWidget = new PMPovrayRenderWidget( m_pRenderFrame );
connect( m_pRenderWidget, TQT_SIGNAL( finished( int ) ),
TQT_SLOT( slotPreviewFinished( int ) ) );
connect( m_pRenderWidget, TQ_SIGNAL( finished( int ) ),
TQ_SLOT( slotPreviewFinished( int ) ) );
m_pPreviewLocalBox = new TQCheckBox( i18n( "local" ), m_pTexturePreviewWidget );
m_pPreviewLocalBox->setChecked( s_previewLocal );
connect( m_pPreviewLocalBox, TQT_SIGNAL( toggled( bool ) ),
TQT_SLOT( slotPreviewLocal( bool ) ) );
connect( m_pPreviewLocalBox, TQ_SIGNAL( toggled( bool ) ),
TQ_SLOT( slotPreviewLocal( bool ) ) );
vl->addWidget( m_pPreviewLocalBox );
TQHBoxLayout* hl = new TQHBoxLayout( vl );
m_pPreviewButton = new TQPushButton( i18n( "&Preview" ), m_pTexturePreviewWidget );
hl->addWidget( m_pPreviewButton );
connect( m_pPreviewButton, TQT_SIGNAL( clicked( ) ),
TQT_SLOT( slotTexturePreview( ) ) );
connect( m_pPreviewButton, TQ_SIGNAL( clicked( ) ),
TQ_SLOT( slotTexturePreview( ) ) );
m_pOutputButton = new TQPushButton( i18n( "Povray Output" ), m_pTexturePreviewWidget );
hl->addWidget( m_pOutputButton );
connect( m_pOutputButton, TQT_SIGNAL( clicked( ) ),
TQT_SLOT( slotPovrayOutput( ) ) );
connect( m_pOutputButton, TQ_SIGNAL( clicked( ) ),
TQ_SLOT( slotPovrayOutput( ) ) );
hl->addStretch( 1 );
m_pOutputWidget = new PMPovrayOutputWidget( );
connect( m_pRenderWidget, TQT_SIGNAL( povrayMessage( const TQString& ) ),
m_pOutputWidget, TQT_SLOT( slotText( const TQString& ) ) );
connect( m_pRenderWidget, TQ_SIGNAL( povrayMessage( const TQString& ) ),
m_pOutputWidget, TQ_SLOT( slotText( const TQString& ) ) );
}
m_pTexturePreviewWidget->show( );

@ -136,31 +136,31 @@ PMDialogView::PMDialogView( PMPart* part, TQWidget* parent, const char* name )
TQHBoxLayout* buttonLayout = new TQHBoxLayout( m_pLayout );
m_pHelpButton = new KPushButton( KStdGuiItem::help(), this );
buttonLayout->addWidget( m_pHelpButton );
connect( m_pHelpButton, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( slotHelp( ) ) );
connect( m_pHelpButton, TQ_SIGNAL( clicked( ) ), this, TQ_SLOT( slotHelp( ) ) );
m_pHelpButton->setEnabled( false );
m_pApplyButton = new KPushButton( KStdGuiItem::apply(), this );
buttonLayout->addWidget( m_pApplyButton );
connect( m_pApplyButton, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( slotApply( ) ) );
connect( m_pApplyButton, TQ_SIGNAL( clicked( ) ), this, TQ_SLOT( slotApply( ) ) );
m_pApplyButton->setEnabled( false );
buttonLayout->addStretch( );
m_pCancelButton = new KPushButton( KStdGuiItem::cancel(), this );
buttonLayout->addWidget( m_pCancelButton );
connect( m_pCancelButton, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( slotCancel( ) ) );
connect( m_pCancelButton, TQ_SIGNAL( clicked( ) ), this, TQ_SLOT( slotCancel( ) ) );
m_pCancelButton->setEnabled( false );
m_pLayout->activate( );
connect( part, TQT_SIGNAL( refresh( ) ), TQT_SLOT( slotRefresh( ) ) );
connect( part, TQT_SIGNAL( objectChanged( PMObject*, const int, TQObject* ) ),
TQT_SLOT( slotObjectChanged( PMObject*, const int, TQObject* ) ) );
connect( part, TQT_SIGNAL( clear( ) ), TQT_SLOT( slotClear( ) ) );
connect( part, TQT_SIGNAL( aboutToRender( ) ), TQT_SLOT( slotAboutToRender( ) ) );
connect( part, TQT_SIGNAL( aboutToSave( ) ), TQT_SLOT( slotAboutToRender( ) ) );
connect( this, TQT_SIGNAL( objectChanged( PMObject*, const int, TQObject* ) ),
part, TQT_SLOT( slotObjectChanged( PMObject*, const int, TQObject* ) ) );
connect( part, TQ_SIGNAL( refresh( ) ), TQ_SLOT( slotRefresh( ) ) );
connect( part, TQ_SIGNAL( objectChanged( PMObject*, const int, TQObject* ) ),
TQ_SLOT( slotObjectChanged( PMObject*, const int, TQObject* ) ) );
connect( part, TQ_SIGNAL( clear( ) ), TQ_SLOT( slotClear( ) ) );
connect( part, TQ_SIGNAL( aboutToRender( ) ), TQ_SLOT( slotAboutToRender( ) ) );
connect( part, TQ_SIGNAL( aboutToSave( ) ), TQ_SLOT( slotAboutToRender( ) ) );
connect( this, TQ_SIGNAL( objectChanged( PMObject*, const int, TQObject* ) ),
part, TQ_SLOT( slotObjectChanged( PMObject*, const int, TQObject* ) ) );
displayObject( m_pPart->activeObject( ) );
}
@ -371,15 +371,15 @@ void PMDialogView::displayObject( PMObject* obj, bool updateDescription )
if( m_pDisplayedWidget )
{
connect( m_pDisplayedWidget, TQT_SIGNAL( dataChanged( ) ),
this, TQT_SLOT( slotDataChanged( ) ) );
connect( m_pDisplayedWidget, TQT_SIGNAL( sizeChanged( ) ),
this, TQT_SLOT( slotSizeChanged( ) ) );
connect( m_pDisplayedWidget, TQT_SIGNAL( aboutToRender( ) ),
this, TQT_SLOT( slotAboutToRender( ) ) );
connect( m_pDisplayedWidget, TQ_SIGNAL( dataChanged( ) ),
this, TQ_SLOT( slotDataChanged( ) ) );
connect( m_pDisplayedWidget, TQ_SIGNAL( sizeChanged( ) ),
this, TQ_SLOT( slotSizeChanged( ) ) );
connect( m_pDisplayedWidget, TQ_SIGNAL( aboutToRender( ) ),
this, TQ_SLOT( slotAboutToRender( ) ) );
connect( m_pDisplayedWidget,
TQT_SIGNAL( controlPointSelectionChanged( ) ),
TQT_SLOT( slotControlPointSelectionChanged( ) ) );
TQ_SIGNAL( controlPointSelectionChanged( ) ),
TQ_SLOT( slotControlPointSelectionChanged( ) ) );
}
}

@ -66,11 +66,11 @@ void PMDiscEdit::createTopWidgets( )
layout->addWidget( nb );
layout->addStretch( 1 );
connect( m_pCenter, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pNormal, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pRadius, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pHRadius, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( nb, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotNormalize( ) ) );
connect( m_pCenter, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pNormal, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pRadius, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pHRadius, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( nb, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotNormalize( ) ) );
}
void PMDiscEdit::slotNormalize( )

@ -171,10 +171,10 @@ void PMDockMainWindow::createGUI( Part * part )
factory->removeClient( d->m_activePart );
disconnect( d->m_activePart, TQT_SIGNAL( setWindowCaption( const TQString & ) ),
this, TQT_SLOT( setCaption( const TQString & ) ) );
disconnect( d->m_activePart, TQT_SIGNAL( setStatusBarText( const TQString & ) ),
this, TQT_SLOT( slotSetStatusBarText( const TQString & ) ) );
disconnect( d->m_activePart, TQ_SIGNAL( setWindowCaption( const TQString & ) ),
this, TQ_SLOT( setCaption( const TQString & ) ) );
disconnect( d->m_activePart, TQ_SIGNAL( setStatusBarText( const TQString & ) ),
this, TQ_SLOT( slotSetStatusBarText( const TQString & ) ) );
}
if( !d->m_bShellGUIActivated )
@ -187,10 +187,10 @@ void PMDockMainWindow::createGUI( Part * part )
if ( part )
{
// do this before sending the activate event
connect( part, TQT_SIGNAL( setWindowCaption( const TQString & ) ),
this, TQT_SLOT( setCaption( const TQString & ) ) );
connect( part, TQT_SIGNAL( setStatusBarText( const TQString & ) ),
this, TQT_SLOT( slotSetStatusBarText( const TQString & ) ) );
connect( part, TQ_SIGNAL( setWindowCaption( const TQString & ) ),
this, TQ_SLOT( setCaption( const TQString & ) ) );
connect( part, TQ_SIGNAL( setStatusBarText( const TQString & ) ),
this, TQ_SLOT( slotSetStatusBarText( const TQString & ) ) );
factory->addClient( part );
@ -359,24 +359,24 @@ PMDockWidgetHeader::PMDockWidgetHeader( PMDockWidget* parent, const char* name )
closeButton->setPixmap( const_cast< const char** >(close_xpm) );
int buttonWidth = 9, buttonHeight = 9;
closeButton->setFixedSize(buttonWidth,buttonHeight);
connect( closeButton, TQT_SIGNAL(clicked()), parent, TQT_SIGNAL(headerCloseButtonClicked()));
connect( closeButton, TQ_SIGNAL(clicked()), parent, TQ_SIGNAL(headerCloseButtonClicked()));
// MODIFICATION (zehender)
// The shell will delete the widget
// undock is unnecessary
// connect( closeButton, TQT_SIGNAL(clicked()), parent, TQT_SLOT(undock()));
// connect( closeButton, TQ_SIGNAL(clicked()), parent, TQ_SLOT(undock()));
stayButton = new PMDockButton_Private( this, "DockStayButton" );
stayButton->setToggleButton( true );
stayButton->setPixmap( const_cast< const char** >(not_close_xpm) );
stayButton->setFixedSize(buttonWidth,buttonHeight);
connect( stayButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotStayClicked()));
connect( stayButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotStayClicked()));
stayButton->hide( );
dockbackButton = new PMDockButton_Private( this, "DockbackButton" );
dockbackButton->setPixmap( const_cast< const char** >(dockback_xpm));
dockbackButton->setFixedSize(buttonWidth,buttonHeight);
connect( dockbackButton, TQT_SIGNAL(clicked()), parent, TQT_SIGNAL(headerDockbackButtonClicked()));
connect( dockbackButton, TQT_SIGNAL(clicked()), parent, TQT_SLOT(dockBack()));
connect( dockbackButton, TQ_SIGNAL(clicked()), parent, TQ_SIGNAL(headerDockbackButtonClicked()));
connect( dockbackButton, TQ_SIGNAL(clicked()), parent, TQ_SLOT(dockBack()));
// MODIFICATION (zehender)
// Add a button to undock the widget and dock it as top level
@ -384,7 +384,7 @@ PMDockWidgetHeader::PMDockWidgetHeader( PMDockWidget* parent, const char* name )
toDesktopButton = new PMDockButton_Private( this, "ToDesktopButton" );
toDesktopButton->setPixmap( const_cast< const char** >(todesktop_xpm));
toDesktopButton->setFixedSize(buttonWidth,buttonHeight);
connect( toDesktopButton, TQT_SIGNAL(clicked()), parent, TQT_SLOT(toDesktop()));
connect( toDesktopButton, TQ_SIGNAL(clicked()), parent, TQ_SLOT(toDesktop()));
layout->addWidget( drag );
layout->addWidget( dockbackButton );
@ -509,7 +509,7 @@ PMDockWidget::PMDockWidget( PMDockManager* dockManager, const char* name, const
setIcon( pixmap);
widget = 0L;
TQObject::connect(this, TQT_SIGNAL(hasUndocked()), manager->main, TQT_SLOT(slotDockWidgetUndocked()) );
TQObject::connect(this, TQ_SIGNAL(hasUndocked()), manager->main, TQ_SLOT(slotDockWidgetUndocked()) );
applyToWidget( parent, TQPoint(0,0) );
}
@ -837,8 +837,8 @@ PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockP
if( target->formerBrotherDockWidget != 0L) {
newDock->formerBrotherDockWidget = target->formerBrotherDockWidget;
if( formerBrotherDockWidget != 0L)
TQObject::connect( newDock->formerBrotherDockWidget, TQT_SIGNAL(iMBeingClosed()),
newDock, TQT_SLOT(loseFormerBrotherDockWidget()) );
TQObject::connect( newDock->formerBrotherDockWidget, TQ_SIGNAL(iMBeingClosed()),
newDock, TQ_SLOT(loseFormerBrotherDockWidget()) );
target->loseFormerBrotherDockWidget();
}
newDock->formerDockPos = target->formerDockPos;
@ -846,7 +846,7 @@ PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockP
if ( dockPos == PMDockWidget::DockCenter )
{
PMDockTabGroup* tab = new PMDockTabGroup( newDock, "_dock_tab");
TQObject::connect(tab, TQT_SIGNAL(currentChanged(TQWidget*)), d, TQT_SLOT(slotFocusEmbeddedWidget(TQWidget*)));
TQObject::connect(tab, TQ_SIGNAL(currentChanged(TQWidget*)), d, TQ_SLOT(slotFocusEmbeddedWidget(TQWidget*)));
newDock->setWidget( tab );
target->applyToWidget( tab );
@ -969,8 +969,8 @@ void PMDockWidget::undock()
d->index = parentTab->indexOf( this); // memorize the page position in the tab widget
parentTab->removePage( this );
formerBrotherDockWidget = (PMDockWidget*)parentTab->page(0);
TQObject::connect( formerBrotherDockWidget, TQT_SIGNAL(iMBeingClosed()),
this, TQT_SLOT(loseFormerBrotherDockWidget()) );
TQObject::connect( formerBrotherDockWidget, TQ_SIGNAL(iMBeingClosed()),
this, TQ_SLOT(loseFormerBrotherDockWidget()) );
applyToWidget( 0L );
if ( parentTab->count() == 1 ){
@ -1034,8 +1034,8 @@ void PMDockWidget::undock()
group->hide();
if( formerBrotherDockWidget != 0L)
TQObject::connect( formerBrotherDockWidget, TQT_SIGNAL(iMBeingClosed()),
this, TQT_SLOT(loseFormerBrotherDockWidget()) );
TQObject::connect( formerBrotherDockWidget, TQ_SIGNAL(iMBeingClosed()),
this, TQ_SLOT(loseFormerBrotherDockWidget()) );
if ( !group->parentWidget() ){
secondWidget->applyToWidget( 0L, group->frameGeometry().topLeft() );
@ -1165,8 +1165,8 @@ void PMDockWidget::makeDockVisible()
void PMDockWidget::loseFormerBrotherDockWidget()
{
if( formerBrotherDockWidget != 0L)
TQObject::disconnect( formerBrotherDockWidget, TQT_SIGNAL(iMBeingClosed()),
this, TQT_SLOT(loseFormerBrotherDockWidget()) );
TQObject::disconnect( formerBrotherDockWidget, TQ_SIGNAL(iMBeingClosed()),
this, TQ_SLOT(loseFormerBrotherDockWidget()) );
formerBrotherDockWidget = 0L;
repaint();
}
@ -1276,8 +1276,8 @@ PMDockManager::PMDockManager( TQWidget* mainWindow , const char* name )
menu = new TQPopupMenu();
#endif
connect( menu, TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotMenuPopup()) );
connect( menu, TQT_SIGNAL(activated(int)), TQT_SLOT(slotMenuActivated(int)) );
connect( menu, TQ_SIGNAL(aboutToShow()), TQ_SLOT(slotMenuPopup()) );
connect( menu, TQ_SIGNAL(activated(int)), TQ_SLOT(slotMenuActivated(int)) );
childDock = new TQObjectList();
childDock->setAutoDelete( false );

@ -154,41 +154,41 @@ void PMFinishEdit::createTopWidgets( )
layout->addMultiCellWidget( m_pReflectionWidget, 5, 5, 0, 1 );
connect( m_pAmbientColorEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pDiffuseEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pBrillianceEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pCrandEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pConserveEnergyEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pPhongEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pPhongSizeEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pMetallicEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pSpecularEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pRoughnessEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pIridAmountEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pIridThicknessEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pIridTurbulenceEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pIridEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotIridClicked( ) ) );
connect( m_pReflectionColorEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pReflectionMinColorEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pReflectionFresnelEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pReflectionFalloffEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pReflectionExponentEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pReflectionMetallicEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pAmbientColorEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pDiffuseEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pBrillianceEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pCrandEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pConserveEnergyEdit, TQ_SIGNAL( clicked( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pPhongEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pPhongSizeEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pMetallicEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pSpecularEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pRoughnessEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pIridAmountEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pIridThicknessEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pIridTurbulenceEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pIridEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotIridClicked( ) ) );
connect( m_pReflectionColorEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pReflectionMinColorEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pReflectionFresnelEdit, TQ_SIGNAL( clicked( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pReflectionFalloffEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pReflectionExponentEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pReflectionMetallicEdit, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pEnableAmbientEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotAmbientClicked( ) ) );
connect( m_pEnablePhongEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotPhongClicked( ) ) );
connect( m_pEnablePhongSizeEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotPhongSizeClicked( ) ) );
connect( m_pEnableDiffuseEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotDiffuseClicked( ) ) );
connect( m_pEnableBrillianceEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotBrillianceClicked( ) ) );
connect( m_pEnableCrandEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotCrandClicked( ) ) );
connect( m_pEnableSpecularEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotSpecularClicked( ) ) );
connect( m_pEnableRoughnessEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRoughnessClicked( ) ) );
connect( m_pEnableMetallicEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotMetallicClicked( ) ) );
connect( m_pEnableReflectionEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotReflectionClicked( ) ) );
connect( m_pEnableReflectionMinEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotReflectionMinClicked( ) ) );
connect( m_pEnableRefFalloffEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRefFalloffClicked( ) ) );
connect( m_pEnableRefExponentEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRefExponentClicked( ) ) );
connect( m_pEnableRefMetallicEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRefMetallicClicked( ) ) );
connect( m_pEnableAmbientEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotAmbientClicked( ) ) );
connect( m_pEnablePhongEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotPhongClicked( ) ) );
connect( m_pEnablePhongSizeEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotPhongSizeClicked( ) ) );
connect( m_pEnableDiffuseEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotDiffuseClicked( ) ) );
connect( m_pEnableBrillianceEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotBrillianceClicked( ) ) );
connect( m_pEnableCrandEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotCrandClicked( ) ) );
connect( m_pEnableSpecularEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotSpecularClicked( ) ) );
connect( m_pEnableRoughnessEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotRoughnessClicked( ) ) );
connect( m_pEnableMetallicEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotMetallicClicked( ) ) );
connect( m_pEnableReflectionEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotReflectionClicked( ) ) );
connect( m_pEnableReflectionMinEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotReflectionMinClicked( ) ) );
connect( m_pEnableRefFalloffEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotRefFalloffClicked( ) ) );
connect( m_pEnableRefExponentEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotRefExponentClicked( ) ) );
connect( m_pEnableRefMetallicEdit, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotRefMetallicClicked( ) ) );
}
void PMFinishEdit::displayObject( PMObject* o )

@ -118,18 +118,18 @@ void PMFogEdit::createTopWidgets( )
hl->addWidget( m_pUpLabel );
hl->addWidget( m_pUp );
connect( m_pFogTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotFogTypeChanged( int ) ) );
connect( m_pDistance, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pColor, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pTurbulenceCheck, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotTurbulenceClicked( ) ) );
connect( m_pTurbulenceVector, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pOctaves, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pOmega, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pLambda, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pDepth, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pFogOffset, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pFogAlt, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pUp, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
connect( m_pFogTypeEdit, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotFogTypeChanged( int ) ) );
connect( m_pDistance, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pColor, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pTurbulenceCheck, TQ_SIGNAL( clicked( ) ), TQ_SLOT( slotTurbulenceClicked( ) ) );
connect( m_pTurbulenceVector, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pOctaves, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );
connect( m_pOmega, TQ_SIGNAL( dataChanged( ) ), TQ_SIGNAL( dataChanged( ) ) );