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

« back to all changes in this revision

Viewing changes to kid3/rendirdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2007-07-01 00:31:03 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070701003103-2qownnv49a7jdqm3
Tags: 0.9-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
         * @param caption    dialog title
32
32
         * @param taggedFile file to use for rename preview
33
33
         */
34
 
        RenDirDialog(QWidget *parent, const QString &caption,
35
 
                                 TaggedFile *taggedFile);
 
34
        RenDirDialog(QWidget* parent, const QString& caption,
 
35
                                                         TaggedFile* taggedFile);
 
36
 
36
37
        /**
37
38
         * Destructor.
38
39
         */
39
40
        ~RenDirDialog();
40
 
        /**
41
 
         * Get new directory name.
42
 
         *
43
 
         * @return new directory name.
44
 
         */
45
 
        void setNewDirname(const QString &dir);
46
 
        /**
47
 
         * Get new directory name.
48
 
         *
49
 
         * @return new directory name.
50
 
         */
51
 
        QString getNewDirname(void) const;
 
41
 
 
42
        /**
 
43
         * Get new directory name.
 
44
         *
 
45
         * @return new directory name.
 
46
         */
 
47
        void setNewDirname(const QString& dir);
 
48
 
 
49
        /**
 
50
         * Get new directory name.
 
51
         *
 
52
         * @return new directory name.
 
53
         */
 
54
        QString getNewDirname() const;
 
55
 
52
56
        /**
53
57
         * Generate new directory name according to current settings.
54
58
         *
58
62
         *
59
63
         * @return new directory name.
60
64
         */
61
 
        QString generateNewDirname(TaggedFile *taggedFile, QString *olddir);
 
65
        QString generateNewDirname(TaggedFile* taggedFile, QString* olddir);
 
66
 
62
67
        /**
63
68
         * Perform renaming or creation of directory according to current settings.
64
69
         *
71
76
         * @return true if other files can be processed,
72
77
         *         false if operation is finished.
73
78
         */
74
 
        bool performAction(TaggedFile *taggedFile, bool& again, QString *errorMsg);
 
79
        bool performAction(TaggedFile* taggedFile, bool& again, QString* errorMsg);
75
80
 
76
81
private slots:
77
82
        /**
99
104
         *
100
105
         * @return true if directory exists or was created successfully.
101
106
         */
102
 
        bool createDirectory(const QString &dir,
103
 
                                                 QString *errorMsg) const;
 
107
        bool createDirectory(const QString& dir,
 
108
                                                 QString* errorMsg) const;
104
109
 
105
110
        /**
106
111
         * Rename a directory.
113
118
         * @return true if rename successful.
114
119
         */
115
120
        bool renameDirectory(
116
 
                const QString &olddir, const QString &newdir, QString *errorMsg) const;
 
121
                const QString& olddir, const QString& newdir, QString* errorMsg) const;
117
122
 
118
123
        /**
119
124
         * Rename a file.
125
130
         *
126
131
         * @return true if rename successful or newfn already exists.
127
132
         */
128
 
        bool renameFile(const QString &oldfn, const QString &newfn,
129
 
                                        QString *errorMsg) const;
 
133
        bool renameFile(const QString& oldfn, const QString& newfn,
 
134
                                                                        QString* errorMsg) const;
130
135
 
131
136
        enum Action { ActionRename = 0, ActionCreate = 1 };
132
137
        enum TagVersion { TagV1 = 0, TagV2 = 1 };
133
 
        QComboBox *formatComboBox;
134
 
        QComboBox *actionComboBox;
135
 
        QComboBox *tagversionComboBox;
136
 
        QLabel *currentDirLabel;
137
 
        QLabel *newDirLabel;
 
138
 
 
139
        QComboBox* m_formatComboBox;
 
140
        QComboBox* m_actionComboBox;
 
141
        QComboBox* m_tagversionComboBox;
 
142
        QLabel* m_currentDirLabel;
 
143
        QLabel* m_newDirLabel;
138
144
        TaggedFile* m_taggedFile;
139
145
};
140
146