summaryrefslogtreecommitdiffstats
path: root/src/projects/k3bdatapropertiesdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/projects/k3bdatapropertiesdialog.cpp')
-rw-r--r--src/projects/k3bdatapropertiesdialog.cpp118
1 files changed, 59 insertions, 59 deletions
diff --git a/src/projects/k3bdatapropertiesdialog.cpp b/src/projects/k3bdatapropertiesdialog.cpp
index 39fec61..7cc8549 100644
--- a/src/projects/k3bdatapropertiesdialog.cpp
+++ b/src/projects/k3bdatapropertiesdialog.cpp
@@ -21,15 +21,15 @@
#include <kcutlabel.h>
#include <k3bvalidators.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qframe.h>
-#include <qcheckbox.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qtabwidget.h>
-#include <qvalidator.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqframe.h>
+#include <tqcheckbox.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqtabwidget.h>
+#include <tqvalidator.h>
#include <klineedit.h>
#include <kiconloader.h>
@@ -41,46 +41,46 @@
-K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, QWidget* parent, const char* name )
- : KDialogBase( Plain, i18n("File Properties"), Ok|Cancel, Ok, parent, name, true, false )
+K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, TQWidget* tqparent, const char* name )
+ : KDialogBase( Plain, i18n("File Properties"), Ok|Cancel, Ok, tqparent, name, true, false )
{
m_dataItem = dataItem;
- QLabel* labelMimeType = new QLabel( plainPage() );
- QLabel* extraInfoLabel = new QLabel( plainPage() );
+ TQLabel* labelMimeType = new TQLabel( plainPage() );
+ TQLabel* extraInfoLabel = new TQLabel( plainPage() );
m_editName = new KLineEdit( plainPage() );
- m_labelType = new QLabel( plainPage() );
+ m_labelType = new TQLabel( plainPage() );
m_labelLocation = new KCutLabel( plainPage() );
- m_labelSize = new QLabel( plainPage() );
- m_labelBlocks = new QLabel( plainPage() );
+ m_labelSize = new TQLabel( plainPage() );
+ m_labelBlocks = new TQLabel( plainPage() );
m_labelLocalName = new KCutLabel( plainPage() );
m_labelLocalLocation = new KCutLabel( plainPage() );
- QGridLayout* grid = new QGridLayout( plainPage() );
+ TQGridLayout* grid = new TQGridLayout( plainPage() );
grid->setSpacing( spacingHint() );
grid->setMargin( marginHint() );
grid->addWidget( labelMimeType, 0, 0 );
grid->addWidget( m_editName, 0, 2 );
- QFrame* line = new QFrame( plainPage() );
- line->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ TQFrame* line = new TQFrame( plainPage() );
+ line->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
grid->addMultiCellWidget( line, 1, 1, 0, 2 );
- grid->addWidget( new QLabel( i18n("Type:"), plainPage() ), 2, 0 );
- grid->addWidget( new QLabel( i18n("Location:"), plainPage() ), 4, 0 );
- grid->addWidget( new QLabel( i18n("Size:"), plainPage() ), 5, 0 );
- grid->addWidget( new QLabel( i18n("Used blocks:"), plainPage() ), 6, 0 );
+ grid->addWidget( new TQLabel( i18n("Type:"), plainPage() ), 2, 0 );
+ grid->addWidget( new TQLabel( i18n("Location:"), plainPage() ), 4, 0 );
+ grid->addWidget( new TQLabel( i18n("Size:"), plainPage() ), 5, 0 );
+ grid->addWidget( new TQLabel( i18n("Used blocks:"), plainPage() ), 6, 0 );
grid->addWidget( m_labelType, 2, 2 );
grid->addWidget( extraInfoLabel, 3, 2 );
grid->addWidget( m_labelLocation, 4, 2 );
grid->addWidget( m_labelSize, 5, 2 );
grid->addWidget( m_labelBlocks, 6, 2 );
- line = new QFrame( plainPage() );
- line->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ line = new TQFrame( plainPage() );
+ line->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
grid->addMultiCellWidget( line, 7, 7, 0, 2 );
- QLabel* label1 = new QLabel( i18n("Local name:"), plainPage() );
+ TQLabel* label1 = new TQLabel( i18n("Local name:"), plainPage() );
grid->addWidget( label1, 8, 0 );
- QLabel* label2 = new QLabel( i18n("Local location:"), plainPage() );
+ TQLabel* label2 = new TQLabel( i18n("Local location:"), plainPage() );
grid->addWidget( label2, 9, 0 );
grid->addWidget( m_labelLocalName, 8, 2 );
grid->addWidget( m_labelLocalLocation, 9, 2 );
@@ -94,12 +94,12 @@ K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, QWidget
KFileItem kFileItem( KFileItem::Unknown, KFileItem::Unknown, KURL::fromPathOrURL(fileItem->localPath()) );
labelMimeType->setPixmap( kFileItem.pixmap(KIcon::SizeLarge) );
if( fileItem->isSymLink() )
- m_labelType->setText( i18n("Link to %1").arg(kFileItem.mimeComment()) );
+ m_labelType->setText( i18n("Link to %1").tqarg(kFileItem.mimeComment()) );
else
m_labelType->setText( kFileItem.mimeComment() );
m_labelLocalName->setText( kFileItem.name() );
- QString localLocation = kFileItem.url().path(-1);
- localLocation.truncate( localLocation.findRev('/') );
+ TQString localLocation = kFileItem.url().path(-1);
+ localLocation.truncate( localLocation.tqfindRev('/') );
m_labelLocalLocation->setText( localLocation );
m_labelSize->setText( KIO::convertSize(dataItem->size()) );
}
@@ -127,49 +127,49 @@ K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, QWidget
}
m_editName->setText( dataItem->k3bName() );
- m_labelBlocks->setText( QString::number(dataItem->blocks().lba()) );
+ m_labelBlocks->setText( TQString::number(dataItem->blocks().lba()) );
- QString location = "/" + dataItem->k3bPath();
+ TQString location = "/" + dataItem->k3bPath();
if( location[location.length()-1] == '/' )
location.truncate( location.length()-1 );
- location.truncate( location.findRev('/') );
+ location.truncate( location.tqfindRev('/') );
if( location.isEmpty() )
location = "/";
m_labelLocation->setText( location );
- extraInfoLabel->setText( QString( "(%1)" ).arg(dataItem->extraInfo()) );
+ extraInfoLabel->setText( TQString( "(%1)" ).tqarg(dataItem->extraInfo()) );
if( dataItem->extraInfo().isEmpty() )
extraInfoLabel->hide();
// OPTIONS
// /////////////////////////////////////////////////
- QTabWidget* optionTab = new QTabWidget( plainPage() );
- line = new QFrame( plainPage() );
- line->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ TQTabWidget* optionTab = new TQTabWidget( plainPage() );
+ line = new TQFrame( plainPage() );
+ line->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
grid->addMultiCellWidget( line, 10, 10, 0, 2 );
grid->addMultiCellWidget( optionTab, 12, 12, 0, 2 );
grid->setRowStretch( 11, 1 );
- QWidget* hideBox = new QWidget( optionTab );
- QGridLayout* hideBoxGrid = new QGridLayout( hideBox );
+ TQWidget* hideBox = new TQWidget( optionTab );
+ TQGridLayout* hideBoxGrid = new TQGridLayout( hideBox );
hideBoxGrid->setSpacing( spacingHint() );
hideBoxGrid->setMargin( marginHint() );
- m_checkHideOnRockRidge = new QCheckBox( i18n("Hide on Rockridge"), hideBox );
- m_checkHideOnJoliet = new QCheckBox( i18n("Hide on Joliet"), hideBox );
+ m_checkHideOnRockRidge = new TQCheckBox( i18n("Hide on Rockridge"), hideBox );
+ m_checkHideOnJoliet = new TQCheckBox( i18n("Hide on Joliet"), hideBox );
hideBoxGrid->addWidget( m_checkHideOnRockRidge, 0, 0 );
hideBoxGrid->addWidget( m_checkHideOnJoliet, 1, 0 );
hideBoxGrid->setRowStretch( 2, 1 );
// grid->addMultiCellWidget( m_checkHideOnRockRidge, 10, 10, 0, 2 );
// grid->addMultiCellWidget( m_checkHideOnJoliet, 11, 11, 0, 2 );
- QWidget* sortingBox = new QWidget( optionTab );
- QGridLayout* sortingBoxGrid = new QGridLayout( sortingBox );
+ TQWidget* sortingBox = new TQWidget( optionTab );
+ TQGridLayout* sortingBoxGrid = new TQGridLayout( sortingBox );
sortingBoxGrid->setSpacing( spacingHint() );
sortingBoxGrid->setMargin( marginHint() );
m_editSortWeight = new KLineEdit( sortingBox );
- m_editSortWeight->setValidator( new QIntValidator( -2147483647, 2147483647, m_editSortWeight ) );
- m_editSortWeight->setAlignment( Qt::AlignRight );
- sortingBoxGrid->addWidget( new QLabel( i18n("Sort weight:"), sortingBox ), 0, 0 );
+ m_editSortWeight->setValidator( new TQIntValidator( -2147483647, 2147483647, TQT_TQOBJECT(m_editSortWeight) ) );
+ m_editSortWeight->tqsetAlignment( TQt::AlignRight );
+ sortingBoxGrid->addWidget( new TQLabel( i18n("Sort weight:"), sortingBox ), 0, 0 );
sortingBoxGrid->addWidget( m_editSortWeight, 0, 1 );
sortingBoxGrid->setColStretch( 1, 1 );
sortingBoxGrid->setRowStretch( 1, 1 );
@@ -180,12 +180,12 @@ K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, QWidget
m_checkHideOnJoliet->setChecked( dataItem->hideOnJoliet() );
m_checkHideOnRockRidge->setChecked( dataItem->hideOnRockRidge() );
- m_editSortWeight->setText( QString::number(dataItem->sortWeight()) );
+ m_editSortWeight->setText( TQString::number(dataItem->sortWeight()) );
- // if the parent is hidden the value cannot be changed (see K3bDataItem::setHide...)
- if( dataItem->parent() ) {
- m_checkHideOnRockRidge->setDisabled( dataItem->parent()->hideOnRockRidge() );
- m_checkHideOnJoliet->setDisabled( dataItem->parent()->hideOnJoliet() );
+ // if the tqparent is hidden the value cannot be changed (see K3bDataItem::setHide...)
+ if( dataItem->tqparent() ) {
+ m_checkHideOnRockRidge->setDisabled( dataItem->tqparent()->hideOnRockRidge() );
+ m_checkHideOnJoliet->setDisabled( dataItem->tqparent()->hideOnJoliet() );
}
if( !dataItem->isHideable() ) {
@@ -194,35 +194,35 @@ K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, QWidget
// line->hide();
}
- QToolTip::add( m_checkHideOnRockRidge, i18n("Hide this file in the RockRidge filesystem") );
- QToolTip::add( m_checkHideOnJoliet, i18n("Hide this file in the Joliet filesystem") );
- QToolTip::add( m_editSortWeight, i18n("Modify the physical sorting") );
- QWhatsThis::add( m_checkHideOnRockRidge, i18n("<p>If this option is checked, the file or directory "
+ TQToolTip::add( m_checkHideOnRockRidge, i18n("Hide this file in the RockRidge filesystem") );
+ TQToolTip::add( m_checkHideOnJoliet, i18n("Hide this file in the Joliet filesystem") );
+ TQToolTip::add( m_editSortWeight, i18n("Modify the physical sorting") );
+ TQWhatsThis::add( m_checkHideOnRockRidge, i18n("<p>If this option is checked, the file or directory "
"(and its entire contents) will be hidden on the "
"ISO9660 and RockRidge filesystem.</p>"
"<p>This is useful, for example, for having different README "
"files for RockRidge and Joliet, which can be managed "
"by hiding README.joliet on RockRidge and README.rr "
"on the Joliet filesystem.</p>") );
- QWhatsThis::add( m_checkHideOnJoliet, i18n("<p>If this option is checked, the file or directory "
+ TQWhatsThis::add( m_checkHideOnJoliet, i18n("<p>If this option is checked, the file or directory "
"(and its entire contents) will be hidden on the "
"Joliet filesystem.</p>"
"<p>This is useful, for example, for having different README "
"files for RockRidge and Joliet, which can be managed "
"by hiding README.joliet on RockRidge and README.rr "
"on the Joliet filesystem.</p>") );
- QWhatsThis::add( m_editSortWeight, i18n("<p>This value modifies the physical sort order of the files "
+ TQWhatsThis::add( m_editSortWeight, i18n("<p>This value modifies the physical sort order of the files "
"in the ISO9660 filesystem. A higher weighting means that the "
"file will be located closer to the beginning of the image "
"(and the disk)."
- "<p>This option is useful in order to optimize the data layout "
+ "<p>This option is useful in order to optimize the data tqlayout "
"on a CD/DVD."
"<p><b>Caution:</b> This does not sort the order of the file "
"names that appear in the ISO9660 directory."
"It sorts the order in which the file data is "
"written to the image.") );
- m_editName->setValidator( K3bValidators::iso9660Validator( false, this ) );
+ m_editName->setValidator( K3bValidators::iso9660Validator( false, TQT_TQOBJECT(this) ) );
m_editName->setReadOnly( !dataItem->isRenameable() );
m_editName->setFocus();
}