|
@@ -1159,26 +1159,19 @@ void lasetraw_ProofingData(laProofingLUT* pl, void* data, int DataSize){
|
|
if(!pl->TableD65P3)pl->TableD65P3=malloc(single_size); memcpy(pl->TableD65P3,&data[single_size*2],single_size);
|
|
if(!pl->TableD65P3)pl->TableD65P3=malloc(single_size); memcpy(pl->TableD65P3,&data[single_size*2],single_size);
|
|
}
|
|
}
|
|
void laset_ActiveProofingProfile(void* unused, laProofingLUT* pl){
|
|
void laset_ActiveProofingProfile(void* unused, laProofingLUT* pl){
|
|
- if(!pl->TablesRGB || !pl->TableD65P3 || !pl->TableClay){ return; }
|
|
|
|
- laSetProofingLut(pl->TablesRGB,0); laSetProofingLut(pl->TableClay,1); laSetProofingLut(pl->TableD65P3,2);
|
|
|
|
|
|
+ if(!pl->TablesRGB || !pl->TableD65P3 || !pl->TableClay){ laSetProofingLut(0); }
|
|
|
|
+ laSetProofingLut(pl);
|
|
}
|
|
}
|
|
int lagetstate_ProofingProfile(laProofingLUT* pl){
|
|
int lagetstate_ProofingProfile(laProofingLUT* pl){
|
|
- if(pl->TablesRGB==MAIN.ProofingLUT[0]) return 1; return -1;
|
|
|
|
|
|
+ if(pl==MAIN.CurrentProofingLUT) return 1; return -1;
|
|
}
|
|
}
|
|
void laset_ProofingProfileMove(laProofingLUT* pl, int move){
|
|
void laset_ProofingProfileMove(laProofingLUT* pl, int move){
|
|
if(move<0 && pl->Item.pPrev){ lstMoveUp(&MAIN.ProofingLUTs, pl); laNotifyUsers("la.user_preferences.proofing_profiles"); }
|
|
if(move<0 && pl->Item.pPrev){ lstMoveUp(&MAIN.ProofingLUTs, pl); laNotifyUsers("la.user_preferences.proofing_profiles"); }
|
|
elif(move>0 && pl->Item.pNext){ lstMoveDown(&MAIN.ProofingLUTs, pl); laNotifyUsers("la.user_preferences.proofing_profiles"); }
|
|
elif(move>0 && pl->Item.pNext){ lstMoveDown(&MAIN.ProofingLUTs, pl); laNotifyUsers("la.user_preferences.proofing_profiles"); }
|
|
}
|
|
}
|
|
-int laget_CurrentProofingID(void* unused){
|
|
|
|
- int i=0; for(laProofingLUT* pl=MAIN.ProofingLUTs.pFirst;pl;pl=pl->Item.pNext){ if(pl->TablesRGB==MAIN.ProofingLUT[0]) break; i++; }
|
|
|
|
- return i;
|
|
|
|
|
|
+int laget_HasProofingProfile(void* unused){
|
|
|
|
+ return MAIN.ProofingLUTs.pFirst!=0;
|
|
}
|
|
}
|
|
-void laset_CurrentProofingID(void* unused, int id){
|
|
|
|
- laProofingLUT* pl=MAIN.ProofingLUTs.pFirst; for(int i=0;i<id && pl;i++){ if(pl->TablesRGB==MAIN.ProofingLUT[0]) break; pl=pl->Item.pNext; }
|
|
|
|
- if(!pl) return;
|
|
|
|
- laSetProofingLut(pl->TablesRGB,0); laSetProofingLut(pl->TableClay,1); laSetProofingLut(pl->TableD65P3,2);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
|
|
|
|
void lareset_Main(void* Unused){
|
|
void lareset_Main(void* Unused){
|
|
return;
|
|
return;
|
|
@@ -1874,8 +1867,8 @@ void la_RegisterInternalProps(){
|
|
laAddEnumItemAs(ep, "NONE", "None", "Do not do color management on the window", 0, 0);
|
|
laAddEnumItemAs(ep, "NONE", "None", "Do not do color management on the window", 0, 0);
|
|
laAddEnumItemAs(ep, "ENABLED", "Enabled", "Enable color management on the window", 1, 0);
|
|
laAddEnumItemAs(ep, "ENABLED", "Enabled", "Enable color management on the window", 1, 0);
|
|
|
|
|
|
- laAddSubGroup(p,"proofing_profiles","Proofing Profiles","Soft proofing color profiles","la_proofing_profile",0,0,0,-1,0,0,0,laset_ActiveProofingProfile,lagetstate_ProofingProfile,0,offsetof(LA,ProofingLUTs),0);
|
|
|
|
- laAddIntProperty(p,"current_proofing_id","Current Proofing ID","Current soft proofing id in the list",0,0,0,0,0,0,0,0,-1,laget_CurrentProofingID,laset_CurrentProofingID,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
|
+ laAddSubGroup(p,"proofing_profiles","Proofing Profiles","Soft proofing color profiles","la_proofing_profile",0,0,0,offsetof(LA, CurrentProofingLUT),0,0,0,laset_ActiveProofingProfile,lagetstate_ProofingProfile,0,offsetof(LA,ProofingLUTs),0);
|
|
|
|
+ laAddIntProperty(p,"has_proofing_profile","Has Proofing Profile","Any icc profiles are loaded",0,0,0,0,0,0,0,0,0,laget_HasProofingProfile,0,0,0,0,0,0,0,0,0,LA_UDF_IGNORE);
|
|
|
|
|
|
laAddFloatProperty(p, "margin_size", "Margin Size", "The global margin factor", 0,0,0,2.0f, 0.1f, 0.02, 1.0f, 0,offsetof(LA, MarginSize), 0,laset_MarginSize, 0,0,0,0,0,0,0,0,0);
|
|
laAddFloatProperty(p, "margin_size", "Margin Size", "The global margin factor", 0,0,0,2.0f, 0.1f, 0.02, 1.0f, 0,offsetof(LA, MarginSize), 0,laset_MarginSize, 0,0,0,0,0,0,0,0,0);
|
|
laAddFloatProperty(p, "font_size", "Font Size", "The height of the font related to the row height", 0,0,0,1.0f, 0.1f, 0.02, 0.75, 0,offsetof(LA, FontSize), 0,laset_FontSize, 0,0,0,0,0,0,0,0,0);
|
|
laAddFloatProperty(p, "font_size", "Font Size", "The height of the font related to the row height", 0,0,0,1.0f, 0.1f, 0.02, 0.75, 0,offsetof(LA, FontSize), 0,laset_FontSize, 0,0,0,0,0,0,0,0,0);
|