~ubuntu-branches/ubuntu/karmic/kid3/karmic

« back to all changes in this revision

Viewing changes to kid3/kid3.h

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2009-05-20 16:12:30 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090520161230-qetp532r8ydujkz2
Tags: upstream-1.2
Import upstream version 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * \author Urs Fleisch
7
7
 * \date 9 Jan 2003
8
8
 *
9
 
 * Copyright (C) 2003-2008  Urs Fleisch
 
9
 * Copyright (C) 2003-2009  Urs Fleisch
10
10
 *
11
11
 * This file is part of Kid3.
12
12
 *
67
67
class FrameList;
68
68
class ImportDialog;
69
69
class ExportDialog;
 
70
class BrowseCoverArtDialog;
70
71
class RenDirDialog;
71
72
class NumberTracksDialog;
72
73
class RenDirDialog;
73
74
class FilterDialog;
74
75
class FileFilter;
75
76
class QImage;
 
77
class DownloadDialog;
76
78
 
77
79
/** Kid3 application */
78
80
class Kid3App : public Kid3AppBaseClass
112
114
 
113
115
        /**
114
116
         * Update files of current selection.
 
117
         *
 
118
         * @param onlyIfSingleFileSelected if true, the selection is only updated
 
119
         *                                 if a single file is selected
115
120
         */
116
 
        void updateCurrentSelection();
 
121
        void updateCurrentSelection(bool onlyIfSingleFileSelected = false);
117
122
 
118
123
        /**
119
124
         * Copy tags 1 into copy buffer.
193
198
        void dropImage(const QImage& image);
194
199
 
195
200
        /**
 
201
         * Download an image file.
 
202
         *
 
203
         * @param url           URL of image
 
204
         * @param allFilesInDir true to add the image to all files in the directory
 
205
         */
 
206
        void downloadImage(const QString& url, bool allFilesInDir);
 
207
 
 
208
        /**
 
209
         * Handle URL on drop.
 
210
         *
 
211
         * @param txt dropped URL.
 
212
         */
 
213
        void dropUrl(const QString& txt);
 
214
 
 
215
        /**
196
216
         * Edit selected frame.
197
217
         */
198
218
        void editFrame();
510
530
        void slotImportMusicBrainz();
511
531
 
512
532
        /**
 
533
         * Browse album cover artwork.
 
534
         */
 
535
        void slotBrowseCoverArt();
 
536
 
 
537
        /**
513
538
         * Export.
514
539
         */
515
540
        void slotExport();
525
550
        void slotSettingsShowHideV2();
526
551
 
527
552
        /**
 
553
         * Show or hide picture.
 
554
         */
 
555
        void slotSettingsShowHidePicture();
 
556
 
 
557
        /**
528
558
         * Preferences.
529
559
         */
530
560
        void slotSettingsConfigure();
592
622
         */
593
623
        void scheduleRenameActions();
594
624
 
 
625
        /**
 
626
         * Add a downloaded image.
 
627
         *
 
628
         * @param data     HTTP response of download
 
629
         * @param mimeType MIME type of data
 
630
         * @param url      URL of downloaded data
 
631
         */
 
632
        void imageDownloaded(const QByteArray& data,
 
633
                             const QString& mimeType, const QString& url);
 
634
 
595
635
private:
596
636
        friend class ScriptInterface;
597
637
 
689
729
        void updateHideV2();
690
730
 
691
731
        /**
 
732
         * Show or hide the picture according to the settings and
 
733
         * set the menu entries appropriately.
 
734
         */
 
735
        void updateHidePicture();
 
736
 
 
737
        /**
692
738
         * Set filter state.
693
739
         *
694
740
         * @param val true if list is filtered
708
754
        bool m_modified;
709
755
        /** true if list is filtered */
710
756
        bool m_filtered;
 
757
        /** true to add frame to all files in directory in imageDownloaded() */
 
758
        bool m_downloadToAllFilesInDir;
711
759
        /** Copy buffer */
712
760
        FrameCollection m_copyTags;
713
761
        /** Import dialog */
714
762
        ImportDialog* m_importDialog;
715
763
        /** Track data list */
716
764
        ImportTrackDataVector m_trackDataList;
 
765
        /** Browse cover art dialog */
 
766
        BrowseCoverArtDialog* m_browseCoverArtDialog;
717
767
        /** Export dialog */
718
768
        ExportDialog* m_exportDialog;
719
769
        /** Rename directory dialog */
722
772
        NumberTracksDialog* m_numberTracksDialog;
723
773
        /** Filter dialog */
724
774
        FilterDialog* m_filterDialog;
 
775
        /** Download dialog */
 
776
        DownloadDialog* m_downloadDialog;
725
777
        /** Frame list */
726
778
        FrameList* m_framelist;
727
779
 
734
786
        KToggleAction* m_viewStatusBar;
735
787
        KAction* m_settingsShowHideV1;
736
788
        KAction* m_settingsShowHideV2;
 
789
        KAction* m_settingsShowHidePicture;
737
790
#else
738
791
        Kid3Settings* m_config;
739
792
        QAction* m_settingsShowHideV1;
740
793
        QAction* m_settingsShowHideV2;
 
794
        QAction* m_settingsShowHidePicture;
741
795
 
742
796
        static BrowserDialog* s_helpBrowser;
743
797
#endif