MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / IdlePanelImpl

Method IdlePanelImpl

src/gui/idlepanel.cc:81–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80public:
81 IdlePanelImpl(MainWindow* mainWindow, wxSimplebook* parent):
82 IdlePanelGen(parent),
83 IdlePanel(mainWindow),
84 _imageList(48, 48, true, 0),
85 _config("FluxEngine")
86 {
87 int defaultFormat = 0;
88 int i = 0;
89 for (const auto& it : formats)
90 {
91 auto config = std::make_unique<ConfigProto>();
92 *config = *it.second;
93 if (config->is_extension())
94 continue;
95
96 formatChoice->Append(it.first);
97 _formatNames.push_back(it.first);
98 i++;
99 }
100
101 LoadConfig();
102 UpdateDevices();
103 UpdateFormatOptions();
104
105 parent->AddPage(this, "idle");
106
107 _imageList.Add(
108 createBitmap(icon_hardware_png, sizeof(icon_hardware_png)));
109 _imageList.Add(
110 createBitmap(icon_fluxfile_png, sizeof(icon_fluxfile_png)));
111 _imageList.Add(
112 createBitmap(icon_imagefile_png, sizeof(icon_imagefile_png)));
113
114 UpdateSources();
115 }
116
117public:
118 void Start() override

Callers

nothing calls this directly

Calls 3

createBitmapFunction · 0.85
AddMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected