diff options
Diffstat (limited to 'src/filelist.h')
-rwxr-xr-x | src/filelist.h | 73 |
1 files changed, 37 insertions, 36 deletions
diff --git a/src/filelist.h b/src/filelist.h index 484eedc..c2e39a6 100755 --- a/src/filelist.h +++ b/src/filelist.h @@ -16,9 +16,9 @@ class Config; class Logger; class FormatItem; // NOTE DEBUG -class QPainter; -class QColorGroup; -class QSimpleRichText; +class TQPainter; +class TQColorGroup; +class TQSimpleRichText; class KProgress; class KPopupMenu; class KAction; @@ -34,23 +34,23 @@ class FileListItem : public KListViewItem public: /** * Constructor - * @param parent The parent list view + * @param tqparent The tqparent list view */ - FileListItem( KListView* parent ); + FileListItem( KListView* tqparent ); /** * Constructor - * @param parent The parent list view + * @param tqparent The tqparent list view * @param after The item, the new item should be placed after */ - FileListItem( KListView* parent, FileListItem* after ); + FileListItem( KListView* tqparent, FileListItem* after ); /** * Destructor */ virtual ~FileListItem(); - virtual void paintCell( QPainter* p, const QColorGroup& cg, int column, int width, int alignment ); + virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int tqalignment ); //void updateOutputCell(); //void updateOptionsCell(); @@ -63,19 +63,19 @@ public: 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! // and the user can change them! - QString fileName; // just the _name_ of the file - QString mimeType; // the mime type of the file - QString fileFormat; // just the _format_ of the file (for easier use) - QString url; // the original input file name string + TQString fileName; // just the _name_ of the file + TQString mimeType; // the mime type of the file + TQString fileFormat; // just the _format_ of the file (for easier use) + TQString url; // the original input file name string bool converting; // is this item being converted at the moment? bool local; // is this file a local one? int track; // the number of the track, if it is on an audio cd // if it is lower than 0, it isn't an audio cd track at all - QString device; // the device of the audio cd + TQString device; // the device of the audio cd bool ripping; // is this track currently being ripped? float time; // the duration of the track, used for the calculation of the progress bar - QString notify; // execute this command, when the file is converted + TQString notify; // execute this command, when the file is converted }; /** @@ -86,13 +86,14 @@ public: class FileList : public KListView { Q_OBJECT + TQ_OBJECT public: /** * Constructor - * @param parent The parent widget + * @param tqparent The tqparent widget * @param name The name of the file list */ - FileList( CDManager*, TagEngine*, Config*, Options*, Logger*, QWidget *parent = 0, const char* name = 0 ); + FileList( CDManager*, TagEngine*, Config*, Options*, Logger*, TQWidget *tqparent = 0, const char* name = 0 ); /** * Destructor @@ -102,32 +103,32 @@ public: FileListItem* firstChild() const { return static_cast<FileListItem*>( KListView::firstChild() ); } FileListItem* lastItem() const { return static_cast<FileListItem*>( KListView::lastItem() ); } - int columnByName( const QString& name ); + int columnByName( const TQString& name ); void updateItem( FileListItem* item ); bool queueEnabled() { return queue; } - void setNotify( const QString& cmd ) { notify = cmd; } + void setNotify( const TQString& cmd ) { notify = cmd; } protected: - virtual bool acceptDrag( QDropEvent *e ) const; + virtual bool acceptDrag( TQDropEvent *e ) const; private: /** Lists all file in a directory and adds them to the file list, if @p fast is false. The number of listed files is returned */ - int listDir( const QString& directory, QStringList filter, bool recursive = true, bool fast = false, int count = 0 ); + int listDir( const TQString& directory, TQStringList filter, bool recursive = true, bool fast = false, int count = 0 ); /** A progressbar, that is shown, when a directory is added recursive */ - KProgress* pScanStatus; + KProgress* pScantqStatus; void convertNextItem(); - void viewportPaintEvent( QPaintEvent* ); - void viewportResizeEvent( QResizeEvent* ); + void viewportPaintEvent( TQPaintEvent* ); + void viewportResizeEvent( TQResizeEvent* ); void debug(); // NOTE DEBUG - QString debug_params( ConversionOptions conversionOptions, FormatItem* formatItem ); // NOTE DEBUG + TQString debug_params( ConversionOptions conversionOptions, FormatItem* formatItem ); // NOTE DEBUG - QSimpleRichText* bubble; + TQSimpleRichText* bubble; /** The context menu for editing or starting the files */ KPopupMenu* contextMenu; @@ -147,7 +148,7 @@ private: Config* config; Logger* logger; - QValueList<FileListItem*> selectedFiles; + TQValueList<FileListItem*> selectedFiles; bool queue; @@ -156,20 +157,20 @@ private: * %i will be replaced by the input file path * %o " " " " " output " " */ - QString notify; + TQString notify; private slots: /* * The user clicked somewhere into the list view (e.g. the link in the bubble) */ -// void clickedSomewhere( QListViewItem*, const QPoint&, int ); +// void clickedSomewhere( TQListViewItem*, const TQPoint&, int ); /** * We'll recive a signal, when we should show the context menu * @p item The item, that's context menu should be shown * @p point The position of the click (start position of the context menu) */ - void showContextMenu( QListViewItem* item, const QPoint& point, int ); + void showContextMenu( TQListViewItem* item, const TQPoint& point, int ); /** * Remove selected items from the file list @@ -187,18 +188,18 @@ private slots: void stopSelectedItems(); void columnResizeEvent( int, int, int ); - void slotDropped( QDropEvent*, QListViewItem*, QListViewItem* ); // NOTE rename? + void slotDropped( TQDropEvent*, TQListViewItem*, TQListViewItem* ); // NOTE rename? public slots: - void addFiles( QStringList, FileListItem* after = 0, bool enabled = false ); // NOTE const QStringList& ? - void addDir( const QString&, const QStringList& filter = "", bool recursive = true ); - void addTracks( const QString& device, QValueList<int> ); - void addDisc( const QString& device ); + void addFiles( TQStringList, FileListItem* after = 0, bool enabled = false ); // NOTE const TQStringList& ? + void addDir( const TQString&, const TQStringList& filter = "", bool recursive = true ); + void addTracks( const TQString& device, TQValueList<int> ); + void addDisc( const TQString& device ); /** * The conversion of an item has finished and the state is reported ( 0 = ok, -1 = error, 1 = aborted ) */ void itemFinished( FileListItem*, int ); - void rippingFinished( const QString& device ); + void rippingFinished( const TQString& device ); void showOptionsEditorDialog(); void selectPreviousItem(); void selectNextItem(); @@ -215,7 +216,7 @@ public slots: signals: void convertItem( FileListItem* ); void stopItem( FileListItem* ); - void editItems( QValueList<FileListItem*> ); + void editItems( TQValueList<FileListItem*> ); void setPreviousItemEnabled( bool ); void setNextItemEnabled( bool ); //void moveEditor( int x, int y ); |