@ -41,18 +41,18 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
tagEngine = _tagEngine ;
tagEngine = _tagEngine ;
// create an icon loader object for loading icons
// create an icon loader object for loading icons
KIconLoader* iconLoader = new K IconLoader( ) ;
TDEIconLoader* iconLoader = new TDE IconLoader( ) ;
resize ( 400 , 350 ) ;
resize ( 400 , 350 ) ;
// TODO move the dialog beside the main window
// TODO move the dialog beside the main window
setIcon ( iconLoader - > loadIcon ( " view_text " , K Icon: : Small ) ) ;
setIcon ( iconLoader - > loadIcon ( " view_text " , TDE Icon: : Small ) ) ;
// setButtonGuiItem( User2, KGuiItem(i18n("Previous"),iconLoader->loadIconSet("previous", K Icon::Small,16,true/*KDE3.5,false*/)) );
// setButtonGuiItem( User2, KGuiItem(i18n("Previous"),iconLoader->loadIconSet("previous", TDE Icon::Small,16,true/*KDE3.5,false*/)) );
// setButtonGuiItem( User1, KGuiItem(i18n("Next"),iconLoader->loadIconSet("next", K Icon::Small,16,true/*KDE3.5,false*/)) );
// setButtonGuiItem( User1, KGuiItem(i18n("Next"),iconLoader->loadIconSet("next", TDE Icon::Small,16,true/*KDE3.5,false*/)) );
setButtonGuiItem ( Ok , KGuiItem ( i18n ( " Close " ) , iconLoader - > loadIconSet ( " exit " , K Icon: : Small , 16 , true /*KDE3.5,false*/ ) ) ) ;
setButtonGuiItem ( Ok , KGuiItem ( i18n ( " Close " ) , iconLoader - > loadIconSet ( " exit " , TDE Icon: : Small , 16 , true /*KDE3.5,false*/ ) ) ) ;
//// options page ////
//// options page ////
conversionOptions = addPage ( i18n ( " Conversion " ) , i18n ( " Conversion options " ) , iconLoader - > loadIcon ( " soundkonverter " , K Icon: : Desktop ) ) ;
conversionOptions = addPage ( i18n ( " Conversion " ) , i18n ( " Conversion options " ) , iconLoader - > loadIcon ( " soundkonverter " , TDE Icon: : Desktop ) ) ;
// the grid for all widgets in the main window
// the grid for all widgets in the main window
TQGridLayout * conversionOptionsGridLayout = new TQGridLayout ( conversionOptions , 1 , 1 , 0 , 6 , " conversionOptionsGridLayout " ) ;
TQGridLayout * conversionOptionsGridLayout = new TQGridLayout ( conversionOptions , 1 , 1 , 0 , 6 , " conversionOptionsGridLayout " ) ;
// generate the options input area
// generate the options input area
@ -76,7 +76,7 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
) ;
) ;
//// tags page ////
//// tags page ////
tags = addPage ( i18n ( " Tags " ) , i18n ( " Tags " ) , iconLoader - > loadIcon ( " view_text " , K Icon: : Desktop ) ) ;
tags = addPage ( i18n ( " Tags " ) , i18n ( " Tags " ) , iconLoader - > loadIcon ( " view_text " , TDE Icon: : Desktop ) ) ;
// the grid for all widgets in the main window
// the grid for all widgets in the main window
TQGridLayout * tagsGridLayout = new TQGridLayout ( tags , 1 , 1 , 0 , 6 , " tagsGridLayout " ) ;
TQGridLayout * tagsGridLayout = new TQGridLayout ( tags , 1 , 1 , 0 , 6 , " tagsGridLayout " ) ;
@ -93,7 +93,7 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
this , TQT_SLOT ( titleChanged ( const TQString & ) )
this , TQT_SLOT ( titleChanged ( const TQString & ) )
) ;
) ;
pTitleEdit = new KPushButton ( " " , tags , " pTitleEdit " ) ;
pTitleEdit = new KPushButton ( " " , tags , " pTitleEdit " ) ;
pTitleEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , K Icon: : Small ) ) ;
pTitleEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , TDE Icon: : Small ) ) ;
pTitleEdit - > setFixedSize ( lTitle - > sizeHint ( ) . height ( ) , lTitle - > sizeHint ( ) . height ( ) ) ;
pTitleEdit - > setFixedSize ( lTitle - > sizeHint ( ) . height ( ) , lTitle - > sizeHint ( ) . height ( ) ) ;
pTitleEdit - > hide ( ) ;
pTitleEdit - > hide ( ) ;
titleBox - > addWidget ( pTitleEdit ) ;
titleBox - > addWidget ( pTitleEdit ) ;
@ -108,7 +108,7 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
this , TQT_SLOT ( numberChanged ( int ) )
this , TQT_SLOT ( numberChanged ( int ) )
) ;
) ;
pNumberEdit = new KPushButton ( " " , tags , " pNumberEdit " ) ;
pNumberEdit = new KPushButton ( " " , tags , " pNumberEdit " ) ;
pNumberEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , K Icon: : Small ) ) ;
pNumberEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , TDE Icon: : Small ) ) ;
pNumberEdit - > setFixedSize ( iNumber - > sizeHint ( ) . height ( ) , iNumber - > sizeHint ( ) . height ( ) ) ;
pNumberEdit - > setFixedSize ( iNumber - > sizeHint ( ) . height ( ) , iNumber - > sizeHint ( ) . height ( ) ) ;
pNumberEdit - > hide ( ) ;
pNumberEdit - > hide ( ) ;
titleBox - > addWidget ( pNumberEdit ) ;
titleBox - > addWidget ( pNumberEdit ) ;
@ -128,7 +128,7 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
this , TQT_SLOT ( artistChanged ( const TQString & ) )
this , TQT_SLOT ( artistChanged ( const TQString & ) )
) ;
) ;
pArtistEdit = new KPushButton ( " " , tags , " pArtistEdit " ) ;
pArtistEdit = new KPushButton ( " " , tags , " pArtistEdit " ) ;
pArtistEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , K Icon: : Small ) ) ;
pArtistEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , TDE Icon: : Small ) ) ;
pArtistEdit - > setFixedSize ( lArtist - > sizeHint ( ) . height ( ) , lArtist - > sizeHint ( ) . height ( ) ) ;
pArtistEdit - > setFixedSize ( lArtist - > sizeHint ( ) . height ( ) , lArtist - > sizeHint ( ) . height ( ) ) ;
pArtistEdit - > hide ( ) ;
pArtistEdit - > hide ( ) ;
artistBox - > addWidget ( pArtistEdit ) ;
artistBox - > addWidget ( pArtistEdit ) ;
@ -143,7 +143,7 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
this , TQT_SLOT ( composerChanged ( const TQString & ) )
this , TQT_SLOT ( composerChanged ( const TQString & ) )
) ;
) ;
pComposerEdit = new KPushButton ( " " , tags , " pComposerEdit " ) ;
pComposerEdit = new KPushButton ( " " , tags , " pComposerEdit " ) ;
pComposerEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , K Icon: : Small ) ) ;
pComposerEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , TDE Icon: : Small ) ) ;
pComposerEdit - > setFixedSize ( lComposer - > sizeHint ( ) . height ( ) , lComposer - > sizeHint ( ) . height ( ) ) ;
pComposerEdit - > setFixedSize ( lComposer - > sizeHint ( ) . height ( ) , lComposer - > sizeHint ( ) . height ( ) ) ;
pComposerEdit - > hide ( ) ;
pComposerEdit - > hide ( ) ;
artistBox - > addWidget ( pComposerEdit ) ;
artistBox - > addWidget ( pComposerEdit ) ;
@ -163,7 +163,7 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
this , TQT_SLOT ( albumChanged ( const TQString & ) )
this , TQT_SLOT ( albumChanged ( const TQString & ) )
) ;
) ;
pAlbumEdit = new KPushButton ( " " , tags , " pAlbumEdit " ) ;
pAlbumEdit = new KPushButton ( " " , tags , " pAlbumEdit " ) ;
pAlbumEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , K Icon: : Small ) ) ;
pAlbumEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , TDE Icon: : Small ) ) ;
pAlbumEdit - > setFixedSize ( lAlbum - > sizeHint ( ) . height ( ) , lAlbum - > sizeHint ( ) . height ( ) ) ;
pAlbumEdit - > setFixedSize ( lAlbum - > sizeHint ( ) . height ( ) , lAlbum - > sizeHint ( ) . height ( ) ) ;
pAlbumEdit - > hide ( ) ;
pAlbumEdit - > hide ( ) ;
albumBox - > addWidget ( pAlbumEdit ) ;
albumBox - > addWidget ( pAlbumEdit ) ;
@ -183,7 +183,7 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
this , TQT_SLOT ( discChanged ( int ) )
this , TQT_SLOT ( discChanged ( int ) )
) ;
) ;
pDiscEdit = new KPushButton ( " " , tags , " pDiscEdit " ) ;
pDiscEdit = new KPushButton ( " " , tags , " pDiscEdit " ) ;
pDiscEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , K Icon: : Small ) ) ;
pDiscEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , TDE Icon: : Small ) ) ;
pDiscEdit - > setFixedSize ( iDisc - > sizeHint ( ) . height ( ) , iDisc - > sizeHint ( ) . height ( ) ) ;
pDiscEdit - > setFixedSize ( iDisc - > sizeHint ( ) . height ( ) , iDisc - > sizeHint ( ) . height ( ) ) ;
pDiscEdit - > hide ( ) ;
pDiscEdit - > hide ( ) ;
albumdataBox - > addWidget ( pDiscEdit ) ;
albumdataBox - > addWidget ( pDiscEdit ) ;
@ -199,7 +199,7 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
this , TQT_SLOT ( yearChanged ( int ) )
this , TQT_SLOT ( yearChanged ( int ) )
) ;
) ;
pYearEdit = new KPushButton ( " " , tags , " pYearEdit " ) ;
pYearEdit = new KPushButton ( " " , tags , " pYearEdit " ) ;
pYearEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , K Icon: : Small ) ) ;
pYearEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , TDE Icon: : Small ) ) ;
pYearEdit - > setFixedSize ( iYear - > sizeHint ( ) . height ( ) , iYear - > sizeHint ( ) . height ( ) ) ;
pYearEdit - > setFixedSize ( iYear - > sizeHint ( ) . height ( ) , iYear - > sizeHint ( ) . height ( ) ) ;
pYearEdit - > hide ( ) ;
pYearEdit - > hide ( ) ;
albumdataBox - > addWidget ( pYearEdit ) ;
albumdataBox - > addWidget ( pYearEdit ) ;
@ -220,7 +220,7 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
this , TQT_SLOT ( genreChanged ( const TQString & ) )
this , TQT_SLOT ( genreChanged ( const TQString & ) )
) ;
) ;
pGenreEdit = new KPushButton ( " " , tags , " pGenreEdit " ) ;
pGenreEdit = new KPushButton ( " " , tags , " pGenreEdit " ) ;
pGenreEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , K Icon: : Small ) ) ;
pGenreEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , TDE Icon: : Small ) ) ;
pGenreEdit - > setFixedSize ( cGenre - > sizeHint ( ) . height ( ) , cGenre - > sizeHint ( ) . height ( ) ) ;
pGenreEdit - > setFixedSize ( cGenre - > sizeHint ( ) . height ( ) , cGenre - > sizeHint ( ) . height ( ) ) ;
pGenreEdit - > hide ( ) ;
pGenreEdit - > hide ( ) ;
albumdataBox - > addWidget ( pGenreEdit ) ;
albumdataBox - > addWidget ( pGenreEdit ) ;
@ -240,7 +240,7 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
this , TQT_SLOT ( commentChanged ( ) )
this , TQT_SLOT ( commentChanged ( ) )
) ;
) ;
pCommentEdit = new KPushButton ( " " , tags , " pCommentEdit " ) ;
pCommentEdit = new KPushButton ( " " , tags , " pCommentEdit " ) ;
pCommentEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , K Icon: : Small ) ) ;
pCommentEdit - > setPixmap ( iconLoader - > loadIcon ( " kwrite " , TDE Icon: : Small ) ) ;
pCommentEdit - > setFixedSize ( lTitle - > sizeHint ( ) . height ( ) , lTitle - > sizeHint ( ) . height ( ) ) ;
pCommentEdit - > setFixedSize ( lTitle - > sizeHint ( ) . height ( ) , lTitle - > sizeHint ( ) . height ( ) ) ;
pCommentEdit - > hide ( ) ;
pCommentEdit - > hide ( ) ;
commentBox - > addWidget ( pCommentEdit ) ;
commentBox - > addWidget ( pCommentEdit ) ;