1
1
# data file for the Fltk User Interface Designer (fluid)
2
- version 1.0110
3
- header_name {.h}
2
+ version 1.0110
3
+ header_name {.h}
4
4
code_name {.cxx}
5
5
decl {//Copyright (c) Nasca Octavian Paul. Released under GNU General Public License version 2} {public
6
- }
6
+ }
7
7
8
- decl {\#include <FL/Fl_File_Chooser.H>} {}
8
+ decl {\#include <FL/Fl_File_Chooser.H>} {}
9
9
10
10
decl {\#include <FL/Fl_Box.H>} {public
11
- }
11
+ }
12
12
13
13
decl {\#include <FL/Fl_Group.H>} {public
14
- }
14
+ }
15
15
16
16
decl {\#include <FL/Fl_Box.H>} {public
17
- }
17
+ }
18
18
19
19
decl {\#include <FL/fl_draw.H>} {public
20
- }
20
+ }
21
21
22
22
decl {\#include <FL/Fl_Value_Input.H>} {public
23
- }
23
+ }
24
24
25
25
decl {\#include <FL/fl_ask.H>} {public
26
- }
26
+ }
27
27
28
- decl {\#include<sys/stat.h>} {}
28
+ decl {\#include<sys/stat.h>} {}
29
29
30
- decl {\#include <stdio.h>} {}
30
+ decl {\#include <stdio.h>} {}
31
31
32
- decl {\#include <string>} {}
32
+ decl {\#include <string>} {}
33
33
34
- decl {\#include <math.h>} {}
34
+ decl {\#include <math.h>} {}
35
35
36
36
decl {\#include "Control.h"} {public
37
- }
37
+ }
38
38
39
39
decl {\#include "FreeEditUI.h"} {public
40
- }
40
+ }
41
41
42
42
decl {\#include "version.h"} {public
43
- }
43
+ }
44
44
45
45
Function {hex4n(char c)} {return_type int
46
46
} {
@@ -49,7 +49,7 @@ if ((c>='0')&&(c<='9')) return (c-'0');
49
49
if ((c>='A')&&(c<='F')) return (c-'A')+10;
50
50
51
51
return 0;} {}
52
- }
52
+ }
53
53
54
54
Function {unescape(std::string s)} {return_type {std::string}
55
55
} {
@@ -73,7 +73,7 @@ while (sk<slen){
73
73
74
74
//printf("%s\\n%s\\n",s.c_str(),result.c_str());
75
75
return result;} {}
76
- }
76
+ }
77
77
78
78
class DDBox {: {public Fl_Box}
79
79
} {
@@ -99,7 +99,7 @@ return Fl_Box::handle(event);} {}
99
99
}
100
100
decl {bool new_drag_file;} {public
101
101
}
102
- }
102
+ }
103
103
104
104
class GUI {open
105
105
} {
@@ -122,6 +122,7 @@ set_mode(STOP);} {}
122
122
FILE_TYPE intype=FILE_WAV;
123
123
if ((strcmp(ext,".ogg")==0)||(strcmp(ext,".OGG")==0)||(strcmp(ext,".Ogg")==0)) intype=FILE_VORBIS;
124
124
if ((strcmp(ext,".mp3")==0)||(strcmp(ext,".MP3")==0)||(strcmp(ext,".Mp3")==0)) intype=FILE_MP3;
125
+ if ((strcmp(ext,".flac")==0)||(strcmp(ext,".FLAC") == 0)) intype = FILE_FLAC;
125
126
bool result=control.set_input_filename(filename,intype);
126
127
if (result) {
127
128
infilename_output->copy_label(control.get_input_filename_and_info().c_str());
@@ -140,7 +141,7 @@ render_percent_slider->activate();
140
141
cancel_render_button->activate();
141
142
//char defaultfile[FL_PATH_MAX];
142
143
//fl_filename_absolute(defaultfile,control.get_recommanded_output_filename().c_str());
143
- Fl_File_Chooser *fc=new Fl_File_Chooser(NULL,"Wave files (*.wav)\\tOgg Vorbis (*.ogg)",Fl_File_Chooser::CREATE,"Render to audio file...");
144
+ Fl_File_Chooser *fc=new Fl_File_Chooser(NULL,"Wave files (*.wav)\\tOgg Vorbis (*.ogg)\\tFLAC (*.flac) ",Fl_File_Chooser::CREATE,"Render to audio file...");
144
145
145
146
fc->preview(0);
146
147
fc->filter_value(0);
@@ -151,7 +152,7 @@ while (fc->visible()){
151
152
};
152
153
153
154
const char *newfile = fc->value();
154
- if (newfile != NULL) {
155
+ if (newfile != NULL) {
155
156
if (file_exists(newfile)){
156
157
if (!fl_choice("The file exists. \\nOverwrite it?","No","Yes",NULL)) return;
157
158
};
@@ -200,10 +201,10 @@ rendering=false;} {}
200
201
} {
201
202
MenuItem {} {
202
203
label {Open audio file...}
203
- callback {char *newfile = fl_file_chooser("Open Audio(ogg,wav,mp3) File?", NULL, NULL);
204
+ callback {char *newfile = fl_file_chooser("Open Audio(ogg,wav,mp3,flac ) File?", NULL, NULL);
204
205
if (newfile != NULL) {
205
206
open_input_file(newfile);
206
-
207
+
207
208
};
208
209
selection_pos1->value(0.0);
209
210
selection_pos2->value(100.0);
@@ -225,7 +226,7 @@ render();}
225
226
if (newfile != NULL) {
226
227
set_mode(STOP);
227
228
control.stopplay();
228
-
229
+
229
230
if (!control.load_parameters(newfile)){
230
231
fl_alert("Error: Could not load parameter file:\\n%s",newfile);
231
232
};
@@ -805,14 +806,14 @@ control.stopplay();}
805
806
play_button->labelcolor(FL_BLACK);
806
807
//mode_choice->activate();
807
808
break;
808
-
809
+
809
810
case PLAY:
810
811
play_button->labelcolor(FL_RED);
811
812
//mode_choice->deactivate();
812
813
fftsize_slider->labelcolor(FL_BLACK);
813
814
freeze_button->activate();
814
815
break;
815
-
816
+
816
817
case FREEZE:
817
818
if (control.is_freeze()) freeze_button->labelcolor(FL_GREEN);
818
819
else freeze_button->labelcolor(FL_BLACK);
@@ -836,7 +837,7 @@ resolution_box->copy_label(control.get_fftresolution_info().c_str());
836
837
837
838
bool may_render=false;
838
839
if (infilename_output->label()!=NULL){
839
- if (strlen(infilename_output->label())!=0)
840
+ if (strlen(infilename_output->label())!=0)
840
841
may_render=true;
841
842
};
842
843
if (!rendering){//do not change the status of render button while rendering
@@ -938,7 +939,7 @@ Fl::add_timeout(1.0/3.0,tick,v);//3 fps} {}
938
939
decl {bool playing_for_button;} {}
939
940
decl {bool rendering;} {}
940
941
decl {bool eof_for_button;} {}
941
- }
942
+ }
942
943
943
944
Function {file_exists(const char *filename)} {return_type bool
944
945
} {
@@ -947,7 +948,7 @@ int i = stat ( filename, &buf );
947
948
// File exists
948
949
if ( i == 0 ) return true;
949
950
else return false;} {}
950
- }
951
+ }
951
952
952
953
Function {main(int argc, char *argv[])} {open return_type int
953
954
} {
@@ -970,4 +971,4 @@ Fl::run();
970
971
delete gui;
971
972
972
973
return 0;} {}
973
- }
974
+ }
0 commit comments