-
Notifications
You must be signed in to change notification settings - Fork 4
/
CustomWidgetPanel.h
49 lines (33 loc) · 1.14 KB
/
CustomWidgetPanel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/******************************************************************************
CustomWidgetPanel.h
Copyright (C) 2023 by John Lindal.
******************************************************************************/
#ifndef _H_CustomWidgetPanel
#define _H_CustomWidgetPanel
#include "WidgetPanelBase.h"
class JString;
class JXInputField;
class JXTextCheckbox;
class CustomWidgetPanel : public WidgetPanelBase
{
public:
CustomWidgetPanel(WidgetParametersDialog* dlog, const JString& className,
const JString& ctorArgs, const bool needsCreate,
const JString& deps, const bool wantsInput);
~CustomWidgetPanel();
void GetValues(JString* className, JString* ctorArgs, bool* needsCreate,
JString* deps, bool* wantsInput);
private:
// begin Panel
JXTextCheckbox* itsWantsInputCB;
JXTextCheckbox* itsNeedsCreateCB;
JXInputField* itsClassNameInput;
JXInputField* itsCtorArgs;
JXInputField* itsDependencyInput;
// end Panel
private:
void BuildPanel(WidgetParametersDialog* dlog, const JString& className,
const JString& ctorArgs, const bool needsCreate,
const JString& deps, const bool wantsInput);
};
#endif