From e781caee758afeae9c858ed05a51e51104c87788 Mon Sep 17 00:00:00 2001 From: olilarkin Date: Mon, 4 Dec 2023 20:56:17 +0000 Subject: [PATCH] deploy: iPlug2/iPlug2@2376d58e1d157c6b8f9b1bd3ac673bcaa5651649 --- _i_v_preset_manager_controls_8h_source.html | 55 +++++++++++---------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/_i_v_preset_manager_controls_8h_source.html b/_i_v_preset_manager_controls_8h_source.html index 5a156ba2..475f2220 100644 --- a/_i_v_preset_manager_controls_8h_source.html +++ b/_i_v_preset_manager_controls_8h_source.html @@ -331,33 +331,36 @@
255 {
256 WDL_String fileName;
257 GetSelectedFile(fileName);
-
258 fileName.remove_fileext();
-
259 mPresetNameButton->SetLabelStr(fileName.get_filepart());
-
260 }
-
261 }
-
262
-
263private:
-
264 IRECT GetSubControlBounds(ESubControl control)
-
265 {
-
266 auto sections = mRECT;
-
267
-
268 std::array<IRECT, 4> rects = {
-
269 sections.ReduceFromLeft(50),
-
270 sections.ReduceFromLeft(50),
-
271 sections.ReduceFromRight(50),
-
272 sections,
-
273 };
-
274
-
275 return rects[(int) control];
-
276 }
-
277
-
278 IVButtonControl* mPresetNameButton = nullptr;
-
279 IVStyle mStyle;
-
280};
-
281
-
282END_IGRAPHICS_NAMESPACE
-
283END_IPLUG_NAMESPACE
+
258 if (!mShowFileExtensions)
+
259 {
+
260 fileName.remove_fileext();
+
261 }
+
262 mPresetNameButton->SetLabelStr(fileName.get_filepart());
+
263 }
+
264 }
+
265
+
266private:
+
267 IRECT GetSubControlBounds(ESubControl control)
+
268 {
+
269 auto sections = mRECT;
+
270
+
271 std::array<IRECT, 4> rects = {
+
272 sections.ReduceFromLeft(50),
+
273 sections.ReduceFromLeft(50),
+
274 sections.ReduceFromRight(50),
+
275 sections,
+
276 };
+
277
+
278 return rects[(int) control];
+
279 }
+
280
+
281 IVButtonControl* mPresetNameButton = nullptr;
+
282 IVStyle mStyle;
+
283};
284
+
285END_IGRAPHICS_NAMESPACE
+
286END_IPLUG_NAMESPACE
+
287
This file contains the base IControl implementation, along with some base classes for specific types ...
IContainerBase allows a control to nest sub controls and it clips the drawing of those subcontrols In...
Definition: IControl.h:605