Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 5b1e3197e7
commit 4955fd5009

@ -108,7 +108,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
albumBox->addWidget( cGenre ); albumBox->addWidget( cGenre );
// generate the list view for the tracks // generate the list view for the tracks
trackList = new KListView( this, "trackList" ); trackList = new TDEListView( this, "trackList" );
gridLayout->addWidget( trackList, 1, 0 ); gridLayout->addWidget( trackList, 1, 0 );
// and fill in the headers // and fill in the headers
trackList->addColumn( i18n("Track") ); trackList->addColumn( i18n("Track") );
@ -291,7 +291,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
if( year == 0 ) year = (*it)->year; if( year == 0 ) year = (*it)->year;
if( genre == "" ) genre = (*it)->genre; if( genre == "" ) genre = (*it)->genre;
new KListViewItem( trackList, TQString().sprintf("%02i",(*it)->track), (*it)->artist, (*it)->composer, (*it)->title, TQString().sprintf("%i:%02i",(*it)->length/60,(*it)->length%60) ); new TDEListViewItem( trackList, TQString().sprintf("%02i",(*it)->track), (*it)->artist, (*it)->composer, (*it)->title, TQString().sprintf("%i:%02i",(*it)->length/60,(*it)->length%60) );
} }
trackList->setSorting( -1 ); trackList->setSorting( -1 );

@ -9,7 +9,7 @@ class CDManager;
class TagEngine; class TagEngine;
class Config; class Config;
class ComboButton; class ComboButton;
class KListView; class TDEListView;
class KPushButton; class KPushButton;
class KLineEdit; class KLineEdit;
class KComboBox; class KComboBox;
@ -53,7 +53,7 @@ public:
private: private:
/** A list of all tracks on the CD */ /** A list of all tracks on the CD */
KListView *trackList; TDEListView *trackList;
/** A combobox for entering the artist or selecting VA of the whole CD */ /** A combobox for entering the artist or selecting VA of the whole CD */
KComboBox *cArtist; KComboBox *cArtist;

@ -36,7 +36,7 @@ ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, TQMap<TQString, T
// box->addWidget( eDirectories ); // box->addWidget( eDirectories );
TQHBoxLayout* directoriesBox = new TQHBoxLayout( box ); TQHBoxLayout* directoriesBox = new TQHBoxLayout( box );
lDirectories = new KListBox( parent, "lDirectories" ); lDirectories = new TDEListBox( parent, "lDirectories" );
lDirectories->insertStringList( config->data.environment.directories ); lDirectories->insertStringList( config->data.environment.directories );
directoriesBox->addWidget( lDirectories ); directoriesBox->addWidget( lDirectories );
connect( lDirectories, TQT_SIGNAL(highlighted(int)), connect( lDirectories, TQT_SIGNAL(highlighted(int)),
@ -86,7 +86,7 @@ ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, TQMap<TQString, T
TQVBoxLayout* foundProgramsBox = new TQVBoxLayout( programsBox ); TQVBoxLayout* foundProgramsBox = new TQVBoxLayout( programsBox );
TQLabel* lFoundProgramsLabel = new TQLabel( i18n("Programs found")+":", parent, "lFoundProgramsLabel" ); TQLabel* lFoundProgramsLabel = new TQLabel( i18n("Programs found")+":", parent, "lFoundProgramsLabel" );
foundProgramsBox->addWidget( lFoundProgramsLabel ); foundProgramsBox->addWidget( lFoundProgramsLabel );
lFoundPrograms = new KListBox( parent, "lFoundPrograms" ); lFoundPrograms = new TDEListBox( parent, "lFoundPrograms" );
lFoundPrograms->setSelectionMode( TQListBox::NoSelection ); lFoundPrograms->setSelectionMode( TQListBox::NoSelection );
foundProgramsBox->addWidget( lFoundPrograms ); foundProgramsBox->addWidget( lFoundPrograms );
//connect(lPrograms,TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(programsSelectionChanged(int))); //connect(lPrograms,TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(programsSelectionChanged(int)));
@ -95,7 +95,7 @@ ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, TQMap<TQString, T
TQVBoxLayout* notFoundProgramsBox = new TQVBoxLayout( programsBox ); TQVBoxLayout* notFoundProgramsBox = new TQVBoxLayout( programsBox );
TQLabel* lNotFoundProgramsLabel = new TQLabel( i18n("Programs not found")+":", parent, "lNotFoundProgramsLabel" ); TQLabel* lNotFoundProgramsLabel = new TQLabel( i18n("Programs not found")+":", parent, "lNotFoundProgramsLabel" );
notFoundProgramsBox->addWidget( lNotFoundProgramsLabel ); notFoundProgramsBox->addWidget( lNotFoundProgramsLabel );
lNotFoundPrograms = new KListBox( parent, "lNotFoundPrograms" ); lNotFoundPrograms = new TDEListBox( parent, "lNotFoundPrograms" );
lNotFoundPrograms->setSelectionMode( TQListBox::NoSelection ); lNotFoundPrograms->setSelectionMode( TQListBox::NoSelection );
notFoundProgramsBox->addWidget( lNotFoundPrograms ); notFoundProgramsBox->addWidget( lNotFoundPrograms );
//connect(lPrograms,TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(programsSelectionChanged(int))); //connect(lPrograms,TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(programsSelectionChanged(int)));

@ -7,7 +7,7 @@
class Config; class Config;
class KPushButton; class KPushButton;
class KListBox; class TDEListBox;
/** /**
* @short The page for configuring the environment * @short The page for configuring the environment
@ -30,13 +30,13 @@ public:
virtual ~ConfigEnvironmentPage(); virtual ~ConfigEnvironmentPage();
private: private:
KListBox* lDirectories; TDEListBox* lDirectories;
KPushButton* pDirUp; KPushButton* pDirUp;
KPushButton* pDirDown; KPushButton* pDirDown;
KPushButton* pAddDirectory; KPushButton* pAddDirectory;
KPushButton* pRemoveDirectory; KPushButton* pRemoveDirectory;
KListBox* lFoundPrograms; TDEListBox* lFoundPrograms;
KListBox* lNotFoundPrograms; TDEListBox* lNotFoundPrograms;
Config* config; Config* config;

@ -39,7 +39,7 @@ ConfigPluginsPage::ConfigPluginsPage( Config* _config, TQWidget* parent, const c
TQLabel* lPluginsLabel = new TQLabel( i18n("Installed plugins")+":", parent, "lPluginsLabel" ); TQLabel* lPluginsLabel = new TQLabel( i18n("Installed plugins")+":", parent, "lPluginsLabel" );
box->addWidget( lPluginsLabel ); box->addWidget( lPluginsLabel );
TQHBoxLayout* pluginsBox = new TQHBoxLayout( box ); TQHBoxLayout* pluginsBox = new TQHBoxLayout( box );
lPlugins = new KListBox( parent, "lPlugins" ); lPlugins = new TDEListBox( parent, "lPlugins" );
pluginsBox->addWidget(lPlugins); pluginsBox->addWidget(lPlugins);
connect( lPlugins, TQT_SIGNAL(highlighted(int)), connect( lPlugins, TQT_SIGNAL(highlighted(int)),
this, TQT_SLOT(pluginsSelectionChanged(int)) this, TQT_SLOT(pluginsSelectionChanged(int))
@ -71,7 +71,7 @@ ConfigPluginsPage::ConfigPluginsPage( Config* _config, TQWidget* parent, const c
TQLabel* lOnlinePluginsLabel = new TQLabel( i18n("Available plugins")+":", parent, "lOnlinePluginsLabel" ); TQLabel* lOnlinePluginsLabel = new TQLabel( i18n("Available plugins")+":", parent, "lOnlinePluginsLabel" );
box->addWidget( lOnlinePluginsLabel ); box->addWidget( lOnlinePluginsLabel );
TQHBoxLayout* onlinePluginsBox = new TQHBoxLayout( box ); TQHBoxLayout* onlinePluginsBox = new TQHBoxLayout( box );
lOnlinePlugins = new KListBox( parent, "lOnlinePlugins" ); lOnlinePlugins = new TDEListBox( parent, "lOnlinePlugins" );
onlinePluginsBox->addWidget( lOnlinePlugins ); onlinePluginsBox->addWidget( lOnlinePlugins );
connect( lOnlinePlugins, TQT_SIGNAL(highlighted(int)), connect( lOnlinePlugins, TQT_SIGNAL(highlighted(int)),
this, TQT_SLOT(onlinePluginsSelectionChanged(int)) this, TQT_SLOT(onlinePluginsSelectionChanged(int))

@ -8,7 +8,7 @@
class Config; class Config;
class KPushButton; class KPushButton;
class KListBox; class TDEListBox;
class TQCheckBox; class TQCheckBox;
/** /**
@ -32,12 +32,12 @@ public:
virtual ~ConfigPluginsPage(); virtual ~ConfigPluginsPage();
private: private:
KListBox* lPlugins; TDEListBox* lPlugins;
KPushButton* pAddPlugin; KPushButton* pAddPlugin;
TDEIO::FileCopyJob* getPluginJob; TDEIO::FileCopyJob* getPluginJob;
KPushButton* pRemovePlugin; KPushButton* pRemovePlugin;
KPushButton* pAboutPlugin; KPushButton* pAboutPlugin;
KListBox* lOnlinePlugins; TDEListBox* lOnlinePlugins;
KPushButton* pRefreshOnlinePlugins; KPushButton* pRefreshOnlinePlugins;
TDEIO::FileCopyJob* refreshOnlinePluginsJob; TDEIO::FileCopyJob* refreshOnlinePluginsJob;
KPushButton* pInstallOnlinePlugin; KPushButton* pInstallOnlinePlugin;

@ -50,7 +50,7 @@ DirDialog::DirDialog( Config* config, Mode mode, TQWidget *parent, const char *n
TQHBoxLayout* fileTypesBox = new TQHBoxLayout(); TQHBoxLayout* fileTypesBox = new TQHBoxLayout();
grid->addLayout( fileTypesBox, 1, 0 ); grid->addLayout( fileTypesBox, 1, 0 );
fileTypes = new KListBox( this, "fileTypes" ); fileTypes = new TDEListBox( this, "fileTypes" );
if( mode == Convert ) fileTypes->insertStringList( config->fileTypes() ); if( mode == Convert ) fileTypes->insertStringList( config->fileTypes() );
else if( mode == ReplayGain ) fileTypes->insertStringList( config->replayGainFileTypes() ); else if( mode == ReplayGain ) fileTypes->insertStringList( config->replayGainFileTypes() );
fileTypes->setSelectionMode( TQListBox::Multi ); fileTypes->setSelectionMode( TQListBox::Multi );

@ -11,7 +11,7 @@ class TQCheckBox;
class KLineEdit; class KLineEdit;
class KPushButton; class KPushButton;
// class KURLRequester; // class KURLRequester;
class KListBox; class TDEListBox;
/** /**
* @short The Replay Gain Tool * @short The Replay Gain Tool
@ -53,7 +53,7 @@ private:
// KURLRequester* uDirectory; // KURLRequester* uDirectory;
KLineEdit* lDirectory; KLineEdit* lDirectory;
KPushButton* pDirectory; KPushButton* pDirectory;
KListBox* fileTypes; TDEListBox* fileTypes;
KPushButton* pSelectAll; KPushButton* pSelectAll;
KPushButton* pSelectNone; KPushButton* pSelectNone;
TQCheckBox* cRecursive; TQCheckBox* cRecursive;

@ -38,8 +38,8 @@
// ### soundkonverter 0.4: draw tooltip like bubble info box // ### soundkonverter 0.4: draw tooltip like bubble info box
FileListItem::FileListItem( KListView* parent, FileListItem* after ) FileListItem::FileListItem( TDEListView* parent, FileListItem* after )
: KListViewItem( parent, after ) : TDEListViewItem( parent, after )
{ {
tags = 0; tags = 0;
converting = false; converting = false;
@ -47,8 +47,8 @@ FileListItem::FileListItem( KListView* parent, FileListItem* after )
ripping = false; ripping = false;
} }
FileListItem::FileListItem( KListView* parent ) FileListItem::FileListItem( TDEListView* parent )
: KListViewItem( parent ) : TDEListViewItem( parent )
{ {
tags = 0; tags = 0;
converting = false; converting = false;
@ -104,7 +104,7 @@ void FileListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column,
return; return;
} }
KListViewItem::paintCell( p, _cg, column, width, alignment ); TDEListViewItem::paintCell( p, _cg, column, width, alignment );
} }
/*void FileListItem::updateOutputCell() /*void FileListItem::updateOutputCell()
@ -118,7 +118,7 @@ void FileListItem::updateOptionsCell()
}*/ }*/
FileList::FileList( CDManager* _cdManager, TagEngine* _tagEngine, Config* _config, Options* _options, Logger* _logger, TQWidget* parent, const char* name ) FileList::FileList( CDManager* _cdManager, TagEngine* _tagEngine, Config* _config, Options* _options, Logger* _logger, TQWidget* parent, const char* name )
: KListView( parent, name ) : TDEListView( parent, name )
{ {
cdManager = _cdManager; cdManager = _cdManager;
tagEngine = _tagEngine; tagEngine = _tagEngine;
@ -159,19 +159,19 @@ FileList::FileList( CDManager* _cdManager, TagEngine* _tagEngine, Config* _confi
grid->addWidget( pScanStatus, 1, 1 ); grid->addWidget( pScanStatus, 1, 1 );
grid->setColStretch( 1, 2 ); grid->setColStretch( 1, 2 );
contextMenu = new KPopupMenu( this ); contextMenu = new TDEPopupMenu( this );
connect( TQT_TQOBJECT(this), TQT_SIGNAL(contextMenuRequested( TQListViewItem*, const TQPoint&, int )), connect( TQT_TQOBJECT(this), TQT_SIGNAL(contextMenuRequested( TQListViewItem*, const TQPoint&, int )),
TQT_TQOBJECT(this), TQT_SLOT(showContextMenu( TQListViewItem*, const TQPoint&, int )) TQT_TQOBJECT(this), TQT_SLOT(showContextMenu( TQListViewItem*, const TQPoint&, int ))
); );
// we haven't got access to the action collection of soundKonverter, so let's create a new one // we haven't got access to the action collection of soundKonverter, so let's create a new one
actionCollection = new KActionCollection( this ); actionCollection = new TDEActionCollection( this );
edit = new KAction( i18n("Edit options ..."), "view_text", 0, TQT_TQOBJECT(this), TQT_SLOT(showOptionsEditorDialog()), actionCollection, "edit_options" ); edit = new TDEAction( i18n("Edit options ..."), "view_text", 0, TQT_TQOBJECT(this), TQT_SLOT(showOptionsEditorDialog()), actionCollection, "edit_options" );
start = new KAction( i18n("Start conversion"), "run", 0, TQT_TQOBJECT(this), TQT_SLOT(convertSelectedItems()), actionCollection, "start_conversion" ); start = new TDEAction( i18n("Start conversion"), "run", 0, TQT_TQOBJECT(this), TQT_SLOT(convertSelectedItems()), actionCollection, "start_conversion" );
stop = new KAction( i18n("Stop conversion"), "stop", 0, TQT_TQOBJECT(this), TQT_SLOT(stopSelectedItems()), actionCollection, "stop_conversion" ); stop = new TDEAction( i18n("Stop conversion"), "stop", 0, TQT_TQOBJECT(this), TQT_SLOT(stopSelectedItems()), actionCollection, "stop_conversion" );
remove = new KAction( i18n("Remove"), "edittrash", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(removeSelectedItems()), actionCollection, "remove" ); remove = new TDEAction( i18n("Remove"), "edittrash", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(removeSelectedItems()), actionCollection, "remove" );
paste = new KAction( i18n("Paste"), "editpaste", 0, TQT_TQOBJECT(this), 0, actionCollection, "paste" ); // TODO paste paste = new TDEAction( i18n("Paste"), "editpaste", 0, TQT_TQOBJECT(this), 0, actionCollection, "paste" ); // TODO paste
connect( TQT_TQOBJECT(this), TQT_SIGNAL(selectionChanged()), connect( TQT_TQOBJECT(this), TQT_SIGNAL(selectionChanged()),
TQT_TQOBJECT(this), TQT_SLOT(itemsSelected()) TQT_TQOBJECT(this), TQT_SLOT(itemsSelected())
@ -215,7 +215,7 @@ int FileList::columnByName( const TQString& name )
void FileList::viewportPaintEvent( TQPaintEvent* e ) void FileList::viewportPaintEvent( TQPaintEvent* e )
{ {
KListView::viewportPaintEvent( e ); TDEListView::viewportPaintEvent( e );
// the bubble help // the bubble help
if( childCount() == 0 ) { if( childCount() == 0 ) {

@ -20,30 +20,30 @@ class TQPainter;
class TQColorGroup; class TQColorGroup;
class TQSimpleRichText; class TQSimpleRichText;
class KProgress; class KProgress;
class KPopupMenu; class TDEPopupMenu;
class KAction; class TDEAction;
class KActionCollection; class TDEActionCollection;
/** /**
* @short The items for the file list * @short The items for the file list
* @author Daniel Faust <hessijames@gmail.com> * @author Daniel Faust <hessijames@gmail.com>
* @version 0.3 * @version 0.3
*/ */
class FileListItem : public KListViewItem class FileListItem : public TDEListViewItem
{ {
public: public:
/** /**
* Constructor * Constructor
* @param parent The parent list view * @param parent The parent list view
*/ */
FileListItem( KListView* parent ); FileListItem( TDEListView* parent );
/** /**
* Constructor * Constructor
* @param parent The parent list view * @param parent The parent list view
* @param after The item, the new item should be placed after * @param after The item, the new item should be placed after
*/ */
FileListItem( KListView* parent, FileListItem* after ); FileListItem( TDEListView* parent, FileListItem* after );
/** /**
* Destructor * Destructor
@ -55,10 +55,10 @@ public:
//void updateOutputCell(); //void updateOutputCell();
//void updateOptionsCell(); //void updateOptionsCell();
FileListItem* nextSibling() const { return static_cast<FileListItem*>( KListViewItem::nextSibling() ); } FileListItem* nextSibling() const { return static_cast<FileListItem*>( TDEListViewItem::nextSibling() ); }
FileListItem* itemAbove() { return static_cast<FileListItem*>( KListViewItem::itemAbove() ); } FileListItem* itemAbove() { return static_cast<FileListItem*>( TDEListViewItem::itemAbove() ); }
FileListItem* itemBelow() { return static_cast<FileListItem*>( KListViewItem::itemBelow() ); } FileListItem* itemBelow() { return static_cast<FileListItem*>( TDEListViewItem::itemBelow() ); }
//FileList* listView() const { return static_cast<FileList*>( KListViewItem::listView() ); } //FileList* listView() const { return static_cast<FileList*>( TDEListViewItem::listView() ); }
ConversionOptions options; // the information we get from the options class for creating the item ConversionOptions options; // the information we get from the options class for creating the item
TagData* tags; // we need to instruct the tagengine to read the tags from the file! TagData* tags; // we need to instruct the tagengine to read the tags from the file!
@ -83,7 +83,7 @@ public:
* @author Daniel Faust <hessijames@gmail.com> * @author Daniel Faust <hessijames@gmail.com>
* @version 0.3 * @version 0.3
*/ */
class FileList : public KListView class FileList : public TDEListView
{ {
Q_OBJECT Q_OBJECT
@ -100,8 +100,8 @@ public:
*/ */
virtual ~FileList(); virtual ~FileList();
FileListItem* firstChild() const { return static_cast<FileListItem*>( KListView::firstChild() ); } FileListItem* firstChild() const { return static_cast<FileListItem*>( TDEListView::firstChild() ); }
FileListItem* lastItem() const { return static_cast<FileListItem*>( KListView::lastItem() ); } FileListItem* lastItem() const { return static_cast<FileListItem*>( TDEListView::lastItem() ); }
int columnByName( const TQString& name ); int columnByName( const TQString& name );
void updateItem( FileListItem* item ); void updateItem( FileListItem* item );
@ -131,14 +131,14 @@ private:
TQSimpleRichText* bubble; TQSimpleRichText* bubble;
/** The context menu for editing or starting the files */ /** The context menu for editing or starting the files */
KPopupMenu* contextMenu; TDEPopupMenu* contextMenu;
KActionCollection* actionCollection; TDEActionCollection* actionCollection;
KAction* edit; TDEAction* edit;
KAction* start; TDEAction* start;
KAction* stop; TDEAction* stop;
KAction* remove; TDEAction* remove;
KAction* paste; TDEAction* paste;
CDManager* cdManager; CDManager* cdManager;
TagEngine* tagEngine; TagEngine* tagEngine;

@ -16,14 +16,14 @@
// ### soundkonverter 0.4: make sub items for the output // ### soundkonverter 0.4: make sub items for the output
LogViewerItem::LogViewerItem( KListView* parent, LogViewerItem* after, TQString label1 ) LogViewerItem::LogViewerItem( TDEListView* parent, LogViewerItem* after, TQString label1 )
: KListViewItem( parent, after, label1 ) : TDEListViewItem( parent, after, label1 )
{ {
converting = false; converting = false;
} }
LogViewerItem::LogViewerItem( LogViewerItem* parent, LogViewerItem* after, TQString label1 ) LogViewerItem::LogViewerItem( LogViewerItem* parent, LogViewerItem* after, TQString label1 )
: KListViewItem( parent, after, label1 ) : TDEListViewItem( parent, after, label1 )
{ {
converting = false; converting = false;
} }
@ -54,12 +54,12 @@ void LogViewerItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column,
return; return;
} }
KListViewItem::paintCell( p, _cg, column, width, alignment ); TDEListViewItem::paintCell( p, _cg, column, width, alignment );
} }
LogViewerList::LogViewerList( TQWidget* parent, const char* name ) LogViewerList::LogViewerList( TQWidget* parent, const char* name )
: KListView( parent, name ) : TDEListView( parent, name )
{} {}
LogViewerList::~LogViewerList() LogViewerList::~LogViewerList()

@ -15,7 +15,7 @@ class Logger;
* @author Daniel Faust <hessijames@gmail.com> * @author Daniel Faust <hessijames@gmail.com>
* @version 0.3 * @version 0.3
*/ */
class LogViewerItem : public KListViewItem class LogViewerItem : public TDEListViewItem
{ {
public: public:
/** /**
@ -24,7 +24,7 @@ public:
* @param after The item, the new item should be placed after * @param after The item, the new item should be placed after
* @param label1 The text for the first column * @param label1 The text for the first column
*/ */
LogViewerItem( KListView* parent, LogViewerItem* after, TQString label1 ); LogViewerItem( TDEListView* parent, LogViewerItem* after, TQString label1 );
/** /**
* Constructor * Constructor
@ -41,8 +41,8 @@ public:
virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int alignment ); virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int alignment );
LogViewerItem* nextSibling() const { return static_cast<LogViewerItem*>( KListViewItem::nextSibling() ); } LogViewerItem* nextSibling() const { return static_cast<LogViewerItem*>( TDEListViewItem::nextSibling() ); }
LogViewerItem* firstChild() const { return static_cast<LogViewerItem*>( KListViewItem::firstChild() ); } LogViewerItem* firstChild() const { return static_cast<LogViewerItem*>( TDEListViewItem::firstChild() ); }
bool converting; bool converting;
}; };
@ -53,7 +53,7 @@ public:
* @author Daniel Faust <hessijames@gmail.com> * @author Daniel Faust <hessijames@gmail.com>
* @version 0.3 * @version 0.3
*/ */
class LogViewerList : public KListView class LogViewerList : public TDEListView
{ {
Q_OBJECT Q_OBJECT
@ -70,7 +70,7 @@ public:
*/ */
virtual ~LogViewerList(); virtual ~LogViewerList();
LogViewerItem* firstChild() const { return static_cast<LogViewerItem*>( KListView::firstChild() ); } LogViewerItem* firstChild() const { return static_cast<LogViewerItem*>( TDEListView::firstChild() ); }
}; };

@ -188,7 +188,7 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
); );
normalBottomBox->addSpacing( 18 ); normalBottomBox->addSpacing( 18 );
pProfileSave = new KToolBarButton( "filesave", 1003, normalOptions, "pProfileSave" ); pProfileSave = new TDEToolBarButton( "filesave", 1003, normalOptions, "pProfileSave" );
TQToolTip::add( pProfileSave, i18n("Save current options as a profile") ); TQToolTip::add( pProfileSave, i18n("Save current options as a profile") );
normalBottomBox->addWidget( pProfileSave, 0, TQt::AlignVCenter ); normalBottomBox->addWidget( pProfileSave, 0, TQt::AlignVCenter );
connect( pProfileSave, TQT_SIGNAL(clicked()), connect( pProfileSave, TQT_SIGNAL(clicked()),

@ -17,7 +17,7 @@ class KIntSpinBox;
class TQCheckBox; class TQCheckBox;
class KComboBox; class KComboBox;
class KLineEdit; class KLineEdit;
class KToolBarButton; class TDEToolBarButton;
/** /**
* @short The options widget for setting up the output options more detailed * @short The options widget for setting up the output options more detailed
@ -73,7 +73,7 @@ private:
KComboBox* cChannels; KComboBox* cChannels;
TQCheckBox* cReplayGain; TQCheckBox* cReplayGain;
KToolBarButton* pProfileSave; TDEToolBarButton* pProfileSave;
KLineEdit* lUserOptions; KLineEdit* lUserOptions;

@ -58,7 +58,7 @@ OptionsSimple::OptionsSimple( Config* _config, OptionsDetailed* _optionsDetailed
this, TQT_SLOT(somethingChanged()) this, TQT_SLOT(somethingChanged())
); );
topBox->addSpacing( 3 ); topBox->addSpacing( 3 );
//pProfileRemove = new KToolBarButton( "editdelete", 1002, this, "pProfileRemove" ); //pProfileRemove = new TDEToolBarButton( "editdelete", 1002, this, "pProfileRemove" );
pProfileRemove = new KPushButton( iconLoader->loadIcon("editdelete",KIcon::Small), i18n("Remove"), this, "pProfileRemove" ); pProfileRemove = new KPushButton( iconLoader->loadIcon("editdelete",KIcon::Small), i18n("Remove"), this, "pProfileRemove" );
pProfileRemove->hide(); pProfileRemove->hide();
TQToolTip::add( pProfileRemove, i18n("Remove the selected profile") ); TQToolTip::add( pProfileRemove, i18n("Remove the selected profile") );
@ -66,7 +66,7 @@ OptionsSimple::OptionsSimple( Config* _config, OptionsDetailed* _optionsDetailed
connect( pProfileRemove, TQT_SIGNAL(clicked()), connect( pProfileRemove, TQT_SIGNAL(clicked()),
this, TQT_SLOT(profileRemove()) this, TQT_SLOT(profileRemove())
); );
//pProfileInfo = new KToolBarButton( "messagebox_info", 1110, this, "pProfileInfo" ); //pProfileInfo = new TDEToolBarButton( "messagebox_info", 1110, this, "pProfileInfo" );
pProfileInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), i18n("Info"), this, "pProfileInfo" ); pProfileInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), i18n("Info"), this, "pProfileInfo" );
TQToolTip::add( pProfileInfo, i18n("Information about the selected profile") ); TQToolTip::add( pProfileInfo, i18n("Information about the selected profile") );
topBox->addWidget( pProfileInfo, 0, TQt::AlignVCenter ); topBox->addWidget( pProfileInfo, 0, TQt::AlignVCenter );
@ -86,7 +86,7 @@ OptionsSimple::OptionsSimple( Config* _config, OptionsDetailed* _optionsDetailed
this, TQT_SLOT(somethingChanged()) this, TQT_SLOT(somethingChanged())
); );
topBox->addSpacing( 3 ); topBox->addSpacing( 3 );
//pFormatInfo = new KToolBarButton( "messagebox_info", 1111, this, "pFormatInfo" ); //pFormatInfo = new TDEToolBarButton( "messagebox_info", 1111, this, "pFormatInfo" );
pFormatInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), i18n("Info"), this, "pFormatInfo" ); pFormatInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), i18n("Info"), this, "pFormatInfo" );
TQToolTip::add( pFormatInfo, i18n("Information about the selected file format") ); TQToolTip::add( pFormatInfo, i18n("Information about the selected file format") );
topBox->addWidget( pFormatInfo, 0, TQt::AlignVCenter ); topBox->addWidget( pFormatInfo, 0, TQt::AlignVCenter );

@ -13,7 +13,7 @@ class ConversionOptions;
class OptionsDetailed; class OptionsDetailed;
class KComboBox; class KComboBox;
class KToolBarButton; class TDEToolBarButton;
class KPushButton; class KPushButton;
/** /**

@ -53,13 +53,13 @@ OutputDirectory::OutputDirectory( Config* _config, TQWidget* parent, const char*
this, TQT_SLOT(modeChangedSlot(int)) this, TQT_SLOT(modeChangedSlot(int))
); );
modeJustChanged = false; modeJustChanged = false;
/*pModeInfo = new KToolBarButton( "messagebox_info", 1010, this, "pModeInfo" ); /*pModeInfo = new TDEToolBarButton( "messagebox_info", 1010, this, "pModeInfo" );
TQToolTip::add( pModeInfo, i18n("Information about the output mode") ); TQToolTip::add( pModeInfo, i18n("Information about the output mode") );
box->addWidget( pModeInfo ); box->addWidget( pModeInfo );
connect( pModeInfo, TQT_SIGNAL(clicked()), connect( pModeInfo, TQT_SIGNAL(clicked()),
this, TQT_SLOT(modeInfo()) this, TQT_SLOT(modeInfo())
);*/ );*/
pClear = new KToolBarButton( "locationbar_erase", 1001, this, "pClear" ); pClear = new TDEToolBarButton( "locationbar_erase", 1001, this, "pClear" );
TQToolTip::add( pClear, i18n("Clear the directory input field") ); TQToolTip::add( pClear, i18n("Clear the directory input field") );
box->addWidget( pClear ); box->addWidget( pClear );
lDir = new KLineEdit( this, "lDir" ); lDir = new KLineEdit( this, "lDir" );
@ -73,19 +73,19 @@ OutputDirectory::OutputDirectory( Config* _config, TQWidget* parent, const char*
connect( pClear, TQT_SIGNAL(clicked()), connect( pClear, TQT_SIGNAL(clicked()),
lDir, TQT_SLOT(clear()) lDir, TQT_SLOT(clear())
); );
/*pDirInfo = new KToolBarButton( "messagebox_info", 1011, this, "pDirInfo" ); /*pDirInfo = new TDEToolBarButton( "messagebox_info", 1011, this, "pDirInfo" );
TQToolTip::add( pDirInfo, i18n("Information about the wildcards") ); TQToolTip::add( pDirInfo, i18n("Information about the wildcards") );
box->addWidget( pDirInfo ); box->addWidget( pDirInfo );
connect( pDirInfo, TQT_SIGNAL(clicked()), connect( pDirInfo, TQT_SIGNAL(clicked()),
this, TQT_SLOT(dirInfo()) this, TQT_SLOT(dirInfo())
);*/ );*/
pDirSelect = new KToolBarButton( "folder", 1012, this, "pDirSelect" ); pDirSelect = new TDEToolBarButton( "folder", 1012, this, "pDirSelect" );
TQToolTip::add( pDirSelect, i18n("Choose an output directory") ); TQToolTip::add( pDirSelect, i18n("Choose an output directory") );
box->addWidget( pDirSelect ); box->addWidget( pDirSelect );
connect( pDirSelect, TQT_SIGNAL(clicked()), connect( pDirSelect, TQT_SIGNAL(clicked()),
this, TQT_SLOT(selectDir()) this, TQT_SLOT(selectDir())
); );
pDirGoto = new KToolBarButton( "konqueror", 1013, this, "pDirGoto" ); pDirGoto = new TDEToolBarButton( "konqueror", 1013, this, "pDirGoto" );
TQToolTip::add( pDirGoto, i18n("Open Konqueror with the output directory") ); TQToolTip::add( pDirGoto, i18n("Open Konqueror with the output directory") );
box->addWidget( pDirGoto ); box->addWidget( pDirGoto );
connect( pDirGoto, TQT_SIGNAL(clicked()), connect( pDirGoto, TQT_SIGNAL(clicked()),

@ -11,7 +11,7 @@ class FileListItem;
class Config; class Config;
class KComboBox; class KComboBox;
class KLineEdit; class KLineEdit;
class KToolBarButton; class TDEToolBarButton;
/** /**
* @short The input area for the output directory * @short The input area for the output directory
@ -68,12 +68,12 @@ private slots:
private: private:
KComboBox* cMode; KComboBox* cMode;
//KToolBarButton* pModeInfo; //TDEToolBarButton* pModeInfo;
KLineEdit* lDir; KLineEdit* lDir;
KToolBarButton* pDirSelect; TDEToolBarButton* pDirSelect;
KToolBarButton* pDirGoto; TDEToolBarButton* pDirGoto;
//KToolBarButton* pDirInfo; //TDEToolBarButton* pDirInfo;
KToolBarButton* pClear; TDEToolBarButton* pClear;
bool modeJustChanged; bool modeJustChanged;

@ -34,7 +34,7 @@
ReplayGainFileListItem::ReplayGainFileListItem( TQListView* parent ) ReplayGainFileListItem::ReplayGainFileListItem( TQListView* parent )
: KListViewItem( parent ) : TDEListViewItem( parent )
{ {
m_type = File; m_type = File;
mimeType = "application/octet-stream"; mimeType = "application/octet-stream";
@ -43,7 +43,7 @@ ReplayGainFileListItem::ReplayGainFileListItem( TQListView* parent )
} }
// ReplayGainFileListItem::ReplayGainFileListItem( TQListView* parent, TQListViewItem* after ) // ReplayGainFileListItem::ReplayGainFileListItem( TQListView* parent, TQListViewItem* after )
// : KListViewItem( parent, after ) // : TDEListViewItem( parent, after )
// { // {
// m_type = File; // m_type = File;
// mimeType = "application/octet-stream"; // mimeType = "application/octet-stream";
@ -52,7 +52,7 @@ ReplayGainFileListItem::ReplayGainFileListItem( TQListView* parent )
// } // }
ReplayGainFileListItem::ReplayGainFileListItem( ReplayGainFileListItem* parent ) ReplayGainFileListItem::ReplayGainFileListItem( ReplayGainFileListItem* parent )
: KListViewItem( parent ) : TDEListViewItem( parent )
{ {
m_type = File; m_type = File;
mimeType = "application/octet-stream"; mimeType = "application/octet-stream";
@ -115,7 +115,7 @@ void ReplayGainFileListItem::paintCell( TQPainter *p, const TQColorGroup &cg, in
return; return;
} }
KListViewItem::paintCell( p, _cg, column, width, alignment ); TDEListViewItem::paintCell( p, _cg, column, width, alignment );
} }
void ReplayGainFileListItem::setType( Type type ) void ReplayGainFileListItem::setType( Type type )
@ -157,11 +157,11 @@ int ReplayGainFileListItem::compare( TQListViewItem* item, int column, bool asce
// NOTE looking at the types, not the strings would be better // NOTE looking at the types, not the strings would be better
if( text(1) == "" && item->text(1) != "" ) return -1; if( text(1) == "" && item->text(1) != "" ) return -1;
else if( text(1) != "" && item->text(1) == "" ) return 1; else if( text(1) != "" && item->text(1) == "" ) return 1;
else return KListViewItem::compare( item, column, ascending ); else return TDEListViewItem::compare( item, column, ascending );
} }
ReplayGainFileList::ReplayGainFileList( TagEngine* _tagEngine, Config* _config, Logger* _logger, TQWidget *parent, const char *name ) ReplayGainFileList::ReplayGainFileList( TagEngine* _tagEngine, Config* _config, Logger* _logger, TQWidget *parent, const char *name )
: KListView( parent, name ) : TDEListView( parent, name )
{ {
tagEngine = _tagEngine; tagEngine = _tagEngine;
config = _config; config = _config;
@ -202,21 +202,21 @@ ReplayGainFileList::ReplayGainFileList( TagEngine* _tagEngine, Config* _config,
grid->addWidget( pScanStatus, 1, 1 ); grid->addWidget( pScanStatus, 1, 1 );
grid->setColStretch( 1, 2 ); grid->setColStretch( 1, 2 );
contextMenu = new KPopupMenu( this ); contextMenu = new TDEPopupMenu( this );
connect( TQT_TQOBJECT(this), TQT_SIGNAL(contextMenuRequested(TQListViewItem*,const TQPoint&,int)), connect( TQT_TQOBJECT(this), TQT_SIGNAL(contextMenuRequested(TQListViewItem*,const TQPoint&,int)),
TQT_TQOBJECT(this), TQT_SLOT(showContextMenu(TQListViewItem*,const TQPoint&,int)) TQT_TQOBJECT(this), TQT_SLOT(showContextMenu(TQListViewItem*,const TQPoint&,int))
); );
// we haven't got access to the action collection of soundKonverter, so let's create a new one // we haven't got access to the action collection of soundKonverter, so let's create a new one
actionCollection = new KActionCollection( this ); actionCollection = new TDEActionCollection( this );
calc_gain = new KAction( i18n("Calculate Replay Gain tags"), "apply", 0, TQT_TQOBJECT(this), TQT_SLOT(calcSelectedItemsGain()), actionCollection, "calc_album" ); calc_gain = new TDEAction( i18n("Calculate Replay Gain tags"), "apply", 0, TQT_TQOBJECT(this), TQT_SLOT(calcSelectedItemsGain()), actionCollection, "calc_album" );
remove_gain = new KAction( i18n("Remove Replay Gain tags"), "cancel", 0, TQT_TQOBJECT(this), TQT_SLOT(removeSelectedItemsGain()), actionCollection, "remove_gain" ); remove_gain = new TDEAction( i18n("Remove Replay Gain tags"), "cancel", 0, TQT_TQOBJECT(this), TQT_SLOT(removeSelectedItemsGain()), actionCollection, "remove_gain" );
remove = new KAction( i18n("Remove"), "edittrash", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(removeSelectedItems()), actionCollection, "remove" ); remove = new TDEAction( i18n("Remove"), "edittrash", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(removeSelectedItems()), actionCollection, "remove" );
paste = new KAction( i18n("Paste"), "editpaste", 0, TQT_TQOBJECT(this), 0, actionCollection, "paste" ); paste = new TDEAction( i18n("Paste"), "editpaste", 0, TQT_TQOBJECT(this), 0, actionCollection, "paste" );
newalbum = new KAction( i18n("New album"), "filenew", 0, TQT_TQOBJECT(this), TQT_SLOT(createNewAlbum()), actionCollection, "newalbum" ); newalbum = new TDEAction( i18n("New album"), "filenew", 0, TQT_TQOBJECT(this), TQT_SLOT(createNewAlbum()), actionCollection, "newalbum" );
open_albums = new KAction( i18n("Open all albums"), "view_tree", 0, TQT_TQOBJECT(this), TQT_SLOT(openAlbums()), actionCollection, "open_albums" ); open_albums = new TDEAction( i18n("Open all albums"), "view_tree", 0, TQT_TQOBJECT(this), TQT_SLOT(openAlbums()), actionCollection, "open_albums" );
close_albums = new KAction( i18n("Cloase all albums"), "view_text", 0, TQT_TQOBJECT(this), TQT_SLOT(closeAlbums()), actionCollection, "close_albums" ); close_albums = new TDEAction( i18n("Cloase all albums"), "view_text", 0, TQT_TQOBJECT(this), TQT_SLOT(closeAlbums()), actionCollection, "close_albums" );
replayGain = new ReplayGain( config, logger ); replayGain = new ReplayGain( config, logger );
@ -268,7 +268,7 @@ int ReplayGainFileList::columnByName( const TQString& name )
void ReplayGainFileList::viewportPaintEvent( TQPaintEvent* e ) void ReplayGainFileList::viewportPaintEvent( TQPaintEvent* e )
{ {
KListView::viewportPaintEvent( e ); TDEListView::viewportPaintEvent( e );
// the bubble help // the bubble help
if( childCount() == 0 ) { if( childCount() == 0 ) {
@ -340,8 +340,8 @@ void ReplayGainFileList::contentsDragMoveEvent( TQDragMoveEvent *e )
cleanItemHighlighter(); cleanItemHighlighter();
cleanDropVisualizer(); cleanDropVisualizer();
// the rest is handled by KListView // the rest is handled by TDEListView
KListView::contentsDragMoveEvent( e ); TDEListView::contentsDragMoveEvent( e );
return; return;
} }
@ -364,8 +364,8 @@ void ReplayGainFileList::contentsDragMoveEvent( TQDragMoveEvent *e )
cleanItemHighlighter(); cleanItemHighlighter();
} }
// the rest is handled by KListView // the rest is handled by TDEListView
KListView::contentsDragMoveEvent( e ); TDEListView::contentsDragMoveEvent( e );
} }
void ReplayGainFileList::contentsDropEvent( TQDropEvent *e ) void ReplayGainFileList::contentsDropEvent( TQDropEvent *e )

@ -17,9 +17,9 @@ class Logger;
class TQSimpleRichText; class TQSimpleRichText;
class KProgress; class KProgress;
class KPopupMenu; class TDEPopupMenu;
class KAction; class TDEAction;
class KActionCollection; class TDEActionCollection;
class TDEProcess; class TDEProcess;
// FIXME differ diffrent sampling rates, too! // FIXME differ diffrent sampling rates, too!
@ -29,7 +29,7 @@ class TDEProcess;
* @author Daniel Faust <hessijames@gmail.com> * @author Daniel Faust <hessijames@gmail.com>
* @version 0.3 * @version 0.3
*/ */
class ReplayGainFileListItem : public KListViewItem class ReplayGainFileListItem : public TDEListViewItem
{ {
public: public:
enum Type { enum Type {
@ -72,10 +72,10 @@ public:
void updateReplayGainCells( TagData* ); void updateReplayGainCells( TagData* );
ReplayGainFileListItem* firstChild() const { return static_cast<ReplayGainFileListItem*>( KListViewItem::firstChild() ); } ReplayGainFileListItem* firstChild() const { return static_cast<ReplayGainFileListItem*>( TDEListViewItem::firstChild() ); }
ReplayGainFileListItem* nextSibling() const { return static_cast<ReplayGainFileListItem*>( KListViewItem::nextSibling() ); } ReplayGainFileListItem* nextSibling() const { return static_cast<ReplayGainFileListItem*>( TDEListViewItem::nextSibling() ); }
//ReplayGainFileListItem* itemBelow() { return static_cast<ReplayGainFileListItem*>( KListViewItem::itemBelow() ); } //ReplayGainFileListItem* itemBelow() { return static_cast<ReplayGainFileListItem*>( TDEListViewItem::itemBelow() ); }
ReplayGainFileListItem* parent() const { return static_cast<ReplayGainFileListItem*>( KListViewItem::parent() ); } ReplayGainFileListItem* parent() const { return static_cast<ReplayGainFileListItem*>( TDEListViewItem::parent() ); }
Type type() { return m_type; } Type type() { return m_type; }
void setType( Type ); void setType( Type );
@ -106,7 +106,7 @@ private:
* @author Daniel Faust <hessijames@gmail.com> * @author Daniel Faust <hessijames@gmail.com>
* @version 0.3 * @version 0.3
*/ */
class ReplayGainFileList : public KListView class ReplayGainFileList : public TDEListView
{ {
Q_OBJECT Q_OBJECT
@ -123,8 +123,8 @@ public:
*/ */
virtual ~ReplayGainFileList(); virtual ~ReplayGainFileList();
ReplayGainFileListItem* firstChild() const { return static_cast<ReplayGainFileListItem*>( KListView::firstChild() ); } ReplayGainFileListItem* firstChild() const { return static_cast<ReplayGainFileListItem*>( TDEListView::firstChild() ); }
ReplayGainFileListItem* itemAt( const TQPoint& point ) const { return static_cast<ReplayGainFileListItem*>( KListView::itemAt(point) ); } ReplayGainFileListItem* itemAt( const TQPoint& point ) const { return static_cast<ReplayGainFileListItem*>( TDEListView::itemAt(point) ); }
int columnByName( const TQString& name ); int columnByName( const TQString& name );
@ -190,16 +190,16 @@ private:
float timeCount; // the sum of all track lengths in the current album / the track length of the current file float timeCount; // the sum of all track lengths in the current album / the track length of the current file
/** The context menu for editing or starting the files */ /** The context menu for editing or starting the files */
KPopupMenu* contextMenu; TDEPopupMenu* contextMenu;
KActionCollection* actionCollection; TDEActionCollection* actionCollection;
KAction* calc_gain; TDEAction* calc_gain;
KAction* remove_gain; TDEAction* remove_gain;
KAction* newalbum; TDEAction* newalbum;
KAction* remove; TDEAction* remove;
KAction* paste; TDEAction* paste;
KAction* open_albums; TDEAction* open_albums;
KAction* close_albums; TDEAction* close_albums;
private slots: private slots:
void showContextMenu( TQListViewItem*, const TQPoint&, int ); void showContextMenu( TQListViewItem*, const TQPoint&, int );

@ -47,7 +47,7 @@
// ### soundkonverter 0.4: save file list when kde session gets terminated // ### soundkonverter 0.4: save file list when kde session gets terminated
soundKonverter::soundKonverter() soundKonverter::soundKonverter()
: KMainWindow( 0, "soundkonverter-mainwindow", WType_TopLevel | WDestructiveClose | WStyle_ContextHelp ), : TDEMainWindow( 0, "soundkonverter-mainwindow", WType_TopLevel | WDestructiveClose | WStyle_ContextHelp ),
DCOPObject( "soundkonverter-app" ) DCOPObject( "soundkonverter-app" )
{ {
// this is our first startup, set instances to zero // this is our first startup, set instances to zero
@ -113,36 +113,36 @@ soundKonverter::soundKonverter()
options = new Options( config, i18n("Choose your prefered output options and click on \"Add files ...\"!"), widget, "options" ); options = new Options( config, i18n("Choose your prefered output options and click on \"Add files ...\"!"), widget, "options" );
fileList = new FileList( cdManager, tagEngine, config, options, logger, widget, "fileList" ); fileList = new FileList( cdManager, tagEngine, config, options, logger, widget, "fileList" );
startAction = new KAction( i18n("&Start conversion"), "run", 0, TQT_TQOBJECT(fileList), TQT_SLOT(startConversion()), actionCollection(), "start" ); startAction = new TDEAction( i18n("&Start conversion"), "run", 0, TQT_TQOBJECT(fileList), TQT_SLOT(startConversion()), actionCollection(), "start" );
startAction->setEnabled( false ); startAction->setEnabled( false );
new KAction( i18n("&Replay Gain Tool ..."), "soundkonverter_replaygain", CTRL+Key_R, TQT_TQOBJECT(this), TQT_SLOT(showReplayGainScanner()), actionCollection(), "replaygainscanner" ); new TDEAction( i18n("&Replay Gain Tool ..."), "soundkonverter_replaygain", CTRL+Key_R, TQT_TQOBJECT(this), TQT_SLOT(showReplayGainScanner()), actionCollection(), "replaygainscanner" );
//new KAction( i18n("R&epair Tool ..."), "soundkonverter_repair", CTRL+Key_E, TQT_TQOBJECT(this), TQT_SLOT(showRepairTool()), actionCollection(), "repairtool" ); //new TDEAction( i18n("R&epair Tool ..."), "soundkonverter_repair", CTRL+Key_E, TQT_TQOBJECT(this), TQT_SLOT(showRepairTool()), actionCollection(), "repairtool" );
new KAction( i18n("C&uesheet Editor ..."), "kwrite", CTRL+Key_U, TQT_TQOBJECT(this), TQT_SLOT(showCuesheetEditor()), actionCollection(), "cuesheeteditor" ); new TDEAction( i18n("C&uesheet Editor ..."), "kwrite", CTRL+Key_U, TQT_TQOBJECT(this), TQT_SLOT(showCuesheetEditor()), actionCollection(), "cuesheeteditor" );
new KAction( i18n("Show &Log ..."), "view_text", CTRL+Key_L, TQT_TQOBJECT(this), TQT_SLOT(showLogViewer()), actionCollection(), "log" ); new TDEAction( i18n("Show &Log ..."), "view_text", CTRL+Key_L, TQT_TQOBJECT(this), TQT_SLOT(showLogViewer()), actionCollection(), "log" );
// new KAction( i18n("About &Plugins ..."), "connect_creating", CTRL+Key_P, TQT_TQOBJECT(this), TQT_SLOT(showAboutPlugins()), actionCollection(), "about_plugins" ); // new TDEAction( i18n("About &Plugins ..."), "connect_creating", CTRL+Key_P, TQT_TQOBJECT(this), TQT_SLOT(showAboutPlugins()), actionCollection(), "about_plugins" );
stopAction = new KAction( i18n("S&top after current file is complete"), "stop", CTRL+Key_O, TQT_TQOBJECT(fileList), TQT_SLOT(stopConversion()), actionCollection(), "stop" ); stopAction = new TDEAction( i18n("S&top after current file is complete"), "stop", CTRL+Key_O, TQT_TQOBJECT(fileList), TQT_SLOT(stopConversion()), actionCollection(), "stop" );
continueAction = new KAction( i18n("&Continue after current file is complete"), "run", CTRL+Key_T, TQT_TQOBJECT(fileList), TQT_SLOT(continueConversion()), actionCollection(), "continue" ); continueAction = new TDEAction( i18n("&Continue after current file is complete"), "run", CTRL+Key_T, TQT_TQOBJECT(fileList), TQT_SLOT(continueConversion()), actionCollection(), "continue" );
killAction = new KAction( i18n("Stop &immediately"), "exit", CTRL+Key_K, TQT_TQOBJECT(fileList), TQT_SLOT(killConversion()), actionCollection(), "kill" ); killAction = new TDEAction( i18n("Stop &immediately"), "exit", CTRL+Key_K, TQT_TQOBJECT(fileList), TQT_SLOT(killConversion()), actionCollection(), "kill" );
stopActionMenu = new KActionMenu( i18n("Stop"), "stop", actionCollection(), "stopMenu" ); stopActionMenu = new TDEActionMenu( i18n("Stop"), "stop", actionCollection(), "stopMenu" );
stopActionMenu->setDelayed( false ); stopActionMenu->setDelayed( false );
stopActionMenu->setEnabled( false ); stopActionMenu->setEnabled( false );
// stopActionMenu->insert( stopAction ); // stopActionMenu->insert( stopAction );
// stopActionMenu->insert( continueAction ); // stopActionMenu->insert( continueAction );
// stopActionMenu->insert( killAction ); // stopActionMenu->insert( killAction );
/* veryHighPriorityAction = new KToggleAction( i18n("Very hi&gh"), CTRL+Key_1, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "veryhigh" ); /* veryHighPriorityAction = new TDEToggleAction( i18n("Very hi&gh"), CTRL+Key_1, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "veryhigh" );
veryHighPriorityAction->setExclusiveGroup("priorityActionMenu"); veryHighPriorityAction->setExclusiveGroup("priorityActionMenu");
highPriorityAction = new KToggleAction( i18n("&High"), CTRL+Key_2, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "high" ); highPriorityAction = new TDEToggleAction( i18n("&High"), CTRL+Key_2, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "high" );
highPriorityAction->setExclusiveGroup("priorityActionMenu"); highPriorityAction->setExclusiveGroup("priorityActionMenu");
normalPriorityAction = new KToggleAction( i18n("&Normal"), CTRL+Key_3, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "nomal" ); normalPriorityAction = new TDEToggleAction( i18n("&Normal"), CTRL+Key_3, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "nomal" );
normalPriorityAction->setExclusiveGroup("priorityActionMenu"); normalPriorityAction->setExclusiveGroup("priorityActionMenu");
normalPriorityAction->setChecked(true); normalPriorityAction->setChecked(true);
lowPriorityAction = new KToggleAction( i18n("&Low"), CTRL+Key_4, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "low" ); lowPriorityAction = new TDEToggleAction( i18n("&Low"), CTRL+Key_4, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "low" );
lowPriorityAction->setExclusiveGroup("priorityActionMenu"); lowPriorityAction->setExclusiveGroup("priorityActionMenu");
veryLowPriorityAction = new KToggleAction( i18n("Very lo&w"), CTRL+Key_5, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "verylow" ); veryLowPriorityAction = new TDEToggleAction( i18n("Very lo&w"), CTRL+Key_5, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "verylow" );
veryLowPriorityAction->setExclusiveGroup("priorityActionMenu"); veryLowPriorityAction->setExclusiveGroup("priorityActionMenu");
priorityActionMenu = new KActionMenu( i18n("En-/Decoder priority"), "ksysguard", actionCollection(), "priorityMenu" ); priorityActionMenu = new TDEActionMenu( i18n("En-/Decoder priority"), "ksysguard", actionCollection(), "priorityMenu" );
priorityActionMenu->setDelayed( false ); priorityActionMenu->setDelayed( false );
priorityActionMenu->insert(veryHighPriorityAction); priorityActionMenu->insert(veryHighPriorityAction);
priorityActionMenu->insert(highPriorityAction); priorityActionMenu->insert(highPriorityAction);
@ -151,14 +151,14 @@ soundKonverter::soundKonverter()
priorityActionMenu->insert(veryLowPriorityAction);*/ priorityActionMenu->insert(veryLowPriorityAction);*/
//priorityChanged(); //priorityChanged();
new KAction( i18n("A&dd Files ..."), "sound", CTRL+Key_D, TQT_TQOBJECT(this), TQT_SLOT(showFileDialog()), actionCollection(), "add_files" ); new TDEAction( i18n("A&dd Files ..."), "sound", CTRL+Key_D, TQT_TQOBJECT(this), TQT_SLOT(showFileDialog()), actionCollection(), "add_files" );
new KAction( i18n("Add &Folder ..."), "folder", CTRL+Key_F, TQT_TQOBJECT(this), TQT_SLOT(showDirDialog()), actionCollection(), "add_folder" ); new TDEAction( i18n("Add &Folder ..."), "folder", CTRL+Key_F, TQT_TQOBJECT(this), TQT_SLOT(showDirDialog()), actionCollection(), "add_folder" );
new KAction( i18n("Add CD &tracks ..."), "cdaudio_unmount", CTRL+Key_T, TQT_TQOBJECT(this), TQT_SLOT(showCdDialog()), actionCollection(), "add_audiocd" ); new TDEAction( i18n("Add CD &tracks ..."), "cdaudio_unmount", CTRL+Key_T, TQT_TQOBJECT(this), TQT_SLOT(showCdDialog()), actionCollection(), "add_audiocd" );
new KAction( i18n("Add &URL ..."), "browser", CTRL+Key_U, TQT_TQOBJECT(this), TQT_SLOT(showUrlDialog()), actionCollection(), "add_url" ); new TDEAction( i18n("Add &URL ..."), "browser", CTRL+Key_U, TQT_TQOBJECT(this), TQT_SLOT(showUrlDialog()), actionCollection(), "add_url" );
KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection()); KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
new KAction( i18n("L&oad file list"), "fileopen", 0, TQT_TQOBJECT(fileList), TQT_SLOT(load()), actionCollection(), "load" ); new TDEAction( i18n("L&oad file list"), "fileopen", 0, TQT_TQOBJECT(fileList), TQT_SLOT(load()), actionCollection(), "load" );
new KAction( i18n("Sa&ve file list"), "filesave", 0, TQT_TQOBJECT(fileList), TQT_SLOT(save()), actionCollection(), "save" ); new TDEAction( i18n("Sa&ve file list"), "filesave", 0, TQT_TQOBJECT(fileList), TQT_SLOT(save()), actionCollection(), "save" );
// TODO //KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT(pasteFiles()), actionCollection() ); // TODO //KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT(pasteFiles()), actionCollection() );

@ -22,9 +22,9 @@ class LogViewer;
class TQProgressBar; class TQProgressBar;
class KPushButton; class KPushButton;
class KAction; class TDEAction;
class KToggleAction; class TDEToggleAction;
class KActionMenu; class TDEActionMenu;
class KSystemTray; class KSystemTray;
/** /**
@ -32,7 +32,7 @@ class KSystemTray;
* @author Daniel Faust <hessijames@gmail.com> * @author Daniel Faust <hessijames@gmail.com>
* @version 0.3 * @version 0.3
*/ */
class soundKonverter : public KMainWindow, virtual public DCOPInterface class soundKonverter : public TDEMainWindow, virtual public DCOPInterface
{ {
Q_OBJECT Q_OBJECT
@ -138,18 +138,18 @@ private:
/** The button to stop the conversion */ /** The button to stop the conversion */
KPushButton* pStop; KPushButton* pStop;
KAction* startAction; TDEAction* startAction;
KAction* stopAction; TDEAction* stopAction;
KAction* continueAction; TDEAction* continueAction;
KAction* killAction; TDEAction* killAction;
KActionMenu* stopActionMenu; TDEActionMenu* stopActionMenu;
KToggleAction* showToolBarAction; TDEToggleAction* showToolBarAction;
// KToggleAction* veryHighPriorityAction; // TDEToggleAction* veryHighPriorityAction;
// KToggleAction* highPriorityAction; // TDEToggleAction* highPriorityAction;
// KToggleAction* normalPriorityAction; // TDEToggleAction* normalPriorityAction;
// KToggleAction* lowPriorityAction; // TDEToggleAction* lowPriorityAction;
// KToggleAction* veryLowPriorityAction; // TDEToggleAction* veryLowPriorityAction;
// KActionMenu* priorityActionMenu; // TDEActionMenu* priorityActionMenu;
int configStartPage; int configStartPage;

Loading…
Cancel
Save