blob: 678b444812785e3aa12ebc1fdd2fb0fb89e51340 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
#ifndef OPTIONSEDITOR_H
#define OPTIONSEDITOR_H
#include <kdialogbase.h>
//#include <kpushbutton.h>
class Options;
class Config;
class TagEngine;
class FileList;
class FileListItem;
class KLineEdit;
class KComboBox;
class KIntSpinBox;
class KTextEdit;
class KPushButton;
class TQLabel;
/**
* @short The options edit dialog that can be opened through the file list's context menu
* @author Daniel Faust <[email protected]>
* @version 0.3
*/
class OptionsEditor : public KDialogBase
{
Q_OBJECT
TQ_OBJECT
public:
enum Page {
OptionsPage,
TagsPage
};
/**
* Constructor
*/
OptionsEditor( TagEngine*, Config*, FileList* _fileList, TQWidget* parent = 0, const char* name=0, Page startPage = OptionsPage );
/**
* Destructor
*/
virtual ~OptionsEditor();
FileListItem* selectedItem();
private:
FileList* fileList;
Config* config;
TagEngine* tagEngine;
TQFrame* conversionOptions;
TQFrame* tags;
/** The widget, where we can set our output options */
Options* options;
/** A lineedit for entering the title of track */
TQLabel* lTitleLabel;
KLineEdit* lTitle;
KPushButton* pTitleEdit;
/** A spinbox for entering or selecting the track number */
TQLabel* lNumberLabel;
KIntSpinBox* iNumber;
KPushButton* pNumberEdit;
/** A lineedit for entering the artist of a track */
TQLabel* lArtistLabel;
KLineEdit* lArtist;
KPushButton* pArtistEdit;
/** A lineedit for entering the composer of a track */
TQLabel* lComposerLabel;
KLineEdit* lComposer;
KPushButton* pComposerEdit;
/** A lineedit for entering the album name */
TQLabel* lAlbumLabel;
KLineEdit* lAlbum;
KPushButton* pAlbumEdit;
/** A spinbox for entering or selecting the disc number */
TQLabel* lDiscLabel;
KIntSpinBox* iDisc;
KPushButton* pDiscEdit;
/** A spinbox for entering or selecting the year of the album */
TQLabel* lYearLabel;
KIntSpinBox* iYear;
KPushButton* pYearEdit;
/** A combobox for entering or selecting the genre of the album */
TQLabel* lGenreLabel;
KComboBox* cGenre;
KPushButton* pGenreEdit;
/** A textedit for entering a comment for a track */
TQLabel* lCommentLabel;
KTextEdit* tComment;
KPushButton* pCommentEdit;
/** When hitting this button, the options lock (when multiple files are selected) will be deactivated */
TQLabel* lEditOptions;
KPushButton* pEditOptions;
/** When hitting this button, the tag lock (when reading tags failed) will be deactivated */
TQLabel* lEditTags;
KPushButton* pEditTags;
//FileListItem* currentItem;
TQValueList<FileListItem*> selectedItems;
void setTagInputEnabled( bool enabled );
private slots:
void optionsChanged();
void editTitleClicked();
void editNumberClicked();
void editArtistClicked();
void editComposerClicked();
void editAlbumClicked();
void editDiscClicked();
void editYearClicked();
void editGenreClicked();
void editCommentClicked();
void titleChanged( const TQString& text );
void numberChanged( int value );
void artistChanged( const TQString& text );
void composerChanged( const TQString& text );
void albumChanged( const TQString& text );
void discChanged( int value );
void yearChanged( int value );
void genreChanged( const TQString& text );
void commentChanged();
void editOptionsClicked();
void editTagsClicked();
public slots:
void itemsSelected( TQValueList<FileListItem*> );
void setPreviousEnabled( bool );
void setNextEnabled( bool );
//void moveWindow( int x, int y );
signals:
void previousItem();
void nextItem();
};
#endif // OPTIONSEDITOR_H
|