mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Prototype of the hiding according to view mode
+ Added mode icon near option's label + Fixed segmentation fault on Linux
This commit is contained in:
parent
5d94e6adb8
commit
f47949504e
13 changed files with 242 additions and 53 deletions
|
@ -61,6 +61,12 @@ enum ConfigOptionType {
|
|||
coEnum = 8,
|
||||
};
|
||||
|
||||
enum ConfigOptionMode {
|
||||
comSimple,
|
||||
comMiddle,
|
||||
comExpert
|
||||
};
|
||||
|
||||
// A generic value of a configuration option.
|
||||
class ConfigOption {
|
||||
public:
|
||||
|
@ -982,6 +988,7 @@ public:
|
|||
// By setting min=0, only nonnegative input is allowed.
|
||||
int min = INT_MIN;
|
||||
int max = INT_MAX;
|
||||
ConfigOptionMode mode = comSimple;
|
||||
// Legacy names for this configuration option.
|
||||
// Used when parsing legacy configuration file.
|
||||
std::vector<t_config_option_key> aliases;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue