| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_FREAC_CONFIG_DLG |
| 14 |
#define H_FREAC_CONFIG_DLG |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
#include <boca.h> |
| 18 |
|
| 19 |
using namespace smooth; |
| 20 |
using namespace smooth::GUI; |
| 21 |
|
| 22 |
#include "configentry.h" |
| 23 |
|
| 24 |
namespace freac |
| 25 |
{ |
| 26 |
enum ConfigurePage |
| 27 |
{ |
| 28 |
ConfigurePagePrevious = -1, |
| 29 |
|
| 30 |
ConfigurePageEncoder = 0, |
| 31 |
ConfigurePageProcessing = 2, |
| 32 |
|
| 33 |
ConfigurePageDefault = ConfigurePageEncoder |
| 34 |
}; |
| 35 |
|
| 36 |
class ConfigDialog : public Dialogs::Dialog |
| 37 |
{ |
| 38 |
private: |
| 39 |
static ConfigurePage previousPage; |
| 40 |
|
| 41 |
String initialConfig; |
| 42 |
ConfigurePage initialPage; |
| 43 |
|
| 44 |
Array<BoCA::AS::Component *, Void *> components; |
| 45 |
Array<ConfigEntry *, Void *> entries; |
| 46 |
Array<BoCA::ConfigLayer *, Void *> layers; |
| 47 |
Array<BoCA::ConfigLayer *, Void *> createdLayers; |
| 48 |
|
| 49 |
BoCA::ConfigLayer *selectedLayer; |
| 50 |
|
| 51 |
Window *mainWnd; |
| 52 |
Titlebar *mainWnd_titlebar; |
| 53 |
|
| 54 |
Button *btn_cancel; |
| 55 |
Button *btn_ok; |
| 56 |
|
| 57 |
Divider *divbar; |
| 58 |
|
| 59 |
Text *text_config; |
| 60 |
ComboBox *combo_config; |
| 61 |
EditBox *edit_config; |
| 62 |
Button *button_config_new; |
| 63 |
Button *button_config_delete; |
| 64 |
Divider *divider_top; |
| 65 |
|
| 66 |
ListBox *list_layers; |
| 67 |
Tree *tree_freac; |
| 68 |
Tree *tree_ripper; |
| 69 |
Tree *tree_interface; |
| 70 |
Tree *tree_metadata; |
| 71 |
|
| 72 |
Tree *tree_components; |
| 73 |
Tree *tree_extension; |
| 74 |
Tree *tree_encoders; |
| 75 |
Tree *tree_decoders; |
| 76 |
Tree *tree_verifiers; |
| 77 |
Tree *tree_taggers; |
| 78 |
Tree *tree_playlists; |
| 79 |
Tree *tree_dsp; |
| 80 |
Tree *tree_output; |
| 81 |
Tree *tree_other; |
| 82 |
|
| 83 |
Void AddLayers(); |
| 84 |
Void DeleteLayers(); |
| 85 |
slots: |
| 86 |
Void OK(); |
| 87 |
Void Cancel(); |
| 88 |
|
| 89 |
Void OnChangeSize(const Size &); |
| 90 |
|
| 91 |
Void OnSelectConfiguration(); |
| 92 |
Void OnSelectConfigurationByName(); |
| 93 |
|
| 94 |
Void OnEditConfigurationName(const String &); |
| 95 |
|
| 96 |
Void OnCreateConfig(); |
| 97 |
Void OnDeleteConfig(); |
| 98 |
|
| 99 |
Void OnSelectEntry(BoCA::ConfigLayer *); |
| 100 |
|
| 101 |
Void OnChangeComponentSettings(const String &); |
| 102 |
public: |
| 103 |
ConfigDialog(); |
| 104 |
~ConfigDialog(); |
| 105 |
|
| 106 |
const Error &ShowDialog(); |
| 107 |
const Error &ShowDialog(ConfigurePage); |
| 108 |
}; |
| 109 |
}; |
| 110 |
|
| 111 |
#endif |