|
@@ -636,6 +636,9 @@ void lapost_UserPreferences(void* unused){
|
|
MAIN.ScaledUiRowHeight=MAIN.UiRowHeight;
|
|
MAIN.ScaledUiRowHeight=MAIN.UiRowHeight;
|
|
tnsInvalidateFontCache();
|
|
tnsInvalidateFontCache();
|
|
}
|
|
}
|
|
|
|
+void laset_ColorPickerGamma(void* unused, real gamma){
|
|
|
|
+ MAIN.ColorPickerGamma=gamma; laRedrawCurrentWindow();
|
|
|
|
+}
|
|
|
|
|
|
//void laget_DetachedPropContainerID(laProp* p, char * result) {
|
|
//void laget_DetachedPropContainerID(laProp* p, char * result) {
|
|
// strcpy(result, p->Detached->Container->Identifier);
|
|
// strcpy(result, p->Detached->Container->Identifier);
|
|
@@ -847,6 +850,15 @@ void la_RegisterGeneralProps(){
|
|
laAddOperatorProperty(p, "save_instance", "Save Instance", "Save instance as a udf block", "LA_udf_save_instance", 0,0);
|
|
laAddOperatorProperty(p, "save_instance", "Save Instance", "Save instance as a udf block", "LA_udf_save_instance", 0,0);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void lareset_RackPage(laRackPage* rp){
|
|
|
|
+ laNodeRack* r; while(r=rp->Racks.pFirst){
|
|
|
|
+ laBaseNode* bn; while(bn=r->Nodes.pFirst){
|
|
|
|
+ bn->Type->Destroy(bn); lstRemoveItem(&r->Nodes,bn);
|
|
|
|
+ }
|
|
|
|
+ lstRemoveItem(&r->ParentPage->Racks, r); memLeave(r);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
void la_RegisterInternalProps(){
|
|
void la_RegisterInternalProps(){
|
|
laPropContainer *p, *ip, *p2, *ip2, *sp1, *sp2;
|
|
laPropContainer *p, *ip, *p2, *ip2, *sp1, *sp2;
|
|
laProp *ep;
|
|
laProp *ep;
|
|
@@ -975,6 +987,7 @@ void la_RegisterInternalProps(){
|
|
}
|
|
}
|
|
|
|
|
|
p = laAddPropertyContainer("la_rack_page", "Rack Page", "A page of nodes", 0,laui_IdentifierOnly, sizeof(laRackPage), 0,0,2);{
|
|
p = laAddPropertyContainer("la_rack_page", "Rack Page", "A page of nodes", 0,laui_IdentifierOnly, sizeof(laRackPage), 0,0,2);{
|
|
|
|
+ laPropContainerExtraFunctions(p,0,lareset_RackPage,0,0,0);
|
|
laAddStringProperty(p, "name", "Name", "Name of the page", 0,0,0,0,1, offsetof(laRackPage, Name), 0,0,0,0,LA_AS_IDENTIFIER);
|
|
laAddStringProperty(p, "name", "Name", "Name of the page", 0,0,0,0,1, offsetof(laRackPage, Name), 0,0,0,0,LA_AS_IDENTIFIER);
|
|
laAddIntProperty(p,"type", "Type", "Type of the rack", 0,0,0,0,0,0,0,0,offsetof(laRackPage,RackType),0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY);
|
|
laAddIntProperty(p,"type", "Type", "Type of the rack", 0,0,0,0,0,0,0,0,offsetof(laRackPage,RackType),0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY);
|
|
laAddIntProperty(p,"has_rack", "Has Rack", "Has rack", 0,0,0,0,0,0,0,0,offsetof(laRackPage,Racks.pFirst),0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY|LA_UDF_IGNORE);
|
|
laAddIntProperty(p,"has_rack", "Has Rack", "Has rack", 0,0,0,0,0,0,0,0,offsetof(laRackPage,Racks.pFirst),0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY|LA_UDF_IGNORE);
|
|
@@ -1094,6 +1107,8 @@ void la_RegisterInternalProps(){
|
|
|
|
|
|
laAddIntProperty(p, "wacom_device_stylus", "Stylus Device", "Wacom stylus device ID", LA_WIDGET_INT_PLAIN, 0,0,0,0,0,0,0,offsetof(LA, WacomDeviceStylus), 0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY|LA_UDF_IGNORE);
|
|
laAddIntProperty(p, "wacom_device_stylus", "Stylus Device", "Wacom stylus device ID", LA_WIDGET_INT_PLAIN, 0,0,0,0,0,0,0,offsetof(LA, WacomDeviceStylus), 0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY|LA_UDF_IGNORE);
|
|
laAddIntProperty(p, "wacom_device_eraser", "Eraser Device", "Wacom eraser device ID", LA_WIDGET_INT_PLAIN, 0,0,0,0,0,0,0,offsetof(LA, WacomDeviceEraser), 0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY|LA_UDF_IGNORE);
|
|
laAddIntProperty(p, "wacom_device_eraser", "Eraser Device", "Wacom eraser device ID", LA_WIDGET_INT_PLAIN, 0,0,0,0,0,0,0,offsetof(LA, WacomDeviceEraser), 0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY|LA_UDF_IGNORE);
|
|
|
|
+
|
|
|
|
+ laAddFloatProperty(p, "color_picker_gamma", "Color Picker Gamma", "Allows less saturated colors to have more areas", 0,0,0,3.0,1.0, 0.05,1.5, 0,offsetof(LA, ColorPickerGamma), 0,laset_ColorPickerGamma,0,0,0,0,0,0,0,0,0);
|
|
}
|
|
}
|
|
|
|
|
|
p = laAddPropertyContainer("la_translation_language", "Language", "Translation language pack", 0,0,sizeof(laTranslationNode), 0,0,1);{
|
|
p = laAddPropertyContainer("la_translation_language", "Language", "Translation language pack", 0,0,sizeof(laTranslationNode), 0,0,1);{
|