Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/TagDialog.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 54 | public: | |||
---|---|---|---|---|---|
59 | explicit TagDialog( Meta::TrackPtr track, QWidget *parent = 0 ); | 59 | explicit TagDialog( Meta::TrackPtr track, QWidget *parent = 0 ); | ||
60 | explicit TagDialog( Collections::QueryMaker *qm ); | 60 | explicit TagDialog( Collections::QueryMaker *qm ); | ||
61 | ~TagDialog(); | 61 | ~TagDialog(); | ||
62 | 62 | | |||
63 | // inherited from Meta::Observer | 63 | // inherited from Meta::Observer | ||
64 | using Observer::metadataChanged; | 64 | using Observer::metadataChanged; | ||
65 | void metadataChanged( Meta::AlbumPtr album ); | 65 | void metadataChanged( Meta::AlbumPtr album ); | ||
66 | 66 | | |||
67 | Q_SIGNALS: | | |||
68 | void lyricsChanged( const QString& ); | | |||
69 | | ||||
70 | private Q_SLOTS: | 67 | private Q_SLOTS: | ||
71 | void accept(); | 68 | void accept(); | ||
72 | void cancelPressed(); | 69 | void cancelPressed(); | ||
73 | void openPressed(); | 70 | void openPressed(); | ||
74 | void previousTrack(); | 71 | void previousTrack(); | ||
75 | void nextTrack(); | 72 | void nextTrack(); | ||
76 | void perTrack( bool ); | 73 | void perTrack( bool ); | ||
77 | void checkChanged(); | 74 | void checkChanged(); | ||
▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 166 | /** Sets the UI to edit either one or the complete list of tracks. | |||
170 | Don't forget to save the old ui values and set the new tags afterwards. | 167 | Don't forget to save the old ui values and set the new tags afterwards. | ||
171 | */ | 168 | */ | ||
172 | void setPerTrack( bool isEnabled ); | 169 | void setPerTrack( bool isEnabled ); | ||
173 | 170 | | |||
174 | void updateButtons(); | 171 | void updateButtons(); | ||
175 | void updateCover(); | 172 | void updateCover(); | ||
176 | void setControlsAccessability(); | 173 | void setControlsAccessability(); | ||
177 | 174 | | |||
178 | /** | | |||
179 | * Stores changes to labels for a specific track | | |||
180 | * @arg track Track to store the labels to | | |||
181 | * @arg labels The new set of labels for the track | | |||
182 | */ | | |||
183 | void saveLabels( Meta::TrackPtr track, const QStringList &labels ); | | |||
184 | | ||||
185 | /** Writes all the tags to all the tracks. | 175 | /** Writes all the tags to all the tracks. | ||
186 | This finally updates the Meta::Tracks | 176 | This finally updates the Meta::Tracks | ||
187 | */ | 177 | */ | ||
188 | void saveTags(); | 178 | void saveTags(); | ||
189 | 179 | | |||
190 | /** | 180 | /** | ||
191 | * Returns "Unknown" if the value is null or not known | 181 | * Returns "Unknown" if the value is null or not known | ||
192 | * Otherwise returns the string | 182 | * Otherwise returns the string | ||
193 | */ | 183 | */ | ||
194 | const QString unknownSafe( const QString &s ) const; | 184 | const QString unknownSafe( const QString &s ) const; | ||
195 | const QString unknownSafe( int i ) const; | 185 | const QString unknownSafe( int i ) const; | ||
196 | 186 | | |||
197 | const QStringList filenameSchemes(); | 187 | const QStringList filenameSchemes(); | ||
198 | 188 | | |||
199 | void selectOrInsertText( const QString &text, QComboBox *comboBox ); | 189 | void selectOrInsertText( const QString &text, QComboBox *comboBox ); | ||
200 | 190 | | |||
201 | QString m_path; // the directory of the current track/tracks | 191 | QString m_path; // the directory of the current track/tracks | ||
202 | 192 | | |||
203 | LabelListModel *m_labelModel; //!< Model MVC Class for Track label list | 193 | LabelListModel *m_labelModel; //!< Model MVC Class for Track label list | ||
204 | 194 | | |||
205 | bool m_perTrack; | 195 | bool m_perTrack; | ||
206 | Meta::TrackList m_tracks; | 196 | Meta::TrackList m_tracks; | ||
207 | Meta::TrackPtr m_currentTrack; | 197 | Meta::TrackPtr m_currentTrack; | ||
198 | Meta::AlbumPtr m_currentAlbum; | ||||
208 | int m_currentTrackNum; | 199 | int m_currentTrackNum; | ||
209 | 200 | | |||
210 | /** True if m_storedTags contains changed. | 201 | /** True if m_storedTags contains changed. | ||
211 | The pushButton_ok will be activated if this one is true and the UI | 202 | The pushButton_ok will be activated if this one is true and the UI | ||
212 | has further changes | 203 | has further changes | ||
213 | */ | 204 | */ | ||
214 | bool m_changed; | 205 | bool m_changed; | ||
215 | 206 | | |||
Show All 22 Lines |