summaryrefslogtreecommitdiffstats
path: root/kword/KWFrameDia.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kword/KWFrameDia.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kword/KWFrameDia.cpp')
-rw-r--r--kword/KWFrameDia.cpp562
1 files changed, 281 insertions, 281 deletions
diff --git a/kword/KWFrameDia.cpp b/kword/KWFrameDia.cpp
index 0e4a2e98..cdc46ec8 100644
--- a/kword/KWFrameDia.cpp
+++ b/kword/KWFrameDia.cpp
@@ -39,18 +39,18 @@
#include <kcolorbutton.h>
#include <kdebug.h>
-#include <qwhatsthis.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qhbuttongroup.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qlistview.h>
-#include <qbuttongroup.h>
-#include <qhbox.h>
-#include <qheader.h>
-#include <qlayout.h>
+#include <tqwhatsthis.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqhbuttongroup.h>
+#include <tqlabel.h>
+#include <tqradiobutton.h>
+#include <tqlistview.h>
+#include <tqbuttongroup.h>
+#include <tqhbox.h>
+#include <tqheader.h>
+#include <tqlayout.h>
#include <stdlib.h>
#include <limits.h>
@@ -58,16 +58,16 @@
/******************************************************************/
/* Class KWBrushStylePreview - only used by kwframestylemanager */
/******************************************************************/
-KWBrushStylePreview::KWBrushStylePreview( QWidget* parent )
- : QFrame(parent)
+KWBrushStylePreview::KWBrushStylePreview( TQWidget* tqparent )
+ : TQFrame(tqparent)
{
}
-void KWBrushStylePreview::drawContents( QPainter* painter )
+void KWBrushStylePreview::drawContents( TQPainter* painter )
{
painter->save();
painter->translate( contentsRect().x(), contentsRect().y() );
- painter->fillRect( contentsRect(), colorGroup().base() ); // in case of a transparent brush
+ painter->fillRect( contentsRect(), tqcolorGroup().base() ); // in case of a transparent brush
painter->fillRect( contentsRect(), brush );
painter->restore();
}
@@ -92,8 +92,8 @@ void KWBrushStylePreview::drawContents( QPainter* painter )
* position/size
******************************************************************/
-KWFrameDia::KWFrameDia( QWidget* parent, KWFrame *frame)
- : KDialogBase( Tabbed, QString::null, Ok | Apply| Cancel, Ok, parent, "framedialog", true)
+KWFrameDia::KWFrameDia( TQWidget* tqparent, KWFrame *frame)
+ : KDialogBase( Tabbed, TQString(), Ok | Apply| Cancel, Ok, tqparent, "framedialog", true)
{
m_noSignal=false;
m_frame = frame;
@@ -102,7 +102,7 @@ KWFrameDia::KWFrameDia( QWidget* parent, KWFrame *frame)
kdDebug() << "ERROR: KWFrameDia::constructor no frame.."<<endl;
return;
}
- setCaption( i18n( "Frame Properties for %1" ).arg( m_frame->frameSet()->name() ) );
+ setCaption( i18n( "Frame Properties for %1" ).tqarg( m_frame->frameSet()->name() ) );
KWFrameSet *fs = m_frame->frameSet()->groupmanager();
if(fs==0L) fs=m_frame->frameSet();
m_frameType = fs->type();
@@ -118,8 +118,8 @@ KWFrameDia::KWFrameDia( QWidget* parent, KWFrame *frame)
}
/* Contructor when the dialog is used on creation of frame */
-KWFrameDia::KWFrameDia( QWidget* parent, KWFrame *frame, KWDocument *doc, FrameSetType ft )
- : KDialogBase( Tabbed, i18n("Frame Properties for New Frame"), Ok | Cancel, Ok, parent, "framedialog", true)
+KWFrameDia::KWFrameDia( TQWidget* tqparent, KWFrame *frame, KWDocument *doc, FrameSetType ft )
+ : KDialogBase( Tabbed, i18n("Frame Properties for New Frame"), Ok | Cancel, Ok, tqparent, "framedialog", true)
{
m_noSignal=false;
m_frameType=ft;
@@ -137,7 +137,7 @@ KWFrameDia::KWFrameDia( QWidget* parent, KWFrame *frame, KWDocument *doc, FrameS
init();
}
-KWFrameDia::KWFrameDia( QWidget *parent, QPtrList<KWFrame> listOfFrames) : KDialogBase( Tabbed, i18n("Frames Properties"), Ok | Apply | Cancel, Ok, parent, "framedialog", true) , m_allFrames() {
+KWFrameDia::KWFrameDia( TQWidget *tqparent, TQPtrList<KWFrame> listOfFrames) : KDialogBase( Tabbed, i18n("Frames Properties"), Ok | Apply | Cancel, Ok, tqparent, "framedialog", true) , m_allFrames() {
m_noSignal=false;
m_mainFrame = m_frame = 0L;
@@ -149,7 +149,7 @@ KWFrameDia::KWFrameDia( QWidget *parent, QPtrList<KWFrame> listOfFrames) : KDial
return;
}
if ( listOfFrames.count() == 1 )
- setCaption( i18n( "Frame Settings for %1" ).arg( f->frameSet()->name() ) );
+ setCaption( i18n( "Frame Settings for %1" ).tqarg( f->frameSet()->name() ) );
KWFrameSet *fs = f->frameSet()->groupmanager();
if(fs==0L) fs=f->frameSet();
@@ -281,7 +281,7 @@ void KWFrameDia::init() {
setupTab5();
setupTab6();
}
- setInitialSize( QSize(550, 400) );
+ setInitialSize( TQSize(550, 400) );
}
void KWFrameDia::setupTab1(){ // TAB Frame Options
@@ -293,10 +293,10 @@ void KWFrameDia::setupTab1(){ // TAB Frame Options
else if(m_frameType == FT_TEXT)
columns = 2;
- m_grid1 = new QGridLayout( m_tab1, 0 /*auto create*/, columns, 0, KDialog::spacingHint() );
+ m_grid1 = new TQGridLayout( m_tab1, 0 /*auto create*/, columns, 0, KDialog::spacingHint() );
// Options for all types of frames
- m_cbCopy = new QCheckBox( i18n("Frame is a copy of the previous frame"),m_tab1 );
+ m_cbCopy = new TQCheckBox( i18n("Frame is a copy of the previous frame"),m_tab1 );
m_grid1->addWidget(m_cbCopy,1,0);
if(m_frame) {
@@ -331,9 +331,9 @@ void KWFrameDia::setupTab1(){ // TAB Frame Options
// Picture m_frame
if(m_frameType==FT_PICTURE)
{
- m_cbAspectRatio = new QCheckBox (i18n("Retain original aspect ratio"),m_tab1);
- connect( m_cbAspectRatio, SIGNAL(toggled(bool)),
- this, SLOT(slotKeepRatioToggled(bool)));
+ m_cbAspectRatio = new TQCheckBox (i18n("Retain original aspect ratio"),m_tab1);
+ connect( m_cbAspectRatio, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotKeepRatioToggled(bool)));
bool show=true;
bool on=true;
if(m_frame) {
@@ -370,35 +370,35 @@ void KWFrameDia::setupTab1(){ // TAB Frame Options
if(m_frameType==FT_TEXT)
{
// AutoCreateNewFrame policy.
- m_endOfFrame = new QGroupBox(i18n("If Text is Too Long for Frame"), m_tab1 );
+ m_endOfFrame = new TQGroupBox(i18n("If Text is Too Long for Frame"), m_tab1 );
m_grid1->addWidget( m_endOfFrame, row, 0 );
- m_eofGrid= new QGridLayout (m_endOfFrame, 4, 1, KDialog::marginHint(), KDialog::spacingHint());
- m_rAppendFrame = new QRadioButton( i18n( "Create a new page" ), m_endOfFrame );
- QWhatsThis::add( m_rAppendFrame, "<b>Create a new page:</b><br/> if there is too "
+ m_eofGrid= new TQGridLayout (m_endOfFrame, 4, 1, KDialog::marginHint(), KDialog::spacingHint());
+ m_rAppendFrame = new TQRadioButton( i18n( "Create a new page" ), m_endOfFrame );
+ TQWhatsThis::add( m_rAppendFrame, "<b>Create a new page:</b><br/> if there is too "
"much text for this text frame, a new page will be created and, "
"since \"Reconnect frame to current flow\" is the only possible "
"option together with this one, "
"the new page will have a frame for showing the additional text." );
m_eofGrid->addWidget( m_rAppendFrame, 1, 0 );
- m_rResizeFrame = new QRadioButton( i18n( "Resize last frame" ), m_endOfFrame );
- QWhatsThis::add( m_rResizeFrame, "<b>Resize last frame:</b><br/> "
+ m_rResizeFrame = new TQRadioButton( i18n( "Resize last frame" ), m_endOfFrame );
+ TQWhatsThis::add( m_rResizeFrame, "<b>Resize last frame:</b><br/> "
"if there is too much text for this text frame, "
"the frame will resize itself (increasing its height) as much as it needs, "
"to be able to contain all the text. More precisely, when the frameset has "
"multiple chained frames, it's always the last one which will be resized." );
m_eofGrid->addWidget( m_rResizeFrame, 2, 0 );
- m_rNoShow = new QRadioButton( i18n( "Don't show the extra text" ), m_endOfFrame );
- QWhatsThis::add( m_rNoShow, "<b>Don't show the extra text:</b><br/> "
+ m_rNoShow = new TQRadioButton( i18n( "Don't show the extra text" ), m_endOfFrame );
+ TQWhatsThis::add( m_rNoShow, "<b>Don't show the extra text:</b><br/> "
"if there is too much text for this text frame, nothing happens "
"automatically. Initially the extra text won't appear. One possibility "
"then is to resize the frame manually. The other possibility is, with the option "
"\"Reconnect frame to current flow\" selected, to create a new page "
"which will then have a followup frame with the extra text." );
m_eofGrid->addWidget( m_rNoShow, 3, 0 );
- QButtonGroup *grp = new QButtonGroup( m_endOfFrame );
+ TQButtonGroup *grp = new TQButtonGroup( m_endOfFrame );
grp->hide();
grp->setExclusive( true );
grp->insert( m_rAppendFrame );
@@ -439,42 +439,42 @@ void KWFrameDia::setupTab1(){ // TAB Frame Options
}
// NewFrameBehavior - now for all type of frames
- m_onNewPage = new QGroupBox(i18n("On New Page Creation"),m_tab1);
+ m_onNewPage = new TQGroupBox(i18n("On New Page Creation"),m_tab1);
m_grid1->addWidget( m_onNewPage, row, column );
- m_onpGrid = new QGridLayout( m_onNewPage, 4, 1, KDialog::marginHint(), KDialog::spacingHint() );
- m_reconnect = new QRadioButton (i18n ("Reconnect frame to current flow"), m_onNewPage);
- QWhatsThis::add(m_reconnect, i18n("<b>Reconnect frame to current flow:</b><br/>"
+ m_onpGrid = new TQGridLayout( m_onNewPage, 4, 1, KDialog::marginHint(), KDialog::spacingHint() );
+ m_reconnect = new TQRadioButton (i18n ("Reconnect frame to current flow"), m_onNewPage);
+ TQWhatsThis::add(m_reconnect, i18n("<b>Reconnect frame to current flow:</b><br/>"
"When a new page is created, a new frame will be created for this "
"frameset, so that the text can flow from one page to the next if necessary. "
"This is what happens for the \"main text frameset\", but this option makes it possible "
- "to choose the same behavior for other framesets, for instance in magazine layouts."));
+ "to choose the same behavior for other framesets, for instance in magazine tqlayouts."));
if ( m_rResizeFrame )
- connect( m_reconnect, SIGNAL( clicked() ), this, SLOT( setFrameBehaviorInputOn() ) );
+ connect( m_reconnect, TQT_SIGNAL( clicked() ), this, TQT_SLOT( setFrameBehaviorInputOn() ) );
m_onpGrid->addRowSpacing( 0, KDialog::marginHint() + 5 );
m_onpGrid->addWidget( m_reconnect, 1, 0 );
- m_noFollowup = new QRadioButton (i18n ("Do not create a followup frame"), m_onNewPage);
- QWhatsThis::add(m_noFollowup, i18n("<b>Do not create a followup frame:</b><br/>"
+ m_noFollowup = new TQRadioButton (i18n ("Do not create a followup frame"), m_onNewPage);
+ TQWhatsThis::add(m_noFollowup, i18n("<b>Do not create a followup frame:</b><br/>"
"When a new page is created, no frame will be created for this frameset."));
if ( m_rResizeFrame )
- connect( m_noFollowup, SIGNAL( clicked() ), this, SLOT( setFrameBehaviorInputOn() ) );
+ connect( m_noFollowup, TQT_SIGNAL( clicked() ), this, TQT_SLOT( setFrameBehaviorInputOn() ) );
m_onpGrid->addWidget( m_noFollowup, 2, 0 );
- m_copyRadio= new QRadioButton (i18n ("Place a copy of this frame"), m_onNewPage);
- QWhatsThis::add(m_copyRadio, i18n("<b>Place a copy of this frame:</b><br/>"
+ m_copyRadio= new TQRadioButton (i18n ("Place a copy of this frame"), m_onNewPage);
+ TQWhatsThis::add(m_copyRadio, i18n("<b>Place a copy of this frame:</b><br/>"
"When a new page is created, a frame will be created for this frameset, "
"which will always show the exact same thing as the frame on the previous "
"page. This is what happens for headers and footers, but this option "
"makes it possible to choose the same behavior for other framesets, for "
"instance a company logo and/or title that should appear exactly the same on every page."));
if ( m_rResizeFrame )
- connect( m_copyRadio, SIGNAL( clicked() ), this, SLOT( setFrameBehaviorInputOff() ) );
+ connect( m_copyRadio, TQT_SIGNAL( clicked() ), this, TQT_SLOT( setFrameBehaviorInputOff() ) );
m_onpGrid->addWidget( m_copyRadio, 3, 0);
enableOnNewPageOptions();
- QButtonGroup *grp2 = new QButtonGroup( m_onNewPage );
+ TQButtonGroup *grp2 = new TQButtonGroup( m_onNewPage );
grp2->hide();
grp2->setExclusive( true );
grp2->insert( m_reconnect );
@@ -513,30 +513,30 @@ void KWFrameDia::setupTab1(){ // TAB Frame Options
if( false && m_frameType == FT_TEXT ) // disabled in the GUI for now! (TZ June 2002)
{
row++;
- m_sideHeads = new QGroupBox(i18n("SideHead Definition"),m_tab1);
+ m_sideHeads = new TQGroupBox(i18n("SideHead Definition"),m_tab1);
m_sideHeads->setEnabled(false); //###
m_grid1->addWidget(m_sideHeads, row, 0);
- m_sideGrid = new QGridLayout( m_sideHeads, 4, 2, KDialog::marginHint(), KDialog::spacingHint() );
- sideTitle1 = new QLabel ( i18n("Size (%1):").arg(m_doc->unitName()),m_sideHeads);
- sideTitle1->resize(sideTitle1->sizeHint());
+ m_sideGrid = new TQGridLayout( m_sideHeads, 4, 2, KDialog::marginHint(), KDialog::spacingHint() );
+ sideTitle1 = new TQLabel ( i18n("Size (%1):").tqarg(m_doc->unitName()),m_sideHeads);
+ sideTitle1->resize(sideTitle1->tqsizeHint());
m_sideGrid->addWidget(sideTitle1,1,0);
- m_sideWidth= new QLineEdit(m_sideHeads,"");
+ m_sideWidth= new TQLineEdit(m_sideHeads,"");
m_sideWidth->setMaxLength(6);
m_sideGrid->addWidget(m_sideWidth,1,1);
- sideTitle2 = new QLabel( i18n("Gap size (%1):").arg(m_doc->unitName()),m_sideHeads);
- sideTitle2->resize(sideTitle2->sizeHint());
+ sideTitle2 = new TQLabel( i18n("Gap size (%1):").tqarg(m_doc->unitName()),m_sideHeads);
+ sideTitle2->resize(sideTitle2->tqsizeHint());
m_sideGrid->addWidget(sideTitle2,2,0);
- m_sideGap = new QLineEdit(m_sideHeads,"");
+ m_sideGap = new TQLineEdit(m_sideHeads,"");
m_sideGap->setMaxLength(6);
m_sideGrid->addWidget(m_sideGap,2,1);
- m_sideAlign = new QComboBox (false,m_sideHeads);
+ m_sideAlign = new TQComboBox (false,m_sideHeads);
m_sideAlign->setAutoResize(false);
m_sideAlign->insertItem ( i18n("Left"));
m_sideAlign->insertItem ( i18n("Right"));
m_sideAlign->insertItem ( i18n("Closest to Binding"));
m_sideAlign->insertItem ( i18n("Closest to Page Edge"));
- m_sideAlign->resize(m_sideAlign->sizeHint());
+ m_sideAlign->resize(m_sideAlign->tqsizeHint());
m_sideGrid->addMultiCellWidget(m_sideAlign,3,3,0,1);
m_sideGrid->addRowSpacing( 0, KDialog::marginHint() + 5 );
@@ -549,14 +549,14 @@ void KWFrameDia::setupTab1(){ // TAB Frame Options
// add rest of sidehead init..
}
- m_cbAllFrames = new QCheckBox (i18n("Changes will be applied to all frames in frameset"),m_tab1);
+ m_cbAllFrames = new TQCheckBox (i18n("Changes will be applied to all frames in frameset"),m_tab1);
m_cbAllFrames->setChecked(m_frame!=0L);
row++;
m_grid1->addMultiCellWidget(m_cbAllFrames,row,row, 0, 1);
- m_cbProtectContent = new QCheckBox( i18n("Protect content"), m_tab1);
- QWhatsThis::add(m_cbProtectContent, i18n("<b>Protect content:</b><br/>"
+ m_cbProtectContent = new TQCheckBox( i18n("Protect content"), m_tab1);
+ TQWhatsThis::add(m_cbProtectContent, i18n("<b>Protect content:</b><br/>"
"Disallow changes to be made to the contents of the frame(s)."));
- connect( m_cbProtectContent, SIGNAL(toggled ( bool ) ), this, SLOT(slotProtectContentChanged( bool )));
+ connect( m_cbProtectContent, TQT_SIGNAL(toggled ( bool ) ), this, TQT_SLOT(slotProtectContentChanged( bool )));
row++;
m_grid1->addMultiCellWidget(m_cbProtectContent,row,row, 0, 1);
if( m_frameType != FT_TEXT || m_frame!=0 && m_frame->frameSet()==0) {
@@ -609,38 +609,38 @@ void KWFrameDia::setupTab1(){ // TAB Frame Options
void KWFrameDia::setupTab2() { // TAB Text Runaround
m_tab2 = addPage( i18n( "Text Run Around" ) );
- QVBoxLayout *tabLayout = new QVBoxLayout( m_tab2, 0, KDialog::spacingHint(), "tabLayout");
+ TQVBoxLayout *tabLayout = new TQVBoxLayout( m_tab2, 0, KDialog::spacingHint(), "tabLayout");
// First groupbox
- m_runGroup = new QButtonGroup( i18n( "Layout of Text in Other Frames" ), m_tab2);
+ m_runGroup = new TQButtonGroup( i18n( "Layout of Text in Other Frames" ), m_tab2);
m_runGroup->setColumnLayout( 0, Qt::Vertical );
- m_runGroup->layout()->setSpacing( KDialog::spacingHint() );
- QGridLayout *groupBox1Layout = new QGridLayout( m_runGroup->layout() );
- groupBox1Layout->setAlignment( Qt::AlignTop );
+ m_runGroup->tqlayout()->setSpacing( KDialog::spacingHint() );
+ TQGridLayout *groupBox1Layout = new TQGridLayout( m_runGroup->tqlayout() );
+ groupBox1Layout->tqsetAlignment( TQt::AlignTop );
- m_rRunNo = new QRadioButton( i18n( "Text will run &through this frame" ), m_runGroup );
+ m_rRunNo = new TQRadioButton( i18n( "Text will run &through this frame" ), m_runGroup );
groupBox1Layout->addWidget( m_rRunNo, 0, 1 );
- m_rRunBounding = new QRadioButton( i18n( "Text will run &around the frame" ), m_runGroup );
+ m_rRunBounding = new TQRadioButton( i18n( "Text will run &around the frame" ), m_runGroup );
groupBox1Layout->addWidget( m_rRunBounding, 1, 1 );
- m_rRunSkip = new QRadioButton( i18n( "Text will &not run around this frame" ), m_runGroup );
+ m_rRunSkip = new TQRadioButton( i18n( "Text will &not run around this frame" ), m_runGroup );
groupBox1Layout->addWidget( m_rRunSkip, 2, 1 );
- QPixmap pixmap = KWBarIcon( "run_not" );
- QLabel *lRunNo = new QLabel( m_runGroup );
+ TQPixmap pixmap = KWBarIcon( "run_not" );
+ TQLabel *lRunNo = new TQLabel( m_runGroup );
lRunNo->setBackgroundPixmap( pixmap );
lRunNo->setFixedSize( pixmap.size() );
groupBox1Layout->addWidget( lRunNo, 0, 0 );
pixmap = KWBarIcon( "run_bounding" );
- QLabel *lRunBounding = new QLabel( m_runGroup );
+ TQLabel *lRunBounding = new TQLabel( m_runGroup );
lRunBounding->setBackgroundPixmap( pixmap );
lRunBounding->setFixedSize( pixmap.size() );
groupBox1Layout->addWidget( lRunBounding, 1, 0 );
pixmap = KWBarIcon( "run_skip" );
- QLabel *lRunSkip = new QLabel( m_runGroup );
+ TQLabel *lRunSkip = new TQLabel( m_runGroup );
lRunSkip->setBackgroundPixmap( pixmap );
lRunSkip->setFixedSize( pixmap.size() );
groupBox1Layout->addWidget( lRunSkip, 2, 0 );
@@ -648,37 +648,37 @@ void KWFrameDia::setupTab2() { // TAB Text Runaround
tabLayout->addWidget( m_runGroup );
// Second groupbox
- m_runSideGroup = new QButtonGroup( i18n( "Run Around Side" ), m_tab2);
+ m_runSideGroup = new TQButtonGroup( i18n( "Run Around Side" ), m_tab2);
m_runSideGroup->setColumnLayout( 0, Qt::Vertical );
- m_runSideGroup->layout()->setSpacing( KDialog::spacingHint() );
- m_runSideGroup->layout()->setMargin( KDialog::marginHint() );
- QGridLayout *runSideLayout = new QGridLayout( m_runSideGroup->layout() );
- runSideLayout->setAlignment( Qt::AlignTop );
+ m_runSideGroup->tqlayout()->setSpacing( KDialog::spacingHint() );
+ m_runSideGroup->tqlayout()->setMargin( KDialog::marginHint() );
+ TQGridLayout *runSideLayout = new TQGridLayout( m_runSideGroup->tqlayout() );
+ runSideLayout->tqsetAlignment( TQt::AlignTop );
- m_rRunLeft = new QRadioButton( i18n( "Run Around", "&Left" ), m_runSideGroup );
+ m_rRunLeft = new TQRadioButton( i18n( "Run Around", "&Left" ), m_runSideGroup );
runSideLayout->addWidget( m_rRunLeft, 0, 0 /*1*/ );
- m_rRunRight = new QRadioButton( i18n( "Run Around", "&Right" ), m_runSideGroup );
+ m_rRunRight = new TQRadioButton( i18n( "Run Around", "&Right" ), m_runSideGroup );
runSideLayout->addWidget( m_rRunRight, 1, 0 /*1*/ );
- m_rRunBiggest = new QRadioButton( i18n( "Run Around", "Lon&gest side" ), m_runSideGroup );
+ m_rRunBiggest = new TQRadioButton( i18n( "Run Around", "Lon&gest side" ), m_runSideGroup );
runSideLayout->addWidget( m_rRunBiggest, 2, 0 /*1*/ );
#if 0 // TODO icons!
- QPixmap pixmap = KWBarIcon( "run_left" );
- QLabel *label = new QLabel( m_runSideGroup );
+ TQPixmap pixmap = KWBarIcon( "run_left" );
+ TQLabel *label = new TQLabel( m_runSideGroup );
label->setBackgroundPixmap( pixmap );
label->setFixedSize( pixmap.size() );
runSideLayout->addWidget( label, 0, 0 );
pixmap = KWBarIcon( "run_right" );
- label = new QLabel( m_runSideGroup );
+ label = new TQLabel( m_runSideGroup );
label->setBackgroundPixmap( pixmap );
label->setFixedSize( pixmap.size() );
runSideLayout->addWidget( label, 1, 0 );
pixmap = KWBarIcon( "run_biggest" );
- label = new QLabel( m_runSideGroup );
+ label = new TQLabel( m_runSideGroup );
label->setBackgroundPixmap( pixmap );
label->setFixedSize( pixmap.size() );
runSideLayout->addWidget( label, 2, 0 );
@@ -688,10 +688,10 @@ void KWFrameDia::setupTab2() { // TAB Text Runaround
m_raDistConfigWidget = new KWFourSideConfigWidget( m_doc, i18n("Distance Between Frame && Text"), m_tab2 );
if ( m_frame )
- m_raDistConfigWidget->setValues( QMAX(0.00, m_frame->runAroundLeft()),
- QMAX(0.00, m_frame->runAroundRight()),
- QMAX(0.00, m_frame->runAroundTop()),
- QMAX(0.00, m_frame->runAroundBottom()) );
+ m_raDistConfigWidget->setValues( TQMAX(0.00, m_frame->runAroundLeft()),
+ TQMAX(0.00, m_frame->runAroundRight()),
+ TQMAX(0.00, m_frame->runAroundTop()),
+ TQMAX(0.00, m_frame->runAroundBottom()) );
tabLayout->addWidget( m_raDistConfigWidget );
@@ -778,7 +778,7 @@ void KWFrameDia::setupTab2() { // TAB Text Runaround
enableRunAround();
// Changing the type of runaround needs to enable/disable the runaround-side options
- connect( m_runGroup, SIGNAL( clicked(int) ), this, SLOT( enableRunAround() ) );
+ connect( m_runGroup, TQT_SIGNAL( clicked(int) ), this, TQT_SLOT( enableRunAround() ) );
}
void KWFrameDia::setupTab3(){ // TAB Frameset
@@ -792,51 +792,51 @@ void KWFrameDia::setupTab3(){ // TAB Frameset
//kdDebug() << "setup tab 3 frameSet"<<endl;
m_tab3 = addPage( i18n( "Connect Text Frames" ) );
- QVBoxLayout *tabLayout = new QVBoxLayout( m_tab3, 0, KDialog::spacingHint());
+ TQVBoxLayout *tabLayout = new TQVBoxLayout( m_tab3, 0, KDialog::spacingHint());
- QButtonGroup *myGroup = new QButtonGroup(this);
+ TQButtonGroup *myGroup = new TQButtonGroup(this);
myGroup->hide();
- m_rExistingFrameset = new QRadioButton( m_tab3, "m_rExistingFrameset" );
+ m_rExistingFrameset = new TQRadioButton( m_tab3, "m_rExistingFrameset" );
m_rExistingFrameset->setText( i18n("Select existing frameset to connect frame to:") );
tabLayout->addWidget( m_rExistingFrameset );
myGroup->insert(m_rExistingFrameset,1);
- connect (m_rExistingFrameset, SIGNAL( toggled(bool)), this, SLOT(ensureValidFramesetSelected()));
+ connect (m_rExistingFrameset, TQT_SIGNAL( toggled(bool)), this, TQT_SLOT(ensureValidFramesetSelected()));
- QHBoxLayout *layout2 = new QHBoxLayout( 0, 0, 6);
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
- layout2->addItem( spacer );
+ TQHBoxLayout *tqlayout2 = new TQHBoxLayout( 0, 0, 6);
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
+ tqlayout2->addItem( spacer );
- m_lFrameSList = new QListView( m_tab3, "m_lFrameSList" );
+ m_lFrameSList = new TQListView( m_tab3, "m_lFrameSList" );
m_lFrameSList->addColumn( i18n("No.") );
m_lFrameSList->addColumn( i18n("Frameset Name") );
m_lFrameSList->setAllColumnsShowFocus( true );
m_lFrameSList->header()->setMovingEnabled( false );
- connect( m_lFrameSList, SIGNAL(selectionChanged ()),this,SLOT(selectExistingFrameset ()) );
- connect (m_lFrameSList, SIGNAL( selectionChanged()), this, SLOT(ensureValidFramesetSelected()));
+ connect( m_lFrameSList, TQT_SIGNAL(selectionChanged ()),this,TQT_SLOT(selectExistingFrameset ()) );
+ connect (m_lFrameSList, TQT_SIGNAL( selectionChanged()), this, TQT_SLOT(ensureValidFramesetSelected()));
- layout2->addWidget( m_lFrameSList );
- tabLayout->addLayout( layout2 );
+ tqlayout2->addWidget( m_lFrameSList );
+ tabLayout->addLayout( tqlayout2 );
- m_rNewFrameset = new QRadioButton( m_tab3);
+ m_rNewFrameset = new TQRadioButton( m_tab3);
m_rNewFrameset->setText( i18n( "Create a new frameset" ) );
tabLayout->addWidget( m_rNewFrameset );
myGroup->insert(m_rNewFrameset,2);
- QFrame *line1 = new QFrame( m_tab3 );
- line1->setProperty( "frameShape", (int)QFrame::HLine );
- line1->setFrameShadow( QFrame::Plain );
- line1->setFrameShape( QFrame::HLine );
+ TQFrame *line1 = new TQFrame( m_tab3 );
+ line1->setProperty( "frameShape", (int)TQFrame::HLine );
+ line1->setFrameShadow( TQFrame::Plain );
+ line1->setFrameShape( TQFrame::HLine );
tabLayout->addWidget( line1 );
- QHBoxLayout *layout1 = new QHBoxLayout( 0, 0, 6 );
- QLabel *textLabel1 = new QLabel( m_tab3 );
+ TQHBoxLayout *tqlayout1 = new TQHBoxLayout( 0, 0, 6 );
+ TQLabel *textLabel1 = new TQLabel( m_tab3 );
textLabel1->setText( i18n( "Name of frameset:" ) );
- layout1->addWidget( textLabel1 );
+ tqlayout1->addWidget( textLabel1 );
- m_eFrameSetName = new QLineEdit( m_tab3 );
- layout1->addWidget( m_eFrameSetName );
- tabLayout->addLayout( layout1 );
+ m_eFrameSetName = new TQLineEdit( m_tab3 );
+ tqlayout1->addWidget( m_eFrameSetName );
+ tabLayout->addLayout( tqlayout1 );
int amount=0;
// now fill the gui.
@@ -852,8 +852,8 @@ void KWFrameDia::setupTab3(){ // TAB Frameset
continue;
if ( fs->isDeleted() )
continue;
- QListViewItem *item = new QListViewItem( m_lFrameSList );
- item->setText( 0, QString( "%1" ).arg( i + 1 ) );
+ TQListViewItem *item = new TQListViewItem( m_lFrameSList );
+ item->setText( 0, TQString( "%1" ).tqarg( i + 1 ) );
item->setText( 1, fs->name() );
amount++;
if( m_frame && m_frame->frameSet() == fs ) {
@@ -881,14 +881,14 @@ void KWFrameDia::setupTab3(){ // TAB Frameset
}
m_eFrameSetName->setText( m_oldFrameSetName );
- connect( m_lFrameSList, SIGNAL( currentChanged( QListViewItem * ) ),
- this, SLOT( connectListSelected( QListViewItem * ) ) );
- connect(m_eFrameSetName, SIGNAL(textChanged ( const QString & ) ),
- this,SLOT(textNameFrameChanged ( const QString & ) ) );
- connect(m_eFrameSetName, SIGNAL(textChanged ( const QString & )),
- this,SLOT(textNameFrameChanged ( const QString & ) ));
- connect( m_rNewFrameset, SIGNAL(toggled (bool)),
- this,SLOT(selectNewFrameset (bool)) );
+ connect( m_lFrameSList, TQT_SIGNAL( currentChanged( TQListViewItem * ) ),
+ this, TQT_SLOT( connectListSelected( TQListViewItem * ) ) );
+ connect(m_eFrameSetName, TQT_SIGNAL(textChanged ( const TQString & ) ),
+ this,TQT_SLOT(textNameFrameChanged ( const TQString & ) ) );
+ connect(m_eFrameSetName, TQT_SIGNAL(textChanged ( const TQString & )),
+ this,TQT_SLOT(textNameFrameChanged ( const TQString & ) ));
+ connect( m_rNewFrameset, TQT_SIGNAL(toggled (bool)),
+ this,TQT_SLOT(selectNewFrameset (bool)) );
}
void KWFrameDia::selectExistingFrameset() {
@@ -898,19 +898,19 @@ void KWFrameDia::selectExistingFrameset() {
void KWFrameDia::selectNewFrameset(bool on) {
if(!on) return;
- QListViewItem *frameSetItem = m_lFrameSList->selectedItem();
+ TQListViewItem *frameSetItem = m_lFrameSList->selectedItem();
if ( !frameSetItem)
return;
- QString str = frameSetItem->text( 0 );
+ TQString str = frameSetItem->text( 0 );
KWFrameSet *fs = m_doc->frameSet(str.toInt() - 1);
frameSetItem->setText(1, fs->name() );
}
-void KWFrameDia::textNameFrameChanged ( const QString &text )
+void KWFrameDia::textNameFrameChanged ( const TQString &text )
{
if(m_rExistingFrameset->isChecked()) {
- QListViewItem *item = m_lFrameSList->selectedItem();
+ TQListViewItem *item = m_lFrameSList->selectedItem();
if ( !item )
return;
item->setText(1, text );
@@ -925,18 +925,18 @@ void KWFrameDia::setupTab4() { // TAB Geometry
m_noSignal = true;
m_tab4 = addPage( i18n( "Geometry" ) );
- QGridLayout* grid4 = new QGridLayout( m_tab4, 5, 1, 0, KDialog::spacingHint() );
+ TQGridLayout* grid4 = new TQGridLayout( m_tab4, 5, 1, 0, KDialog::spacingHint() );
- m_floating = new QCheckBox( i18n("Frame is inline"), m_tab4 );
+ m_floating = new TQCheckBox( i18n("Frame is inline"), m_tab4 );
- connect( m_floating, SIGNAL( toggled(bool) ), this, SLOT( slotFloatingToggled(bool) ) );
+ connect( m_floating, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotFloatingToggled(bool) ) );
int row = 0;
grid4->addMultiCellWidget( m_floating, row, row, 0, 1 );
row++;
- m_protectSize = new QCheckBox( i18n("Protect size and position"), m_tab4);
+ m_protectSize = new TQCheckBox( i18n("Protect size and position"), m_tab4);
grid4->addMultiCellWidget( m_protectSize, row, row, 0, 1 );
- connect( m_protectSize, SIGNAL( toggled(bool) ), this, SLOT( slotProtectSizeToggled(bool) ) );
+ connect( m_protectSize, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotProtectSizeToggled(bool) ) );
/* ideally the following properties could be given to any floating frame:
Position: (y)
@@ -957,47 +957,47 @@ void KWFrameDia::setupTab4() { // TAB Geometry
Absolute
*/
- m_grp1 = new QGroupBox( i18n("Position"), m_tab4 );
- QGridLayout* pGrid = new QGridLayout( m_grp1, 3, 4, KDialog::marginHint(), KDialog::spacingHint() );
+ m_grp1 = new TQGroupBox( i18n("Position"), m_tab4 );
+ TQGridLayout* pGrid = new TQGridLayout( m_grp1, 3, 4, KDialog::marginHint(), KDialog::spacingHint() );
- m_lx = new QLabel( i18n( "Left:" ), m_grp1 );
- m_lx->resize( m_lx->sizeHint() );
+ m_lx = new TQLabel( i18n( "Left:" ), m_grp1 );
+ m_lx->resize( m_lx->tqsizeHint() );
pGrid->addWidget( m_lx, 1, 0 );
m_sx = new KoUnitDoubleSpinBox( m_grp1, 0, 9999, 1, 0.0, m_doc->unit() );
- m_sx->resize( m_sx->sizeHint() );
+ m_sx->resize( m_sx->tqsizeHint() );
pGrid->addWidget( m_sx, 1, 1 );
- m_ly = new QLabel( i18n( "Top:" ), m_grp1 );
- m_ly->resize( m_ly->sizeHint() );
+ m_ly = new TQLabel( i18n( "Top:" ), m_grp1 );
+ m_ly->resize( m_ly->tqsizeHint() );
pGrid->addWidget( m_ly, 1, 2 );
m_sy = new KoUnitDoubleSpinBox( m_grp1, 0, 9999, 1, 0.0, m_doc->unit() );
- m_sy->resize( m_sy->sizeHint() );
+ m_sy->resize( m_sy->tqsizeHint() );
pGrid->addWidget( m_sy, 1, 3 );
- m_lw = new QLabel( i18n( "Width:" ), m_grp1 );
- m_lw->resize( m_lw->sizeHint() );
+ m_lw = new TQLabel( i18n( "Width:" ), m_grp1 );
+ m_lw->resize( m_lw->tqsizeHint() );
pGrid->addWidget( m_lw, 2, 0 );
m_sw = new KoUnitDoubleSpinBox( m_grp1, 0, 9999, 1, 0.0, m_doc->unit() );
- m_sw->resize( m_sw->sizeHint() );
- connect( m_sw, SIGNAL(valueChanged(double)),
- this, SLOT(slotUpdateHeightForWidth(double)) );
+ m_sw->resize( m_sw->tqsizeHint() );
+ connect( m_sw, TQT_SIGNAL(valueChanged(double)),
+ this, TQT_SLOT(slotUpdateHeightForWidth(double)) );
pGrid->addWidget( m_sw, 2, 1 );
- m_lh = new QLabel( i18n( "Height:" ), m_grp1 );
- m_lh->resize( m_lh->sizeHint() );
+ m_lh = new TQLabel( i18n( "Height:" ), m_grp1 );
+ m_lh->resize( m_lh->tqsizeHint() );
pGrid->addWidget( m_lh, 2, 2 );
m_sh = new KoUnitDoubleSpinBox( m_grp1, 0, 9999, 1, 0.0, m_doc->unit() );
- connect( m_sh, SIGNAL(valueChanged(double)),
- this, SLOT(slotUpdateWidthForHeight(double)) );
+ connect( m_sh, TQT_SIGNAL(valueChanged(double)),
+ this, TQT_SLOT(slotUpdateWidthForHeight(double)) );
- m_sh->resize( m_sh->sizeHint() );
+ m_sh->resize( m_sh->tqsizeHint() );
pGrid->addWidget( m_sh, 2, 3 );
@@ -1008,10 +1008,10 @@ void KWFrameDia::setupTab4() { // TAB Geometry
if(m_frame) {
m_paddingConfigWidget = new KWFourSideConfigWidget( m_doc, i18n("Margins"), m_tab4 );
- m_paddingConfigWidget->setValues( QMAX(0.00, m_frame->paddingLeft()),
- QMAX(0.00, m_frame->paddingRight()),
- QMAX(0.00, m_frame->paddingTop()),
- QMAX(0.00, m_frame->paddingBottom()) );
+ m_paddingConfigWidget->setValues( TQMAX(0.00, m_frame->paddingLeft()),
+ TQMAX(0.00, m_frame->paddingRight()),
+ TQMAX(0.00, m_frame->paddingTop()),
+ TQMAX(0.00, m_frame->paddingBottom()) );
row++;
grid4->addMultiCellWidget( m_paddingConfigWidget, row, row, 0, 1 );
@@ -1154,40 +1154,40 @@ void KWFrameDia::initGeometrySettings()
void KWFrameDia::setupTab5() { // Tab Background fill/color
m_tab5 = addPage( i18n("Background") );
- QGridLayout* grid5 = new QGridLayout( m_tab5, 0 /*auto*/, 2, 0, KDialog::spacingHint() );
+ TQGridLayout* grid5 = new TQGridLayout( m_tab5, 0 /*auto*/, 2, 0, KDialog::spacingHint() );
int row = 0;
if (!m_frame ) {
- m_overwriteColor = new QCheckBox (i18n("Set new color on all selected frames"), m_tab5);
+ m_overwriteColor = new TQCheckBox (i18n("Set new color on all selected frames"), m_tab5);
grid5->addMultiCellWidget(m_overwriteColor,row,row,0,1);
row++;
}
//brushPreview=new KWBrushStylePreview(m_tab5);
//grid5->addMultiCellWidget(brushPreview,row,5,1,1);
- m_transparentCB = new QCheckBox( i18n( "Transparent background" ), m_tab5 );
+ m_transparentCB = new TQCheckBox( i18n( "Transparent background" ), m_tab5 );
grid5->addWidget(m_transparentCB,row++,0);
m_transparentCB->setEnabled( !m_mainFrameSetIncluded );
- QLabel *labelBgColor = new QLabel( i18n( "Background color:" ), m_tab5 );
+ TQLabel *labelBgColor = new TQLabel( i18n( "Background color:" ), m_tab5 );
grid5->addWidget(labelBgColor,row++,0);
- m_brushColor = new KColorButton( Qt::white, KWDocument::defaultBgColor(0), m_tab5 );
+ m_brushColor = new KColorButton( TQt::white, KWDocument::defaultBgColor(0), m_tab5 );
grid5->addWidget(m_brushColor,row++,0);
-// connect( m_brushColor, SIGNAL( changed( const QColor & ) ),
-// this, SLOT( updateBrushPreview() ) );
+// connect( m_brushColor, TQT_SIGNAL( changed( const TQColor & ) ),
+// this, TQT_SLOT( updateBrushPreview() ) );
// ###########################
// Fill styles are ugly and not WYSIWYG (due to being pixel-based)
// Feature not in OOo either (they have a configurable level of transparency instead, much nicer)
#if 0
- l = new QLabel( i18n( "Background style:" ), m_tab5 );
+ l = new TQLabel( i18n( "Background style:" ), m_tab5 );
grid5->addWidget(l,row++,0);
- brushStyle = new QComboBox( false,m_tab5, "BStyle" );
+ brushStyle = new TQComboBox( false,m_tab5, "BStyle" );
grid5->addWidget(brushStyle,row++,0);
brushStyle->insertItem( i18n( "No Background Fill" ) );
@@ -1213,17 +1213,17 @@ void KWFrameDia::setupTab5() { // Tab Background fill/color
brushStyle->insertItem( i18n( "Diagonal Lines ( / )" ) );
brushStyle->insertItem( i18n( "Diagonal Lines ( \\ )" ) );
brushStyle->insertItem( i18n( "Diagonal Crossing Lines" ) );
- connect( brushStyle, SIGNAL( activated( int ) ),
- this, SLOT( updateBrushPreview() ) );
+ connect( brushStyle, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( updateBrushPreview() ) );
updateBrushPreview();
#endif
- connect( m_transparentCB, SIGNAL( toggled( bool ) ), labelBgColor, SLOT( setDisabled( bool ) ) );
- connect( m_transparentCB, SIGNAL( toggled( bool ) ), m_brushColor, SLOT( setDisabled( bool ) ) );
+ connect( m_transparentCB, TQT_SIGNAL( toggled( bool ) ), labelBgColor, TQT_SLOT( setDisabled( bool ) ) );
+ connect( m_transparentCB, TQT_SIGNAL( toggled( bool ) ), m_brushColor, TQT_SLOT( setDisabled( bool ) ) );
initBrush();
- QSpacerItem* spacer = new QSpacerItem( 10, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ TQSpacerItem* spacer = new TQSpacerItem( 10, 10, TQSizePolicy::Minimum, TQSizePolicy::Expanding);
grid5->addItem( spacer,row,0 );
}
@@ -1231,12 +1231,12 @@ void KWFrameDia::setupTab6() // Border style
{
m_tab6 = addPage( i18n("&Borders") );
- QGridLayout *grid = new QGridLayout( m_tab6, 8, 2, 0, KDialog::spacingHint() );
+ TQGridLayout *grid = new TQGridLayout( m_tab6, 8, 2, 0, KDialog::spacingHint() );
- QLabel * lStyle = new QLabel( i18n( "St&yle:" ), m_tab6 );
+ TQLabel * lStyle = new TQLabel( i18n( "St&yle:" ), m_tab6 );
grid->addWidget( lStyle, 0, 0 );
- m_cStyle = new QComboBox( false, m_tab6 );
+ m_cStyle = new TQComboBox( false, m_tab6 );
m_cStyle->insertItem( KoBorder::getStyle( KoBorder::SOLID ) );
m_cStyle->insertItem( KoBorder::getStyle( KoBorder::DASH ) );
m_cStyle->insertItem( KoBorder::getStyle( KoBorder::DOT ) );
@@ -1246,16 +1246,16 @@ void KWFrameDia::setupTab6() // Border style
lStyle->setBuddy( m_cStyle );
grid->addWidget( m_cStyle, 1, 0 );
- QLabel * lWidth = new QLabel( i18n( "&Width:" ), m_tab6 );
+ TQLabel * lWidth = new TQLabel( i18n( "&Width:" ), m_tab6 );
grid->addWidget( lWidth, 2, 0 );
- m_cWidth = new QComboBox( false, m_tab6 );
+ m_cWidth = new TQComboBox( false, m_tab6 );
for( unsigned int i = 1; i <= 10; i++ )
- m_cWidth->insertItem(QString::number(i));
+ m_cWidth->insertItem(TQString::number(i));
lWidth->setBuddy( m_cWidth );
grid->addWidget( m_cWidth, 3, 0 );
- QLabel * lColor = new QLabel( i18n( "Co&lor:" ), m_tab6 );
+ TQLabel * lColor = new TQLabel( i18n( "Co&lor:" ), m_tab6 );
grid->addWidget( lColor, 4, 0 );
m_bColor = new KColorButton( black,
@@ -1265,39 +1265,39 @@ void KWFrameDia::setupTab6() // Border style
lColor->setBuddy( m_bColor );
grid->addWidget( m_bColor, 5, 0 );
- QButtonGroup * bb = new QHButtonGroup( m_tab6 );
- bb->setFrameStyle(QFrame::NoFrame);
- m_bLeft = new QPushButton(bb);
+ TQButtonGroup * bb = new TQHButtonGroup( m_tab6 );
+ bb->setFrameStyle(TQFrame::NoFrame);
+ m_bLeft = new TQPushButton(bb);
m_bLeft->setPixmap( BarIcon( "borderleft" ) );
m_bLeft->setToggleButton( true );
- m_bRight = new QPushButton(bb);
+ m_bRight = new TQPushButton(bb);
m_bRight->setPixmap( BarIcon( "borderright" ) );
m_bRight->setToggleButton( true );
- m_bTop = new QPushButton(bb);
+ m_bTop = new TQPushButton(bb);
m_bTop->setPixmap( BarIcon( "bordertop" ) );
m_bTop->setToggleButton( true );
- m_bBottom = new QPushButton(bb);
+ m_bBottom = new TQPushButton(bb);
m_bBottom->setPixmap( BarIcon( "borderbottom" ) );
m_bBottom->setToggleButton( true );
grid->addWidget( bb, 6, 0 );
- connect( m_bLeft, SIGNAL( toggled( bool ) ), this, SLOT( brdLeftToggled( bool ) ) );
- connect( m_bRight, SIGNAL( toggled( bool ) ), this, SLOT( brdRightToggled( bool ) ) );
- connect( m_bTop, SIGNAL( toggled( bool ) ), this, SLOT( brdTopToggled( bool ) ) );
- connect( m_bBottom, SIGNAL( toggled( bool ) ), this, SLOT( brdBottomToggled( bool ) ) );
+ connect( m_bLeft, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( brdLeftToggled( bool ) ) );
+ connect( m_bRight, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( brdRightToggled( bool ) ) );
+ connect( m_bTop, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( brdTopToggled( bool ) ) );
+ connect( m_bBottom, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( brdBottomToggled( bool ) ) );
initBorderSettings();
- QGroupBox *grp=new QGroupBox( 0, Qt::Vertical, i18n( "Preview" ), m_tab6, "previewgrp" );
+ TQGroupBox *grp=new TQGroupBox( 0, Qt::Vertical, i18n( "Preview" ), m_tab6, "previewgrp" );
grid->addMultiCellWidget( grp , 0, 7, 1, 1 );
- grp->layout()->setSpacing(KDialog::spacingHint());
- grp->layout()->setMargin(KDialog::marginHint());
+ grp->tqlayout()->setSpacing(KDialog::spacingHint());
+ grp->tqlayout()->setMargin(KDialog::marginHint());
m_prev3 = new KoBorderPreview( grp );
- QVBoxLayout *lay1 = new QVBoxLayout( grp->layout() );
+ TQVBoxLayout *lay1 = new TQVBoxLayout( grp->tqlayout() );
lay1->addWidget(m_prev3);
- connect( m_prev3, SIGNAL( choosearea(QMouseEvent * ) ),
- this, SLOT( slotPressEvent(QMouseEvent *) ) );
+ connect( m_prev3, TQT_SIGNAL( choosearea(TQMouseEvent * ) ),
+ this, TQT_SLOT( slotPressEvent(TQMouseEvent *) ) );
// update the bordet preview widget
m_prev3->setLeftBorder( m_leftBorder );
@@ -1321,17 +1321,17 @@ void KWFrameDia::initBorderSettings()
#define OFFSETX 15
#define OFFSETY 7
#define Ko_SPACE 30
-void KWFrameDia::slotPressEvent(QMouseEvent *ev)
+void KWFrameDia::slotPressEvent(TQMouseEvent *ev)
{
- QRect r = m_prev3->contentsRect();
- QRect rect(r.x()+OFFSETX,r.y()+OFFSETY,r.width()-OFFSETX,r.y()+OFFSETY+Ko_SPACE);
- if(rect.contains(QPoint(ev->x(),ev->y())))
+ TQRect r = m_prev3->contentsRect();
+ TQRect rect(r.x()+OFFSETX,r.y()+OFFSETY,r.width()-OFFSETX,r.y()+OFFSETY+Ko_SPACE);
+ if(rect.tqcontains(TQPoint(ev->x(),ev->y())))
{
if( ( ((int)m_topBorder.penWidth() != m_cWidth->currentText().toInt()) ||(m_topBorder.color != m_bColor->color() )
||(m_topBorder.getStyle()!=KoBorder::getStyle(m_cStyle->currentText()) )) && m_bTop->isOn() )
{
m_topBorder.setPenWidth( m_cWidth->currentText().toInt() );
- m_topBorder.color = QColor( m_bColor->color() );
+ m_topBorder.color = TQColor( m_bColor->color() );
m_topBorder.setStyle(KoBorder::getStyle(m_cStyle->currentText()));
m_prev3->setTopBorder( m_topBorder );
}
@@ -1339,13 +1339,13 @@ void KWFrameDia::slotPressEvent(QMouseEvent *ev)
m_bTop->setOn(!m_bTop->isOn());
}
rect.setCoords(r.x()+OFFSETX,r.height()-OFFSETY-Ko_SPACE,r.width()-OFFSETX,r.height()-OFFSETY);
- if(rect.contains(QPoint(ev->x(),ev->y())))
+ if(rect.tqcontains(TQPoint(ev->x(),ev->y())))
{
if( ( ((int)m_bottomBorder.penWidth() != m_cWidth->currentText().toInt()) ||(m_bottomBorder.color != m_bColor->color() )
||(m_bottomBorder.getStyle()!=KoBorder::getStyle(m_cStyle->currentText()) )) && m_bBottom->isOn() )
{
m_bottomBorder.setPenWidth(m_cWidth->currentText().toInt());
- m_bottomBorder.color = QColor( m_bColor->color() );
+ m_bottomBorder.color = TQColor( m_bColor->color() );
m_bottomBorder.setStyle(KoBorder::getStyle(m_cStyle->currentText()));
m_prev3->setBottomBorder( m_bottomBorder );
}
@@ -1354,14 +1354,14 @@ void KWFrameDia::slotPressEvent(QMouseEvent *ev)
}
rect.setCoords(r.x()+OFFSETX,r.y()+OFFSETY,r.x()+Ko_SPACE+OFFSETX,r.height()-OFFSETY);
- if(rect.contains(QPoint(ev->x(),ev->y())))
+ if(rect.tqcontains(TQPoint(ev->x(),ev->y())))
{
if( ( ((int)m_leftBorder.penWidth() != m_cWidth->currentText().toInt()) ||(m_leftBorder.color != m_bColor->color() )
||(m_leftBorder.getStyle()!=KoBorder::getStyle(m_cStyle->currentText()) )) && m_bLeft->isOn() )
{
m_leftBorder.setPenWidth( m_cWidth->currentText().toInt());
- m_leftBorder.color = QColor( m_bColor->color() );
+ m_leftBorder.color = TQColor( m_bColor->color() );
m_leftBorder.setStyle(KoBorder::getStyle(m_cStyle->currentText()));
m_prev3->setLeftBorder( m_leftBorder );
}
@@ -1369,7 +1369,7 @@ void KWFrameDia::slotPressEvent(QMouseEvent *ev)
m_bLeft->setOn(!m_bLeft->isOn());
}
rect.setCoords(r.width()-OFFSETX-Ko_SPACE,r.y()+OFFSETY,r.width()-OFFSETX,r.height()-OFFSETY);
- if(rect.contains(QPoint(ev->x(),ev->y())))
+ if(rect.tqcontains(TQPoint(ev->x(),ev->y())))
{
if( ( ((int)m_rightBorder.penWidth() != m_cWidth->currentText().toInt()) ||(m_rightBorder.color != m_bColor->color() )
@@ -1446,7 +1446,7 @@ void KWFrameDia::slotProtectContentChanged( bool b )
void KWFrameDia::slotUpdateWidthForHeight(double height)
{
- if ( !m_cbAspectRatio || m_cbAspectRatio->state() != QButton::NoChange)
+ if ( !m_cbAspectRatio || m_cbAspectRatio->state() != TQButton::NoChange)
return;
if ( m_heightByWidthRatio == 0 )
return; // avoid DBZ
@@ -1456,7 +1456,7 @@ void KWFrameDia::slotUpdateWidthForHeight(double height)
void KWFrameDia::slotUpdateHeightForWidth( double width )
{
- if ( !m_cbAspectRatio || m_cbAspectRatio->state() != QButton::NoChange)
+ if ( !m_cbAspectRatio || m_cbAspectRatio->state() != TQButton::NoChange)
return;
m_sh->setValue( width * m_heightByWidthRatio );
}
@@ -1553,15 +1553,15 @@ void KWFrameDia::initBrush()
}
#endif
- QColor col = KWDocument::resolveBgColor( m_newBrushStyle.color(), 0 );
+ TQColor col = KWDocument::resolveBgColor( m_newBrushStyle.color(), 0 );
m_brushColor->setColor( col );
}
-QBrush KWFrameDia::frameBrushStyle() const
+TQBrush KWFrameDia::frameBrushStyle() const
{
- QBrush brush;
+ TQBrush brush;
- brush.setStyle( m_transparentCB->isChecked() ? NoBrush : SolidPattern );
+ brush.setStyle( m_transparentCB->isChecked() ? Qt::NoBrush : Qt::SolidPattern );
#if 0
switch ( brushStyle->currentItem() )
@@ -1627,7 +1627,7 @@ void KWFrameDia::updateBrushPreview()
} else {
brushPreview->show();
brushPreview->setBrush(frameBrushStyle());
- brushPreview->repaint(true);
+ brushPreview->tqrepaint(true);
}
}
#endif
@@ -1675,13 +1675,13 @@ void KWFrameDia::setFrameBehaviorInputOff() {
void KWFrameDia::enableSizeAndPosition()
{
- bool canMove = ( m_floating->state() == QButton::Off ) // can move if no frame is floating
- && ( m_protectSize->state() == QButton::Off ) // protects size too
+ bool canMove = ( m_floating->state() == TQButton::Off ) // can move if no frame is floating
+ && ( m_protectSize->state() == TQButton::Off ) // protects size too
&& !m_defaultFrameSetIncluded // those can't be moved
&& m_frame; // can't move if multiple frames selected
m_sx->setEnabled( canMove );
m_sy->setEnabled( canMove );
- bool canResize = ( m_protectSize->state() == QButton::Off ) // can resize if no frame is protect-size'd
+ bool canResize = ( m_protectSize->state() == TQButton::Off ) // can resize if no frame is protect-size'd
&& !m_defaultFrameSetIncluded; // those can't be resized
m_sw->setEnabled( canResize );
m_sh->setEnabled( canResize );
@@ -1770,7 +1770,7 @@ bool KWFrameDia::applyChanges()
frameCopy = m_frame->getCopy(); // keep a copy of the original (for undo/redo)
isNewFrame = m_frame->frameSet() == 0L; // true if we are creating a newframe
}
- QString name=QString::null;
+ TQString name=TQString();
KMacroCommand * macroCmd=0L;
if ( m_tab3 ) { // TAB Frameset
@@ -1784,9 +1784,9 @@ bool KWFrameDia::applyChanges()
if ( name.isEmpty() ) // Don't allow empty names
name = m_doc->generateFramesetName( i18n( "Text Frameset %1" ) );
KWFrameSet *fs = 0L;
- QListViewItem *frameSetItem = m_lFrameSList->selectedItem();
+ TQListViewItem *frameSetItem = m_lFrameSList->selectedItem();
if(frameSetItem) {
- QString str = frameSetItem->text( 0 );
+ TQString str = frameSetItem->text( 0 );
fs = m_doc->frameSet(str.toInt() - 1);
}
if(m_rNewFrameset->isChecked()) { // create a new FS.
@@ -1809,7 +1809,7 @@ bool KWFrameDia::applyChanges()
if(!macroCmd)
macroCmd = new KMacroCommand( i18n("Rename Frameset") );
// Rename frameset
- typedef KoSetPropCommand<QString, KWFrameSet, &KWFrameSet::setName> FramesetNameCommand;
+ typedef KoSetPropCommand<TQString, KWFrameSet, &KWFrameSet::setName> FramesetNameCommand;
FramesetNameCommand* cmd = new FramesetNameCommand( fs, i18n( "Rename Frameset" ), fs->name(), frameSetItem->text( 1 ) );
macroCmd->addCommand(cmd);
cmd->execute();
@@ -1849,7 +1849,7 @@ bool KWFrameDia::applyChanges()
}
if(m_rNewFrameset->isChecked() || m_rExistingFrameset->isChecked()) {
// check if new name is unique
- for (QPtrListIterator<KWFrameSet> fit = m_doc->framesetsIterator(); fit.current() ; ++fit ) {
+ for (TQPtrListIterator<KWFrameSet> fit = m_doc->framesetsIterator(); fit.current() ; ++fit ) {
if ( !fit.current()->isDeleted() && // Allow to reuse a deleted frameset's name
fs != fit.current() && fit.current()->name() == name) {
if ( m_rNewFrameset->isChecked() )
@@ -1857,11 +1857,11 @@ bool KWFrameDia::applyChanges()
i18n( "A new frameset with the name '%1' "
"can not be made because a frameset with that name "
"already exists. Please enter another name or select "
- "an existing frameset from the list.").arg(name));
+ "an existing frameset from the list.").tqarg(name));
else
KMessageBox::sorry( this,
i18n( "A frameset with the name '%1' "
- "already exists. Please enter another name." ).arg(name) );
+ "already exists. Please enter another name." ).tqarg(name) );
m_eFrameSetName->setText(m_oldFrameSetName);
return false;
}
@@ -1872,7 +1872,7 @@ bool KWFrameDia::applyChanges()
// Copy
if(m_frame)
m_frame->setCopy( m_cbCopy->isChecked() );
- else if(m_cbCopy->state() != QButton::NoChange) {
+ else if(m_cbCopy->state() != TQButton::NoChange) {
for(KWFrame *f=m_allFrames.first();f; f=m_allFrames.next()) {
if(f == f->frameSet()->frame(0)) continue; // skip first frame of any frameset.
f->setCopy( m_cbCopy->isChecked() );
@@ -1919,7 +1919,7 @@ bool KWFrameDia::applyChanges()
}
else
{
- if ( m_cbProtectContent->state() != QButton::NoChange)
+ if ( m_cbProtectContent->state() != TQButton::NoChange)
{
for(KWFrame *f=m_allFrames.first();f; f=m_allFrames.next())
{
@@ -1975,13 +1975,13 @@ bool KWFrameDia::applyChanges()
{
if(!macroCmd)
macroCmd = new KMacroCommand( i18n("Frame Properties") );
- FramesetSetKeepAspectRatioCommand* cmd = new FramesetSetKeepAspectRatioCommand( frm, QString::null, frm->keepAspectRatio(), m_cbAspectRatio->isChecked() );
+ FramesetSetKeepAspectRatioCommand* cmd = new FramesetSetKeepAspectRatioCommand( frm, TQString(), frm->keepAspectRatio(), m_cbAspectRatio->isChecked() );
cmd->execute();
macroCmd->addCommand(cmd);
}
- } else if(m_cbAspectRatio->state() != QButton::NoChange) {
+ } else if(m_cbAspectRatio->state() != TQButton::NoChange) {
for(KWFrame *f=m_allFrames.first();f; f=m_allFrames.next()) {
KWPictureFrameSet *fs = dynamic_cast<KWPictureFrameSet *> (f->frameSet());
if(fs) {
@@ -1989,7 +1989,7 @@ bool KWFrameDia::applyChanges()
{
if(!macroCmd)
macroCmd = new KMacroCommand( i18n("Frame Properties") );
- FramesetSetKeepAspectRatioCommand* cmd = new FramesetSetKeepAspectRatioCommand( fs, QString::null, fs->keepAspectRatio(), m_cbAspectRatio->isChecked() );
+ FramesetSetKeepAspectRatioCommand* cmd = new FramesetSetKeepAspectRatioCommand( fs, TQString(), fs->keepAspectRatio(), m_cbAspectRatio->isChecked() );
cmd->execute();
@@ -2051,7 +2051,7 @@ bool KWFrameDia::applyChanges()
f->setRunAroundGap( runAroundLeft, runAroundRight, runAroundTop, runAroundBottom );
}
if(m_tab5) { // Tab Background fill/color
- QBrush tmpBrush=frameBrushStyle();
+ TQBrush tmpBrush=frameBrushStyle();
if(m_frame) {
if ( tmpBrush != KWDocument::resolveBgBrush( m_frame->backgroundColor() ) ) {
m_frame->setBackgroundColor(tmpBrush);
@@ -2073,12 +2073,12 @@ bool KWFrameDia::applyChanges()
double uRight = 0.0;
if(m_tab4) { // TAB Geometry
if ( m_frame ) {
- px = QMAX( 0, m_sx->value() );
+ px = TQMAX( 0, m_sx->value() );
int pageNum = m_doc->pageManager()->pageNumber(m_frame);
- py = QMAX( 0, m_sy->value() ) + m_doc->pageManager()->topOfPage(pageNum);
+ py = TQMAX( 0, m_sy->value() ) + m_doc->pageManager()->topOfPage(pageNum);
}
- pw = QMAX( m_sw->value(), 0 );
- ph = QMAX( m_sh->value(), 0 );
+ pw = TQMAX( m_sw->value(), 0 );
+ ph = TQMAX( m_sh->value(), 0 );
if ( m_paddingConfigWidget )
{
uLeft = m_paddingConfigWidget->leftValue();
@@ -2099,7 +2099,7 @@ bool KWFrameDia::applyChanges()
KWTextFrameSet *frameSet = new KWTextFrameSet( m_doc, name );
frameSet->addFrame( m_frame );
KWPage *page = m_doc->pageManager()->page(m_frame);
- if( page->rect().contains(rect) ) {
+ if( page->rect().tqcontains(rect) ) {
m_frame->setRect( px, py, pw, ph );
//don't change margins when frame is protected.
if ( m_paddingConfigWidget && ( !m_tab1 || (m_tab1 && m_cbProtectContent && !m_cbProtectContent->isChecked())) )
@@ -2129,7 +2129,7 @@ bool KWFrameDia::applyChanges()
if(!macroCmd)
macroCmd = new KMacroCommand( i18n("Frame Properties") );
- KWFramePropertiesCommand*cmd = new KWFramePropertiesCommand( QString::null, frameCopy, m_frame );
+ KWFramePropertiesCommand*cmd = new KWFramePropertiesCommand( TQString(), frameCopy, m_frame );
macroCmd->addCommand(cmd);
frameCopy = 0L;
} else
@@ -2142,51 +2142,51 @@ bool KWFrameDia::applyChanges()
while(f) {
// The floating attribute applies to the whole frameset...
KWFrameSet * fs = f->frameSet();
- KWFrameSet * parentFs = fs->groupmanager() ? fs->groupmanager() : fs;
+ KWFrameSet * tqparentFs = fs->groupmanager() ? fs->groupmanager() : fs;
// Floating
if ( m_floating->isChecked() &&
- m_floating->state() != QButton::NoChange &&
- !parentFs->isFloating() )
+ m_floating->state() != TQButton::NoChange &&
+ !tqparentFs->isFloating() )
{
if(!macroCmd)
macroCmd = new KMacroCommand( i18n("Make Frameset Inline") );
- QValueList<FrameIndex> frameindexList;
- QValueList<FrameMoveStruct> frameindexMove;
+ TQValueList<FrameIndex> frameindexList;
+ TQValueList<FrameMoveStruct> frameindexMove;
KoPoint oldPos = f->topLeft();
// turn non-floating frame into floating frame
- KWFrameSetInlineCommand *cmd = new KWFrameSetInlineCommand( QString::null, parentFs, true );
+ KWFrameSetInlineCommand *cmd = new KWFrameSetInlineCommand( TQString(), tqparentFs, true );
cmd->execute();
frameindexList.append( FrameIndex( f ) );
frameindexMove.append( FrameMoveStruct( oldPos, f->topLeft() ) );
- KWFrameMoveCommand *cmdMoveFrame = new KWFrameMoveCommand( QString::null, frameindexList, frameindexMove );
+ KWFrameMoveCommand *cmdMoveFrame = new KWFrameMoveCommand( TQString(), frameindexList, frameindexMove );
macroCmd->addCommand(cmdMoveFrame);
macroCmd->addCommand(cmd);
}
else if ( !m_floating->isChecked() &&
- m_floating->state() != QButton::NoChange &&
- parentFs->isFloating() )
+ m_floating->state() != TQButton::NoChange &&
+ tqparentFs->isFloating() )
{
if(!macroCmd)
macroCmd = new KMacroCommand( i18n("Make Frameset Non-Inline") );
// turn floating-frame into non-floating frame
- KWFrameSetInlineCommand *cmd = new KWFrameSetInlineCommand( QString::null, parentFs, false );
+ KWFrameSetInlineCommand *cmd = new KWFrameSetInlineCommand( TQString(), tqparentFs, false );
macroCmd->addCommand(cmd);
cmd->execute();
}
if ( fs->isProtectSize() != m_protectSize->isChecked()
- && m_protectSize->state() != QButton::NoChange )
+ && m_protectSize->state() != TQButton::NoChange )
{
if(!macroCmd)
macroCmd = new KMacroCommand( i18n("Protect Size") );
typedef KoSetBasicPropCommand<bool, KWFrameSet, &KWFrameSet::setProtectSize> FramesetSetProtectSizeCommand;
- FramesetSetProtectSizeCommand* cmd = new FramesetSetProtectSizeCommand( fs, QString::null, fs->isProtectSize(), m_protectSize->isChecked() );
+ FramesetSetProtectSizeCommand* cmd = new FramesetSetProtectSizeCommand( fs, TQString(), fs->isProtectSize(), m_protectSize->isChecked() );
macroCmd->addCommand(cmd);
cmd->execute();
m_frameSetProtectedSize = m_protectSize->isChecked();
@@ -2198,7 +2198,7 @@ bool KWFrameDia::applyChanges()
//kdDebug() << "New geom: " << m_sx->text().toDouble() << ", " << m_sy->text().toDouble()
// << " " << m_sw->text().toDouble() << "x" << m_sh->text().toDouble() << endl;
- if( m_doc->pageManager()->page(f)->rect().contains(rect) )
+ if( m_doc->pageManager()->page(f)->rect().tqcontains(rect) )
{
FrameIndex index( f );
KoRect initialRect = f->normalize();
@@ -2251,8 +2251,8 @@ bool KWFrameDia::applyChanges()
if ( f->leftBorder() != m_leftBorder )
{
kdDebug() << "Changing borders!" << endl;
- QPtrList<KWFrameBorderCommand::FrameBorderTypeStruct> tmpBorderList;
- QPtrList<FrameIndex> frameindexList;
+ TQPtrList<KWFrameBorderCommand::FrameBorderTypeStruct> tmpBorderList;
+ TQPtrList<FrameIndex> frameindexList;
f = KWFrameSet::settingsFrame( f );
FrameIndex *index = new FrameIndex( f );
KWFrameBorderCommand::FrameBorderTypeStruct *tmp =new KWFrameBorderCommand::FrameBorderTypeStruct;
@@ -2268,8 +2268,8 @@ bool KWFrameDia::applyChanges()
}
if ( f->rightBorder() != m_rightBorder )
{
- QPtrList<KWFrameBorderCommand::FrameBorderTypeStruct> tmpBorderList;
- QPtrList<FrameIndex> frameindexList;
+ TQPtrList<KWFrameBorderCommand::FrameBorderTypeStruct> tmpBorderList;
+ TQPtrList<FrameIndex> frameindexList;
f = KWFrameSet::settingsFrame( f );
FrameIndex *index = new FrameIndex( f );
KWFrameBorderCommand::FrameBorderTypeStruct *tmp =new KWFrameBorderCommand::FrameBorderTypeStruct;
@@ -2285,8 +2285,8 @@ bool KWFrameDia::applyChanges()
}
if ( f->topBorder() != m_topBorder )
{
- QPtrList<KWFrameBorderCommand::FrameBorderTypeStruct> tmpBorderList;
- QPtrList<FrameIndex> frameindexList;
+ TQPtrList<KWFrameBorderCommand::FrameBorderTypeStruct> tmpBorderList;
+ TQPtrList<FrameIndex> frameindexList;
f = KWFrameSet::settingsFrame( f );
FrameIndex *index = new FrameIndex( f );
KWFrameBorderCommand::FrameBorderTypeStruct *tmp =new KWFrameBorderCommand::FrameBorderTypeStruct;
@@ -2302,8 +2302,8 @@ bool KWFrameDia::applyChanges()
}
if ( f->bottomBorder() != m_bottomBorder )
{
- QPtrList<KWFrameBorderCommand::FrameBorderTypeStruct> tmpBorderList;
- QPtrList<FrameIndex> frameindexList;
+ TQPtrList<KWFrameBorderCommand::FrameBorderTypeStruct> tmpBorderList;
+ TQPtrList<FrameIndex> frameindexList;
f = KWFrameSet::settingsFrame( f );
FrameIndex *index = new FrameIndex( f );
KWFrameBorderCommand::FrameBorderTypeStruct *tmp =new KWFrameBorderCommand::FrameBorderTypeStruct;
@@ -2330,8 +2330,8 @@ bool KWFrameDia::applyChanges()
void KWFrameDia::updateFrames()
{
m_doc->updateAllFrames();
- m_doc->layout();
- m_doc->repaintAllViews();
+ m_doc->tqlayout();
+ m_doc->tqrepaintAllViews();
}
void KWFrameDia::slotApply()
@@ -2351,7 +2351,7 @@ void KWFrameDia::slotOk()
}
}
-void KWFrameDia::connectListSelected( QListViewItem *item )
+void KWFrameDia::connectListSelected( TQListViewItem *item )
{
/* belongs to TAB3, is activated when the user selects another frameset from the list */
if ( !item )
@@ -2374,7 +2374,7 @@ bool KWFrameDia::mayDeleteFrameSet(KWTextFrameSet *fs) {
i18n( "You are about to reconnect the last frame of the "
"frameset '%1'. "
"The contents of this frameset will be deleted.\n"
- "Are you sure you want to do that?").arg(fs->name()),
+ "Are you sure you want to do that?").tqarg(fs->name()),
i18n("Reconnect Frame"), i18n("&Reconnect"));
if (result != KMessageBox::Continue)
return false;
@@ -2382,61 +2382,61 @@ bool KWFrameDia::mayDeleteFrameSet(KWTextFrameSet *fs) {
return true;
}
-KWFourSideConfigWidget::KWFourSideConfigWidget( KWDocument* doc, const QString& title,
- QWidget* parent, const char* name )
- : QGroupBox( title, parent, name ),
+KWFourSideConfigWidget::KWFourSideConfigWidget( KWDocument* doc, const TQString& title,
+ TQWidget* tqparent, const char* name )
+ : TQGroupBox( title, tqparent, name ),
m_doc( doc ),
m_changed( false ), m_noSignal( false )
{
- QGroupBox *grp2 = this;
- QGridLayout* mGrid = new QGridLayout( grp2, 4, 4, KDialog::marginHint(), KDialog::spacingHint() );
+ TQGroupBox *grp2 = this;
+ TQGridLayout* mGrid = new TQGridLayout( grp2, 4, 4, KDialog::marginHint(), KDialog::spacingHint() );
- m_synchronize=new QCheckBox( i18n("Synchronize changes"), grp2 );
- QWhatsThis::add(m_synchronize, i18n("<b>Synchronize changes:</b><br/>"
+ m_synchronize=new TQCheckBox( i18n("Synchronize changes"), grp2 );
+ TQWhatsThis::add(m_synchronize, i18n("<b>Synchronize changes:</b><br/>"
"When this is checked any change in margins will be used for all directions."));
mGrid->addMultiCellWidget( m_synchronize, 1, 1, 0, 1 );
- QLabel* lml = new QLabel( i18n( "Left:" ), grp2 );
- //lml->resize( lml->sizeHint() );
+ TQLabel* lml = new TQLabel( i18n( "Left:" ), grp2 );
+ //lml->resize( lml->tqsizeHint() );
mGrid->addWidget( lml, 2, 0 );
m_inputLeft = new KoUnitDoubleSpinBox( grp2, 0, 9999, 1, 0.0, m_doc->unit() );
mGrid->addWidget( m_inputLeft, 2, 1 );
- QLabel* lmt = new QLabel( i18n( "Top:" ), grp2 );
- //lmt->resize( lmt->sizeHint() );
+ TQLabel* lmt = new TQLabel( i18n( "Top:" ), grp2 );
+ //lmt->resize( lmt->tqsizeHint() );
mGrid->addWidget( lmt, 2, 2 );
m_inputTop = new KoUnitDoubleSpinBox( grp2, 0, 9999, 1, 0.0, m_doc->unit() );
- //m_inputTop->resize( m_inputTop->sizeHint() );
+ //m_inputTop->resize( m_inputTop->tqsizeHint() );
mGrid->addWidget( m_inputTop, 2, 3 );
- QLabel* lmr = new QLabel( i18n( "Right:" ), grp2 );
- //lmr->resize( lmr->sizeHint() );
+ TQLabel* lmr = new TQLabel( i18n( "Right:" ), grp2 );
+ //lmr->resize( lmr->tqsizeHint() );
mGrid->addWidget( lmr, 3, 0 );
m_inputRight = new KoUnitDoubleSpinBox( grp2, 0, 9999, 1, 0.0, m_doc->unit() );
- //m_inputRight->resize( m_inputRight->sizeHint() );
+ //m_inputRight->resize( m_inputRight->tqsizeHint() );
mGrid->addWidget( m_inputRight, 3, 1 );
- QLabel* lmb = new QLabel( i18n( "Bottom:" ), grp2 );
- //lmb->resize( lmb->sizeHint() );
+ TQLabel* lmb = new TQLabel( i18n( "Bottom:" ), grp2 );
+ //lmb->resize( lmb->tqsizeHint() );
mGrid->addWidget( lmb, 3, 2 );
m_inputBottom = new KoUnitDoubleSpinBox( grp2, 0, 9999, 1, 0.0, m_doc->unit() );
- //m_inputBottom->resize( m_inputBottom->sizeHint() );
+ //m_inputBottom->resize( m_inputBottom->tqsizeHint() );
mGrid->addWidget( m_inputBottom, 3, 3 );
mGrid->setRowSpacing( 0, KDialog::spacingHint() + 5 );
- connect( m_inputLeft, SIGNAL( valueChanged(double)), this, SLOT( slotValueChanged( double )));
- connect( m_inputRight, SIGNAL( valueChanged(double)), this, SLOT( slotValueChanged( double )));
- connect( m_inputTop, SIGNAL( valueChanged(double)), this, SLOT( slotValueChanged( double )));
- connect( m_inputBottom, SIGNAL( valueChanged(double)), this, SLOT( slotValueChanged( double )));
+ connect( m_inputLeft, TQT_SIGNAL( valueChanged(double)), this, TQT_SLOT( slotValueChanged( double )));
+ connect( m_inputRight, TQT_SIGNAL( valueChanged(double)), this, TQT_SLOT( slotValueChanged( double )));
+ connect( m_inputTop, TQT_SIGNAL( valueChanged(double)), this, TQT_SLOT( slotValueChanged( double )));
+ connect( m_inputBottom, TQT_SIGNAL( valueChanged(double)), this, TQT_SLOT( slotValueChanged( double )));
}
// Called right after the ctor, so m_synchronize can't be checked