Debian Codegraph @

include/dialogs/config/config_resources.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2018 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_CONFIG_RESOURCES
14 #define H_FREAC_CONFIG_RESOURCES
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 namespace freac
20 {
21 class ConfigureResources : public BoCA::ConfigLayer
22 {
23 private:
24 GroupBox *group_cpu;
25 CheckBox *check_enable_parallel;
26 CheckBox *check_enable_superfast;
27 Text *text_threads;
28 Slider *slider_threads;
29 Text *text_threads_value;
30
31 GroupBox *group_priority;
32 Text *text_priority;
33 Slider *slider_priority;
34 Text *text_priority_value;
35
36 Bool enableParallel;
37 Bool enableSuperFast;
38 slots:
39 Void ToggleParallel();
40
41 Void ChangeConversionThreads();
42 Void ChangePriority();
43 public:
44 ConfigureResources();
45 ~ConfigureResources();
46
47 Int SaveSettings();
48 };
49 };
50
51 #endif