Debian Codegraph @

include/dialogs/cddb/submit.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2020 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_FREAC_CDDB_SUBMIT
14 #define H_FREAC_CDDB_SUBMIT
15
16 #include <smooth.h>
17
18 using namespace smooth;
19 using namespace smooth::GUI;
20
21 #include <cddb/cddbinfo.h>
22
23 namespace freac
24 {
25 class cddbSubmitDlg : public Dialogs::Dialog
26 {
27 private:
28 Divider *divbar;
29
30 Window *mainWnd;
31 Titlebar *mainWnd_titlebar;
32
33 GroupBox *group_drive;
34 ComboBox *combo_drive;
35
36 Text *text_artist;
37 EditBox *edit_artist;
38 List *list_artist;
39 Text *text_album;
40 EditBox *edit_album;
41 Text *text_year;
42 EditBox *edit_year;
43 Text *text_genre;
44 EditBox *edit_genre;
45 List *list_genre;
46 Text *text_disccomment;
47 MultiEdit *edit_disccomment;
48
49 ListBox *list_tracks;
50 Text *text_track;
51 EditBox *edit_track;
52 Text *text_trackartist;
53 EditBox *edit_trackartist;
54 Text *text_title;
55 EditBox *edit_title;
56 Text *text_comment;
57 MultiEdit *edit_comment;
58
59 Shortcut *shortcut_previous;
60 Shortcut *shortcut_next;
61 Shortcut *shortcut_first;
62 Shortcut *shortcut_last;
63
64 Text *text_cdstatus;
65 Text *text_status;
66
67 CheckBox *check_updateJoblist;
68 CheckBox *check_submitLater;
69
70 Button *btn_cancel;
71 Button *btn_submit;
72
73 Int activedrive;
74
75 Bool dontUpdateInfo;
76 Bool finishedArtist;
77 Bool updateJoblist;
78 Bool submitLater;
79
80 CDDBInfo cddbInfo;
81
82 Array<String> artists;
83 Array<String> titles;
84 Array<String> comments;
85 Array<Bool> data;
86
87 Void UpdateTrackList();
88 Widget *GetActiveEditBox();
89
90 Bool IsVariousArtists() const;
91
92 Bool IsDataValid() const;
93 static Bool IsStringValid(const String &);
94
95 static String GetCDDBGenre(const String &);
96 slots:
97 Void OnChangeSize(const Size &);
98
99 Void Submit();
100 Void Cancel();
101
102 Void ChangeDrive();
103 Void SelectTrack();
104 Void UpdateTrack();
105 Void FinishTrack();
106 Void FinishArtist();
107 Void UpdateComment();
108 Void ToggleSubmitLater();
109
110 Void SetArtist();
111
112 Void OnShortcutPrevious();
113 Void OnShortcutNext();
114 Void OnShortcutFirst();
115 Void OnShortcutLast();
116 public:
117 cddbSubmitDlg();
118 ~cddbSubmitDlg();
119
120 const Error &ShowDialog();
121 };
122 };
123
124 #endif