~ubuntu-branches/ubuntu/gutsy/kid3/gutsy

« back to all changes in this revision

Viewing changes to kid3/kid3.h

  • Committer: Bazaar Package Importer
  • Author(s): Sarah Hobbs
  • Date: 2006-07-14 12:25:16 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060714122516-p2wk0iyzumu6jx42
Tags: 0.7-1ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
class QAction;
24
24
typedef QMainWindow Kid3AppBaseClass;
25
25
#endif
 
26
#include "importtrackdata.h"
26
27
class KURL;
27
28
class id3Form;
28
29
class TaggedFile;
32
33
class FreedbConfig;
33
34
class StandardTags;
34
35
class FrameList;
 
36
class ImportDialog;
 
37
class ExportDialog;
 
38
class NumberTracksDialog;
35
39
 
36
40
#ifdef HAVE_TUNEPIMP
37
41
class MusicBrainzConfig;
357
361
        void slotImport(void);
358
362
 
359
363
        /**
 
364
         * Import from freedb.org.
 
365
         */
 
366
        void slotImportFreedb();
 
367
 
 
368
        /**
 
369
         * Import from MusicBrainz.
 
370
         */
 
371
        void slotImportMusicBrainz();
 
372
 
 
373
        /**
 
374
         * Export.
 
375
         */
 
376
        void slotExport();
 
377
 
 
378
        /**
 
379
         * Show or hide ID3v1.1 controls.
 
380
         */
 
381
        void slotSettingsShowHideV1();
 
382
 
 
383
        /**
 
384
         * Show or hide ID3v2.3 controls.
 
385
         */
 
386
        void slotSettingsShowHideV2();
 
387
 
 
388
        /**
360
389
         * Preferences.
361
390
         */
362
391
        void slotSettingsConfigure(void);
363
392
 
364
393
        /**
365
 
         * Apply format.
366
 
         */
367
 
        void slotApplyFormat(void);
 
394
         * Apply filename format.
 
395
         */
 
396
        void slotApplyFilenameFormat(void);
 
397
 
 
398
        /**
 
399
         * Apply ID3 format.
 
400
         */
 
401
        void slotApplyId3Format(void);
368
402
 
369
403
        /**
370
404
         * Rename directory.
371
405
         */
372
406
        void slotRenameDirectory(void);
373
407
 
 
408
        /**
 
409
         * Number tracks.
 
410
         */
 
411
        void slotNumberTracks();
 
412
 
 
413
private slots:
 
414
        /**
 
415
         * Set data to be exported.
 
416
         *
 
417
         * @param src ExportDialog::SrcV1 to export ID3v1,
 
418
         *            ExportDialog::SrcV2 to export ID3v2
 
419
         */
 
420
        void setExportData(int src);
 
421
 
374
422
private:
375
423
        /**
376
424
         * Save all changed files.
417
465
        void getSelectedFileWithFrameList(
418
466
                TaggedFile*& taggedFile, FrameList*& framelist);
419
467
        
 
468
        /**
 
469
         * Format a filename if format while editing is switched on.
 
470
         *
 
471
         * @param taggedFile file to modify
 
472
         */
 
473
        void formatFileNameIfEnabled(TaggedFile* taggedFile) const;
 
474
 
 
475
        /**
 
476
         * Format tags if format while editing is switched on.
 
477
         *
 
478
         * @param st standard tags
 
479
         */
 
480
        void formatStandardTagsIfEnabled(StandardTags* st) const;
 
481
 
 
482
        /**
 
483
         * Update track data and create import dialog.
 
484
         */
 
485
        void setupImportDialog();
 
486
 
 
487
        /**
 
488
         * Execute the import dialog.
 
489
         */
 
490
        void execImportDialog();
 
491
 
 
492
        /**
 
493
         * Show or hide the ID3V1.1 controls according to the settings and
 
494
         * set the menu entries appropriately.
 
495
         */
 
496
        void updateHideV1();
 
497
 
 
498
        /**
 
499
         * Show or hide the ID3V2.3 controls according to the settings and
 
500
         * set the menu entries appropriately.
 
501
         */
 
502
        void updateHideV2();
 
503
 
420
504
        /** GUI with controls, created by Qt Designer */
421
505
        id3Form *view;
422
506
        /** TRUE if any file was modified */
425
509
        QString doc_dir;
426
510
        /** Copy buffer */
427
511
        StandardTags *copytags;
 
512
        /** Import dialog */
 
513
        ImportDialog* m_importDialog;
 
514
        /** Track data list */
 
515
        ImportTrackDataVector m_trackDataList;
 
516
        /** Export dialog */
 
517
        ExportDialog* m_exportDialog;
 
518
        /** Number tracks dialog */
 
519
        NumberTracksDialog* m_numberTracksDialog;
428
520
 
429
521
#ifdef CONFIG_USE_KDE
430
522
        /** the configuration object of the application */
439
531
        KToggleAction* viewStatusBar;
440
532
        KAction* settingsShortcuts;
441
533
        KAction* settingsConfigure;
 
534
        KAction* settingsShowHideV1;
 
535
        KAction* settingsShowHideV2;
442
536
#else
443
537
        Kid3Settings* config;
444
538
        QAction* fileOpen;
447
541
        QAction* fileCreatePlaylist;
448
542
        QAction* fileQuit;
449
543
        QAction* fileImport;
450
 
        QAction* toolsApplyFormat;
 
544
        QAction* fileImportFreedb;
 
545
#ifdef HAVE_TUNEPIMP
 
546
        QAction* fileImportMusicBrainz;
 
547
#endif
 
548
        QAction* fileExport;
 
549
        QAction* toolsApplyFilenameFormat;
 
550
        QAction* toolsApplyId3Format;
451
551
        QAction* toolsRenameDirectory;
 
552
        QAction* toolsNumberTracks;
 
553
        QAction* settingsShowHideV1;
 
554
        QAction* settingsShowHideV2;
452
555
        QAction* settingsConfigure;
453
556
        QAction* helpHandbook;
454
557
        QAction* helpAbout;