15#include "ff_playback.h"
17#ifdef PDK_FRAMEWORK_PREFS
19#ifndef DOXYGEN_SHOULD_IGNORE_THIS
37#define kPreferencesCmper ((CMPER)65534)
39#if FXT_VERSION >= FINALEVERSION_26_2
40#define _GET_PREFDATA2(MEMBEROLD, MEMBERNEW) _GET_OLD_NEW_MEMBER_SELECT(MEMBEROLD, MEMBERNEW, _prefsdata._old, _prefsdata._new, _use26)
41#define _SET_PREFDATA2(MEMBEROLD, MEMBERNEW) _SET_OLD_NEW_MEMBER_SELECT(MEMBEROLD, MEMBERNEW, _prefsdata._old, _prefsdata._new, _use26)
42#define _SET_PREFDATA2_VALUE(MEMBEROLD, MEMBERNEW, VALUE) \
44 if (_use26) _prefsdata._new.MEMBERNEW = VALUE; \
45 else _prefsdata._old.MEMBEROLD = static_cast<decltype(_prefsdata._old.MEMBEROLD)>(VALUE); \
48#define _GET_PREFDATA2(MEMBEROLD, MEMBERNEW) _prefsdata._old.MEMBEROLD
49#define _SET_PREFDATA2(MEMBEROLD, MEMBERNEW) _prefsdata._old.MEMBEROLD
50#define _SET_PREFDATA2_VALUE(MEMBEROLD, MEMBERNEW, VALUE) _prefsdata._old.MEMBEROLD = VALUE
52#define _GET_PREFDATA1(MEMBER) _GET_PREFDATA2(MEMBER, MEMBER)
53#define _SET_PREFDATA1(MEMBER) _SET_PREFDATA2(MEMBER, MEMBER)
54#define _SET_PREFDATA1_VALUE(MEMBER, VALUE) _SET_PREFDATA2_VALUE(MEMBER, MEMBER, VALUE)
56#include "pragma_align_begin.h"
57struct _FCEDTPlaybackPrefs
59 twobyte metronomeBeat;
63 twobyte metronomeSpeed;
68 twobyte baseKeyVelocity;
87 tbool doPlaybackRepeats;
89 FLAG_16 playbackRecordFlags;
93 twobyte smpteTimeType;
94 TimeRtu32 smpteStartTime;
98 tbool countOffWhenRecording;
99 tbool countOffWhenPlaying;
100 tbool clickWhenRecording;
101 tbool clickWhenPlaying;
102 twobyte clickSourceType;
104 twobyte hyperClickDataType;
105 EDTHyperClick hyperClickBarNote;
106 EDTHyperClick hyperClickBarData;
107 EDTHyperClick hyperClickBeatNote;
108 EDTHyperClick hyperClickBeatData;
110#include "pragma_align_end.h"
118#include "pragma_align_begin.h"
119struct _FCEDTPDRecord_26
122 FLAG_16 playbackRecordFlags;
126 _FCEDTPDRecord_26() : exprMode(0), playbackRecordFlags(0)
127 { memset(filler, 0,
sizeof(filler)); }
129#include "pragma_align_end.h"
131#define _ot_PDRecord MAKEEXTAG(edOther,'p','d')
133#include "pragma_align_begin.h"
134struct _FCEDTDistancePrefs
136 twobyte acciVertSpace;
137 Evpu16 acciMultCharSpace;
138 Evpu16 acciNoteSpace;
139 Evpu16 acciMultiSpaces;
141 twobyte alterHalfDiamondBaseline;
143 twobyte alterWholeDiamondBaseline;
145 twobyte alterDblWholeDiamondBaseline;
148 Efix16 barlineDblSpace;
149 Efix16 barlineFinalSpace;
150 Evpu32 barlineDashSpace;
152 Evpu16 beamSecondarySepar;
153 twobyte beamMaxDistance;
155 twobyte graceNoteSpacing;
157 twobyte clefDefaultOffset;
162 twobyte dotSpaceBetweenDots;
163 twobyte dotVerticalAdjust;
164 twobyte dotFlagAdjust;
166 Evpu16 keysigSpaceBefore;
167 Evpu16 keysigSpaceAfter;
168 Evpu16 keysigSpaceAfterCancel;
169 Evpu16 keysigSpaceBetween;
171 Evpu16 musicSpaceBefore;
172 Evpu16 musicSpaceAfter;
174 Efix32 stemNoteheadOffset;
176 Evpu16 timesigAbbrSymbolVert;
178 Evpu16 timesigTopSymbolVert;
180 Evpu16 timesigBottomSymbolVert;
182 Evpu16 timesigSpaceBefore;
183 Evpu16 timesigSpaceAfter;
185 Evpu16 timesigPartsAbbrSymbolVert;
187 Evpu16 timesigPartsTopSymbolVert;
189 Evpu16 timesigPartsBottomSymbolVert;
191 Evpu16 timesigPartsSpaceBefore;
192 Evpu16 timesigPartsSpaceAfter;
194 twobyte groupbracketdefaulthorizontaldistance;
196 Evpu16 keysigTimeSpace;
198 Evpu16 clefTimeSpace;
200 tbool acciCrossLayerPositioning;
203#include "pragma_align_end.h"
206#include "pragma_align_begin.h"
207struct _FCEDTExtraTupletPrefs
210 twobyte horizDownstem;
211 Efix16 bracketThickness;
214#include "pragma_align_end.h"
217#include "pragma_align_begin.h"
218struct _FCEDTLayoutDistancePrefs
220 Evpu16 partsFirstSysDistance;
221 Evpu16 scoreFirstSysDistance;
223 twobyte partsStaffHeight;
224 ePercent partsSystemScaling;
225 twobyte scoreStaffHeight;
226 ePercent scoreSystemScaling;
228#include "pragma_align_end.h"
231#include "pragma_align_begin.h"
232struct _FCEDTPre2012MusicCharsPrefs
234 twobyte symbolcommontimesigscore;
235 twobyte symbolcuttimesigscore;
237 twobyte symbolWiggle;
243#include "pragma_align_end.h"
246#include "pragma_align_begin.h"
247struct _FCEDTMusicCharsPrefsDistances
249 twobyte halfslashbaseline;
250 twobyte wholeslashbaseline;
251 twobyte brevisslashbaseline;
253#include "pragma_align_end.h"
255#include "pragma_align_begin.h"
256struct _FCEDTSizePrefs
258 Efix16 barlineHeavyThickness;
259 Efix16 barlineThinThickness;
260 Evpu32 barlineDashLength;
262 Efix32 beamThickness;
263 Evpu16 beamBrokenLength;
265 ePercent graceNoteSize;
266 ePercent graceTablatureNoteSize;
267 Efix16 graceSlashThickness;
269 Efix16 enclosureThickness;
270 Efix16 staffLineThickness;
271 Efix16 ledgerThickness;
272 Evpu16 ledgerLeftHalf;
273 Evpu16 ledgerLeftHalfRest;
274 Evpu16 ledgerRightHalf;
275 Evpu16 ledgerRightHalfRest;
276 fourbyte shapeDesignerSlurTip;
278 Evpu16 stemNormalLength;
279 Evpu16 stemShortLength;
280 Evpu16 stemHalfLength;
281 Evpu16 stemReverseAdjust;
282 Efix16 stemThickness;
285#include "pragma_align_end.h"
287#include "pragma_align_begin.h"
288struct _FCEDTMiscDocPrefs
290 tbool barlineDoubleAtKeySig;
291 tbool barlineDisplayAll;
292 tbool barlineCloseSys;
293 tbool barlineClosePiece;
294 tbool barlineFinalAtEnd;
295 tbool barlineLeftSingleStaff;
296 tbool barlineLeftMultStaves;
297 tbool barlineDefaultToNormal;
319 tbool clefOnlyOnFirstSys;
321 ePercent clefReduction;
323 twobyte curveResolution;
325 tbool dotAdjustForMultipleVoices;
327 twobyte gracePlaybackDur;
328 tbool graceAlwaysSlash;
330 tbool keysigOnlyOfFirstSys;
331 tbool keysigNaturalsInC;
332 tbool keysigModeChange;
333 tbool keysigCancelOutgoing;
334 tbool keysigCancelSwitchSharpsFlats;
335 tbool keysigPreserveOctave;
337 twobyte timesigCompMeterDeci;
338 tbool timesigAbbrCommonTime;
339 tbool timesigAbbrCutTime;
341 tbool stemUseConnections;
342 FLAG_16 courtesyFlags;
346 tbool secondsInTimeStamp;
348 twobyte textTabChars;
349 tbool scaleManualPos;
350 tbool crossStaffInOriginal;
353 TimeEdu16 pickupMeasure;
355 CMPER specialExtractedPartCmper;
356 tbool displayPartExpressions;
358 fourbyte PSUnderlineDepth;
359 fourbyte PSUnderlineThickness;
361 tbool chordItalicizeCapo;
362 FLAG_16 chordFretboardFlag;
363 fourbyte chordFretboardResize;
365 twobyte chordEnablePlayback;
368 tbool showactivelayeronly;
370 tbool consolidaterests;
372 tbool keepOctaveTranspositionInConcertPitch;
374 tbool alignMeasureNumbersWithBarlines;
375 tbool legacyDotPostionOnFlippedStems;
377#include "pragma_align_end.h"
379#include "pragma_align_begin.h"
380struct _FCEDTPageFormatPrefs
384 ePercent pageScaling;
398 Evpu16 sysDistBetween;
400 tbool bFirstSysMargin;
406#include "pragma_align_end.h"
408#include "pragma_align_begin.h"
409struct _FCEDTRepeatPrefs
413 Efix16 spaceBetweenLines;
414 FLAG_16 backToBackStyle;
416 Evpu16 backwardSpace;
417 Evpu16 upperVertAdjust;
418 Evpu16 lowerVertAdjust;
420 Evpu16 afterClefSpace;
421 Evpu16 afterKeySpace;
422 Evpu16 afterTimeSpace;
425 Evpu16 endingBracketHeight;
426 Evpu16 endingFrontHook;
427 Evpu16 endingBackHook;
428 Efix16 endingLineThickness;
429 twobyte endingInsetStart;
430 twobyte endingInsetEnd;
431 Evpu16 endingTextHoriz;
432 Evpu16 endingTextVert;
434 tbool dotafternumber;
437 tbool thinInnerBracketReference;
438 tbool showOnTopStaffOnly;
439 twobyte showOnStaffListNumber;
441#include "pragma_align_end.h"
443#include "pragma_align_begin.h"
444struct _FCEDTPianoBracePrefs
447 fourbyte innerTipHoriz;
448 fourbyte innerTipVert;
449 fourbyte innerBodyHoriz;
450 fourbyte innerBodyVert;
451 fourbyte outerTipHoriz;
452 fourbyte outerTipVert;
453 fourbyte outerBodyHoriz;
454 fourbyte outerBodyVert;
456 fourbyte centerThickness;
457 fourbyte tipThickness;
459#include "pragma_align_end.h"
461#include "pragma_align_begin.h"
462struct _FCEDTSmartShapePrefs
464 CMPER customLineStyle;
465 CMPER glissandoStyle;
467 CMPER guitarBendStyle;
468 Evpu16 crescDimOpening;
469 Evpu16 crescDimShortOpening;
470 twobyte crescDimMaxShortSpanLength;
471 Efix16 crescDimWidth;
472 tbool bCrescDimHorizontal;
473 Efix16 lineThickness;
479 tbool bUseEngraverSlurs;
480 twobyte engrMaxAngle;
481 twobyte engrSymmetry;
483 twobyte engrAcciMode;
484 Evpu16 engrAcciSpace;
485 tbool engrStretchFirst;
486 tbool engrStretchMode;
487 twobyte engrMaxStretchPrecent;
488 Efix32 engrMaxStretchFixed;
491 Evpu16 slurbrStaffLineAvoid;
492 Evpu16 slurbrStartAdjust;
493 Evpu16 slurbrEndAdjust;
495 Int10000ths32 slurtipWidth;
496 tbool slurtipAvoidStaff;
497 Evpu16 slurtipAvoidStaffVal;
499 Evpu16 slurThicknessHorizLeft;
500 Evpu16 slurThicknessVertLeft;
501 Evpu16 slurThicknessHorizRight;
502 Evpu16 slurThicknessVertRight;
504 tbool bendParentheses;
505 tbool bendHideNumber;
506 tbool bendAutoGenerateText;
507 tbool bendReplaceWithFull;
509#include "pragma_align_end.h"
511#include "pragma_align_begin.h"
512struct _FCEDTPartExtractPrefs
514 twobyte spacingMethod;
519 twobyte partNameHeaderHoriz;
520 twobyte partNameHeaderVert;
521 tbool newStaffPlacement;
523 Evpu16 newStaffDistance;
524 tbool removePageOneBlocks;
525 tbool removePageTwoPlusBlocks;
526 tbool removeStaffGroupNames;
530 twobyte measuresPerSystem;
531 twobyte promptForEachName;
532 tbool removeMultiPageBlocks;
533 tbool createPartNameHeader;
534 twobyte partNameHeaderResize;
535 twobyte partNameHeaderFromPage;
536 twobyte partNameHeaderToPage;
537 twobyte partNameHeaderFontID;
539 twobyte partNameHeaderFontSize;
540 twobyte partNameHeaderFontEfx;
541 tbool partNameHeaderUseFontID;
542 tbool openExtractedParts;
543 tbool spaceSystemsEvenly;
544 twobyte partNameHeaderAAAA;
545 twobyte partNameHeaderBBBB;
547#include "pragma_align_end.h"
549#include "pragma_align_begin.h"
552 Evpu16 thicknessRight;
553 Evpu16 thicknessLeft;
554 tbool breakForTimeSigs;
555 tbool breakForKeySigs;
556 Evpu16 breakTimeSigLeftHOffset;
557 Evpu16 breakTimeSigRightHOffset;
558 Evpu16 breakKeySigLeftHOffset;
559 Evpu16 breakKeySigRightHOffset;
560 Evpu16 sysBreakLeftHAdj;
561 Evpu16 sysBreakRightHAdj;
562 tbool useOuterPlacement;
563 FLAG_16 secondsPlacement;
564 twobyte chordTieDirType;
565 tbool chordTieDirOpposingSeconds;
566 twobyte mixedStemDirection;
567 tbool afterSingleDot;
568 tbool afterMultipleDots;
569 tbool beforeAcciSingleNote;
570 twobyte specialPosMode;
572 Evpu16 avoidStaffLinesDistance;
575 tbool useInterpolation;
577 tbool useTieEndCtlStyle;
578 tbool avoidStaffLinesOnly;
579 Int10000ths32 tipWidth;
582#include "pragma_align_end.h"
584#include "pragma_align_begin.h"
585struct _FCEDTMusicSpacingPrefs
591 Evpu16 minDistTiedNotes;
593 twobyte useAllotmentTables;
594 twobyte referenceDurationLow;
595 twobyte referenceDurationHigh;
596 twobyte referenceWidthLow;
597 twobyte referenceWidthHigh;
598 twobyte scalingFactorLow;
599 twobyte scalingFactorHigh;
600 twobyte graceNoteMinDistance;
601 twobyte graceNoteSpacingMode;
602 Evpu16 accidentalsGutter;
605#include "pragma_align_end.h"
608#include "pragma_align_begin.h"
609struct _FCEDTLyricsPrefs
611 Evpu16 spaceBetweenHyphens;
612 Efix16 wordExtensionThickness;
614 twobyte useSmartHyphens;
615 twobyte hyphenSystemStart;
620 twobyte othersSyllAlign;
621 twobyte othersSyllJusti;
624 twobyte wordExtensionSyllAlign;
625 twobyte wordExtensionSyllJusti;
626 FLAG_16 wordExtensionSyllFlags;
628 twobyte firstSyllAlign;
629 twobyte firstSyllJusti;
630 FLAG_16 firstSyllFlags;
632 twobyte startSysSyllAlign;
633 twobyte startSysSyllJusti;
634 FLAG_16 startSysSyllFlags;
636#include "pragma_align_end.h"
639#include "pragma_align_begin.h"
640struct _FCEDTMMRestDefaultsPrefs
646 twobyte startNumberingAt;
647 twobyte symbolMeasures;
648 Evpu16 spaceBetweenSymbols;
650 Evpu16 shpAdjustStart;
657#include "pragma_align_end.h"
659#include "pragma_align_begin.h"
660struct _FCEDTPartScopePrefs
664#include "pragma_align_end.h"
666#include "pragma_align_begin.h"
667struct _FCEDTGroupNamePosPrefs
673#include "pragma_align_end.h"
680#include "pragma_align_begin.h"
681struct _FCEDTChordPrefs
684 tbool UseSimpleChordSpelling;
685 twobyte DefChordAlignment;
692 Int10000ths32 fretPercent;
693 Int10000ths32 chordPercent;
694 tbool showFretboards;
695 eFretStyle fretStyleID;
696 eFretInst fretInstID;
697 tbool multiFretItemsPerStr;
698 tbool italicizeCapoChords;
701#include "pragma_align_end.h"
705const EXTAG _fcpf_DistancePrefs = MAKEEXTAG(edPrefs,
'D',
'P');
710const EXTAG _fcpf_SizePrefs = MAKEEXTAG(edPrefs,
'S',
'I');
711const EXTAG _fcpf_MiscDocPrefs = MAKEEXTAG(edPrefs,
'M',
'I');
712const EXTAG _fcpf_RepeatPrefs = MAKEEXTAG(edPrefs,
'R',
'P');
713const EXTAG _fcpf_PianoBracePrefs = MAKEEXTAG(edPrefs,
'P',
'B');
714const EXTAG _fcpf_SmartShapePrefs = MAKEEXTAG(edPrefs,
'S',
'S');
715const EXTAG _fcpf_PlaybackPrefs = MAKEEXTAG(edPrefs,
'P',
'L');
716const EXTAG _fcpf_TiePrefs = MAKEEXTAG(edPrefs,
'T',
'I');
717const EXTAG _fcpf_MusicSpacingPrefs = MAKEEXTAG(edPrefs,
'M',
'S');
718const EXTAG _fcpf_PartExtractPrefs = MAKEEXTAG(edPrefs,
'E',
'X');
719const EXTAG _fcpf_PageFormatPrefs = MAKEEXTAG(edPrefs,
'P',
'F');
720const EXTAG _fcpf_LyricsPrefs = MAKEEXTAG(edPrefs,
'l',
'y');
721const EXTAG _fcpf_MMRestDefaultPrefs = MAKEEXTAG(edPrefs,
'm',
'm');
722const EXTAG _fcpf_PartScopePrefs = MAKEEXTAG(edPrefs,
'p',
'S');
723const EXTAG _fcpf_GroupNamePosPrefs = MAKEEXTAG(edPrefs,
'G',
'p');
724const EXTAG _fcpf_StaffNamePositionPrefs = MAKEEXTAG(edPrefs,
'S',
'p');
726enum PREFMAP_ARRAY_CONVERSION
752#ifndef DOXYGEN_SHOULD_IGNORE_THIS
753 struct PREFERENCE_LOCATION_MAPRECORD
760 twobyte structOffset;
761 twobyte offsetInInci;
763 PREFMAP_ARRAY_CONVERSION conversion;
769#ifndef DOXYGEN_SHOULD_IGNORE_THIS
771 fourbyte MakePrefsFourbyte(
const twobyte inci0,
const twobyte inci1,
const PREFMAP_ARRAY_CONVERSION convType);
774 void MakePrefsTwobytes(
const fourbyte fb, twobyte *inci0, twobyte *inci1,
const PREFMAP_ARRAY_CONVERSION convType);
777 bool MapPrefStruct(EXTAG tag,
779 PREFERENCE_LOCATION_MAPRECORD **ppMapDef,
780 twobyte *noOfElements);
785#ifndef DOXYGEN_SHOULD_IGNORE_THIS
788 bool FragmentStructLoad(
void* pVoidBuffer, fourbyte *pSize,
789 PREFERENCE_LOCATION_MAPRECORD *pMapDef, twobyte noOfElements);
792 bool FragmentStructSave(
void* pVoidBuffer, fourbyte size,
793 PREFERENCE_LOCATION_MAPRECORD *pMapDef, twobyte noOfElements);
795#if FXT_VERSION >= FINALEVERSION_26_2
803#if FXT_VERSION >= FINALEVERSION_26_2
807#ifndef DOXYGEN_SHOULD_IGNORE_THIS
825 const char*
ClassName()
const override {
return "__FCPrefsBase"; }
837 virtual bool Load(twobyte prefsno = 1);
839 bool Save()
override;
853#define PLAYFLAG_NOTEDURATIONS 0x0001
854#define PLAYFLAG_KEYVELOCITIES 0x0002
855#define PLAYFLAG_SENDPATCHES 0x0010
856#define PLAYFLAG_TEMPOCHANGES 0x0020
857#define PLAYFLAG_CONTDATA 0x0080
858#define PLAYFLAG_SCROLLING 0x0400
859#define PLAYFLAG_RESETRPTS 0x0800
860#define PLAYFLAG_CHASECONTDATA 0x1000
861#define PLAYFLAG_CHASEPATCHES 0x2000
862#define PLAYFLAG_RCVMIDISYNC 0x4000
872#if FXT_VERSION >= FINALEVERSION_26_2
873 EDTPlaybackPrefs26_2 _new;
875 _FCEDTPlaybackPrefs _old;
878#if FXT_VERSION >= FINALEVERSION_26_2
879 _FCEDTPDRecord_26 _pd;
882 std::unique_ptr<FCHyperClick> _hyperClickBarNote;
883 std::unique_ptr<FCHyperClick> _hyperClickBarData;
884 std::unique_ptr<FCHyperClick> _hyperClickBeatNote;
885 std::unique_ptr<FCHyperClick> _hyperClickBeatData;
887 EXTAG Tag()
const override
889#if FXT_VERSION >= FINALEVERSION_26_2
890 if (_use26)
return pf_PlaybackPrefs26_2;
892 return _fcpf_PlaybackPrefs;
895 int DataSizeLoad()
const override
897#if FXT_VERSION >= FINALEVERSION_26_2
898 if (_use26)
return sizeof(_prefsdata._new);
900 return sizeof(_prefsdata._old);
902 void* Allocate()
override {
return (
void*) _GetPrefsData(); }
910 memcpy(_GetPrefsData(), ((
FCPlaybackPrefs*)pSource)->_GetPrefsData(), DataSizeLoad());
911#if FXT_VERSION >= FINALEVERSION_26_2
921 bool _GetPlaybackBitFlag(FLAG_32 flag)
const
923#if FXT_VERSION >= FINALEVERSION_26_2
924 if (_use26)
return GetBitFlag(_pd.playbackRecordFlags, flag);
926 return GetBitFlag(_prefsdata._old.playbackRecordFlags, flag);
929 void _SetPlaybackBitFlag(FLAG_32 flag,
bool state)
931#if FXT_VERSION >= FINALEVERSION_26_2
938 Set16BitFlag(&_prefsdata._old.playbackRecordFlags, flag, state);
943 memset(&_prefsdata, 0,
sizeof(_prefsdata));
944 _hyperClickBarNote = std::unique_ptr<FCHyperClick>(
new FCHyperClick(&_SET_PREFDATA1(hyperClickBarNote),
true));
945 _hyperClickBarData = std::unique_ptr<FCHyperClick>(
new FCHyperClick(&_SET_PREFDATA1(hyperClickBarData),
false));
946 _hyperClickBeatNote = std::unique_ptr<FCHyperClick>(
new FCHyperClick(&_SET_PREFDATA1(hyperClickBeatNote),
true));
947 _hyperClickBeatData = std::unique_ptr<FCHyperClick>(
new FCHyperClick(&_SET_PREFDATA1(hyperClickBeatData),
false));
951#ifndef DOXYGEN_SHOULD_IGNORE_THIS
953 void* _GetPrefsData() {
return &_prefsdata; }
955 bool Load(twobyte prefsno = 1)
override;
957 bool Save()
override;
961#ifndef DOXYGEN_SHOULD_IGNORE_THIS
963 bool GetSendClickOff()
const {
return _GET_PREFDATA1(sendClickOff); }
965 void SetSendClickOff(
bool state) { _SET_PREFDATA1(sendClickOff) = state; }
1026 const char*
ClassName()
const override {
return "FCPlaybackPrefs"; }
1034#if FXT_VERSION >= FINALEVERSION_26_2
1041#ifndef DOXYGEN_SHOULD_IGNORE_THIS
1042#if FXT_VERSION >= FINALEVERSION_26_2
1045#ifdef PDK_FRAMEWORK_LUAFRIENDLY
1049 return _OneOptionalParamLuaConstructor<FCPlaybackPrefs, bool>(ptr, L);
1089 twobyte
GetSwing()
const {
return _GET_PREFDATA2(swing, swingValue); }
1120 eMeas retVal _GET_PREFDATA2(stopAtMeas, endMeas);
1145#ifndef PDK_FRAMEWORK_LUAFRIENDLY
1158#ifndef PDK_FRAMEWORK_LUAFRIENDLY
1165#if FXT_VERSION >= FINALEVERSION_26_2
1239#ifndef PDK_FRAMEWORK_LUAFRIENDLY
1298#ifndef PDK_FRAMEWORK_LUAFRIENDLY
1305 if (_GET_PREFDATA1(clickSourceType) == CLICK_SOURCE_TYPE_MIDI)
1307 if (_GET_PREFDATA1(hyperClickDataType) == HYPERCLICK_DATA_TYPE_MIDIDATA)
1374#if FXT_VERSION >= FINALEVERSION_26_2
1376 _prefsdata._new.edusPerBeat = value;
1379 _prefsdata._old.metronomeBeat =
static_cast<twobyte
>(value);
1396 void SetSwing(twobyte value) { _SET_PREFDATA2(swing, swingValue) = value; }
1417#ifndef DOXYGEN_SHOULD_IGNORE_THIS
1422 void SetStartRepeatPass(
int value) { _SET_PREFDATA1(startPass) =
static_cast<twobyte
>(value); }
1437 _SET_PREFDATA2(stopAtMeas, endMeas) = measure;
1448 value = MAX(value, 0);
1449 if (value == EDU32_MAX)
1455 _SET_PREFDATA2(stopEdu, endEdu) = value;
1458#ifndef DOXYGEN_SHOULD_IGNORE_THIS
1463 void SetStopRepeatPass(
int value) { _SET_PREFDATA1(endPass) =
static_cast<twobyte
>(value); }
1477 _SET_PREFDATA2(stopEdu, endEdu) = 0;
1478 _SET_PREFDATA2(stopAtMeas, endMeas) = EMEAS_MAX;
1533#ifndef PDK_FRAMEWORK_LUAFRIENDLY
1538 mode) { _SET_PREFDATA2(startAtMode, startMode) = (twobyte) mode; }
1547#ifndef PDK_FRAMEWORK_LUAFRIENDLY
1554#if FXT_VERSION >= FINALEVERSION_26_2
1557 _pd.exprMode = mode;
1561 _prefsdata._old.exprMode = mode;
1633#ifndef PDK_FRAMEWORK_LUAFRIENDLY
1638 mode) { _SET_PREFDATA1(smpteTimeType) = (twobyte) mode; }
1693#ifndef PDK_FRAMEWORK_LUAFRIENDLY
1703 _SET_PREFDATA1(clickSourceType) = CLICK_SOURCE_TYPE_INTERNAL;
1704 _SET_PREFDATA1(hyperClickDataType) = HYPERCLICK_DATA_TYPE_MIDINOTE;
1707 _SET_PREFDATA1(clickSourceType) = CLICK_SOURCE_TYPE_MIDI;
1708 _SET_PREFDATA1(hyperClickDataType) = HYPERCLICK_DATA_TYPE_MIDINOTE;
1711 _SET_PREFDATA1(clickSourceType) = CLICK_SOURCE_TYPE_MIDI;
1712 _SET_PREFDATA1(hyperClickDataType) = HYPERCLICK_DATA_TYPE_MIDIDATA;
1735 _FCEDTDistancePrefs _prefsdata;
1737 EXTAG Tag()
const override {
return _fcpf_DistancePrefs; }
1739 int DataSizeLoad()
const override {
return sizeof(_FCEDTDistancePrefs); }
1740 void* Allocate()
override {
return (
void*) &_prefsdata; }
1748 memcpy(&_prefsdata, ((
FCDistancePrefs*)pSource)->_GetPrefsData(),
sizeof(_prefsdata));
1756#ifndef DOXYGEN_SHOULD_IGNORE_THIS
1758 void* _GetPrefsData() {
return &_prefsdata; }
1761 const char*
ClassName()
const override {
return "FCDistancePrefs"; }
1770 memset(&_prefsdata, 0,
sizeof(_prefsdata));
2297 _FCEDTSizePrefs _prefsdata;
2298 EXTAG Tag()
const override {
return _fcpf_SizePrefs; }
2300 int DataSizeLoad()
const override {
return sizeof(_FCEDTSizePrefs); }
2301 void* Allocate()
override {
return (
void*) &_prefsdata; }
2309 memcpy(&_prefsdata, ((
FCSizePrefs*)pSource)->_GetPrefsData(),
sizeof(_prefsdata));
2317#ifndef DOXYGEN_SHOULD_IGNORE_THIS
2319 void* _GetPrefsData() {
return &_prefsdata; }
2322 const char*
ClassName()
const override {
return "FCSizePrefs"; }
2601 _FCEDTMiscDocPrefs _prefsdata;
2603 EXTAG Tag()
const override {
return _fcpf_MiscDocPrefs; }
2605 int DataSizeLoad()
const override {
return sizeof(_FCEDTMiscDocPrefs); }
2606 void* Allocate()
override {
return (
void*) &_prefsdata; }
2614 memcpy(&_prefsdata, ((
FCMiscDocPrefs*)pSource)->_GetPrefsData(),
sizeof(_prefsdata));
2622#ifndef DOXYGEN_SHOULD_IGNORE_THIS
2624 void* _GetPrefsData() {
return &_prefsdata; }
2627#if FXT_VERSION >= FINALEVERSION_26_2
2629 bool Load(twobyte prefsNumber = 0)
override;
2632 bool Save()
override;
2697 const char*
ClassName()
const override {
return "FCMiscDocPrefs"; }
2748#ifndef PDK_FRAMEWORK_LUAFRIENDLY
2892 return GetBitFlag(_prefsdata.chordFretboardFlag, 0x01);
3018#ifndef PDK_FRAMEWORK_LUAFRIENDLY
3094 [[deprecated]]
bool GetChordPlayback()
const {
return (_prefsdata.chordEnablePlayback & 0x02) != 0; }
3109#ifndef PDK_FRAMEWORK_LUAFRIENDLY
3116 switch (_prefsdata.layoutFlags & LAYOUTFLG_ADJUST_PAGE_BITS)
3118 case LAYOUTFLG_ADJUST_PAGE_CUR:
3120 case LAYOUTFLG_ADJUST_PAGE_ALL:
3122 case LAYOUTFLG_ADJUST_PAGE_LR:
3124 case LAYOUTFLG_ADJUST_PAGE_RNG:
3239#ifndef PDK_FRAMEWORK_LUAFRIENDLY
3252 _prefsdata.beamStyle = (twobyte) mode;
3403 if (value < 1)
return;
3404 if (value > 128)
return;
3405 _prefsdata.curveResolution = value;
3510#ifndef PDK_FRAMEWORK_LUAFRIENDLY
3522 _prefsdata.dateFormat = dateformat;
3596 [[deprecated]]
void SetChordPlayback(
bool state) { _prefsdata.chordEnablePlayback = state ? 0x02 : 0x01; }
3611#ifndef PDK_FRAMEWORK_LUAFRIENDLY
3622 _prefsdata.layoutFlags &= ~LAYOUTFLG_ADJUST_PAGE_BITS;
3623 _prefsdata.layoutFlags |= LAYOUTFLG_ADJUST_PAGE_CUR;
3626 _prefsdata.layoutFlags &= ~LAYOUTFLG_ADJUST_PAGE_BITS;
3627 _prefsdata.layoutFlags |= LAYOUTFLG_ADJUST_PAGE_ALL;
3630 _prefsdata.layoutFlags &= ~LAYOUTFLG_ADJUST_PAGE_BITS;
3631 _prefsdata.layoutFlags |= LAYOUTFLG_ADJUST_PAGE_LR;
3634 _prefsdata.layoutFlags &= ~LAYOUTFLG_ADJUST_PAGE_BITS;
3635 _prefsdata.layoutFlags |= LAYOUTFLG_ADJUST_PAGE_RNG;
3671#ifndef DOXYGEN_SHOULD_IGNORE_THIS
3672#if FXT_VERSION < FINALEVERSION_26_2
3673#include "pragma_align_begin.h"
3674struct EDTTupletPrefs26_2
3677 twobyte DefaultTuplet_tupnum;
3678 TimeEdu16 DefaultTuplet_tupsymdur;
3679 twobyte DefaultTuplet_refnum;
3680 TimeEdu16 DefaultTuplet_refdur;
3681 FLAG_16 DefaultTuplet_tuplflag;
3682 Evpu16 DefaultTuplet_tupOffX;
3683 Evpu16 DefaultTuplet_tupOffY;
3684 Evpu16 DefaultTuplet_brackOffX;
3685 Evpu16 DefaultTuplet_brackOffY;
3686 FLAG_16 DefaultTuplet_flag;
3687 Evpu16 DefaultTuplet_leftHookLen;
3688 Evpu16 DefaultTuplet_leftHookExt;
3689 Evpu16 DefaultTuplet_rightHookLen;
3690 Evpu16 DefaultTuplet_rightHookExt;
3691 twobyte DefaultTuplet_slope;
3693 twobyte tupMaxSlope;
3694 Efix16 tupLineWidth;
3695 Evpu16 tupNUpstemOffset;
3696 Evpu16 tupNDownstemOffset;
3698#include "pragma_align_end.h"
3702#ifdef PDK_FRAMEWORK_ENTRIES
3715 EDTTupletPrefs26_2 _prefsdata;
3716 EXTAG Tag()
const override {
return pf_TupletPrefs; }
3718 int DataSizeLoad()
const override {
return _use26 ?
sizeof(_prefsdata) :
sizeof(EDTTupletPrefs); }
3719 void* Allocate()
override {
return (
void*)&_prefsdata; }
3727 memcpy(&_prefsdata, ((
FCTupletPrefs*)pSource)->_GetPrefsData(),
sizeof(_prefsdata));
3737#ifndef DOXYGEN_SHOULD_IGNORE_THIS
3739 void* _GetPrefsData() {
return &_prefsdata; }
3742 const char*
ClassName()
const override {
return "FCTupletPrefs"; }
3757 bool Load(twobyte prefsnumber = 1)
override;
3765 bool Save()
override;
3797#ifndef PDK_FRAMEWORK_LUAFRIENDLY
3835#ifndef PDK_FRAMEWORK_LUAFRIENDLY
3848#ifndef PDK_FRAMEWORK_LUAFRIENDLY
3867#ifndef PDK_FRAMEWORK_LUAFRIENDLY
3965 return _prefsdata.tupNUpstemOffset;
3974 return _prefsdata.tupNDownstemOffset;
3983 return _prefsdata.tupLineWidth;
3994 return _prefsdata.tupMaxSlope;
4009#ifndef PDK_FRAMEWORK_LUAFRIENDLY
4049#ifndef PDK_FRAMEWORK_LUAFRIENDLY
4063#ifndef PDK_FRAMEWORK_LUAFRIENDLY
4085#ifndef PDK_FRAMEWORK_LUAFRIENDLY
4188 _prefsdata.tupNUpstemOffset = value;
4197 _prefsdata.tupNDownstemOffset = value;
4206 _prefsdata.tupLineWidth = value;
4215 _prefsdata.tupMaxSlope = value;
4218#ifdef PDK_FRAMEWORK_DEBUG
4224 case FCTuplet::TUPLETPLACEMENT_MANUAL:
4225 DebugOut(
"Placement mode: Manual");
4227 case FCTuplet::TUPLETPLACEMENT_STEMSIDE:
4228 DebugOut(
"Placement mode: Stem/Beam Side");
4230 case FCTuplet::TUPLETPLACEMENT_NOTESIDE:
4231 DebugOut(
"Placement mode: Note Side");
4233 case FCTuplet::TUPLETPLACEMENT_ABOVE:
4236 case FCTuplet::TUPLETPLACEMENT_BELOW:
4246 case FCTuplet::TUPLETNUMBER_NONE:
4247 DebugOut(
"Number appearance: None");
4249 case FCTuplet::TUPLETNUMBER_REGULAR:
4250 DebugOut(
"Number appearance: Number");
4252 case FCTuplet::TUPLETNUMBER_RATIO:
4253 DebugOut(
"Number appearance: Ratio");
4255 case FCTuplet::TUPLETNUMBER_RATIOANDNOTE:
4256 DebugOut(
"Number appearance: 7:8q");
4258 case FCTuplet::TUPLETNUMBER_RATIOANDNOTE_BOTH:
4259 DebugOut(
"Number appearance: 7q:8q");
4264 case FCTuplet::TUPLETSHAPE_NONE:
4265 DebugOut(
"Shape appearance: None");
4267 case FCTuplet::TUPLETSHAPE_BRACKET:
4268 DebugOut(
"Shape appearance: Bracket");
4270 case FCTuplet::TUPLETSHAPE_SLUR:
4271 DebugOut(
"Shape appearance: Slur");
4278 case FCTuplet::TUPLETBRACKET_ALWAYS:
4279 DebugOut(
"Always use specified shape");
4281 case FCTuplet::TUPLETBRACKET_UNBEAMEDONLY:
4282 DebugOut(
"Bracket unbeamed notes only");
4284 case FCTuplet::TUPLETBRACKET_NEVERBEAMEDONBEAMSIDE:
4285 DebugOut(
"Never bracket beamed notes on beam side");
4318 _FCEDTPageFormatPrefs _prefsdata;
4319 twobyte _systemstaffheight;
4320 twobyte _systemscaling;
4321 twobyte _firstsysdistance;
4323 EXTAG Tag()
const override {
return _fcpf_PageFormatPrefs; }
4325 int DataSizeLoad()
const override {
return sizeof(_FCEDTPageFormatPrefs); }
4326 void* Allocate()
override {
return (
void*) &_prefsdata; }
4335 memcpy(&_prefsdata, pSourceObj->_GetPrefsData(),
sizeof(_prefsdata));
4346#ifndef DOXYGEN_SHOULD_IGNORE_THIS
4348 void* _GetPrefsData() {
return &_prefsdata; }
4351 const char*
ClassName()
const override {
return "FCPageFormatPrefs"; }
4361 _systemstaffheight = 96 * 16;
4362 _systemscaling = 100;
4363 _firstsysdistance = 0;
4371 bool Load(twobyte prefsno = 1)
override;
4375 bool Save()
override;
4762#if FXT_VERSION >= FINALEVERSION_27_3
4763 EDTGeneralPrefs27_3 _prefsdata;
4765 EDTGeneralPrefs2008 _prefsdata;
4768 EXTAG Tag()
const override {
return pf_GeneralPrefs; }
4770 EVERSION EnigmaVersion()
const override {
return (std::min)(FXT_VERSION, FINALEVERSION_27_3); }
4771 int DataSizeLoad()
const override {
return sizeof(_prefsdata); }
4772 void* Allocate()
override {
return (
void*) &_prefsdata; }
4775 enum GENPREFS_REBARSTOPFLAGS
4777 REBARSTOPFLAGS_NOSTOP = 0,
4778 REBARSTOPFLAGS_STOPKEYCHANGE = 0x0001,
4779 REBARSTOPFLAGS_STOPTIMECHANGE = 0x0002,
4780 REBARSTOPFLAGS_STOPENDOFREGION = 0x0004,
4781 REBARSTOPFLAGS_STOPSPECIALBARLINE = 0x0008,
4782 REBARSTOPFLAGS_STOPEMPTYFRAME = 0x0020
4791 memcpy(&_prefsdata, ((
FCGeneralPrefs*)pSource)->_GetPrefsData(),
sizeof(_prefsdata));
4800#ifndef DOXYGEN_SHOULD_IGNORE_THIS
4802 void* _GetPrefsData() {
return &_prefsdata; }
4805 const char*
ClassName()
const override {
return "FCGeneralPrefs"; }
4894#ifndef PDK_FRAMEWORK_LUAFRIENDLY
4942 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
4943#if FXT_VERSION >= FINALEVERSION_27_3
4944 return _prefsdata.AutoMusicSpacing;
5002#ifndef PDK_FRAMEWORK_LUAFRIENDLY
5020 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5021#if FXT_VERSION >= FINALEVERSION_27_3
5022 return _prefsdata.RemoveSmallNotes;
5036#ifndef PDK_FRAMEWORK_LUAFRIENDLY
5054 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5055#if FXT_VERSION >= FINALEVERSION_27_3
5056 return _prefsdata.MinimizeRests;
5121 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5122#if FXT_VERSION >= FINALEVERSION_27_3
5123 return _prefsdata.FQ_USES_TEMPER;
5228 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5229#if FXT_VERSION >= FINALEVERSION_27_3
5230 return _prefsdata.TransposeMIDIOnInput;
5247 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5248#if FXT_VERSION >= FINALEVERSION_27_3
5249 return 100 - _prefsdata.HiddenTextShade;
5266 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5267#if FXT_VERSION >= FINALEVERSION_27_3
5268 return _prefsdata.viewPerc1;
5285 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5286#if FXT_VERSION >= FINALEVERSION_27_3
5287 return _prefsdata.viewPerc2;
5304 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5305#if FXT_VERSION >= FINALEVERSION_27_3
5306 return _prefsdata.viewPerc3;
5318#ifndef PDK_FRAMEWORK_LUAFRIENDLY
5399 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5400#if FXT_VERSION >= FINALEVERSION_27_3
5401 _prefsdata.AutoMusicSpacing = state;
5461 _prefsdata.FQ_Mode = value;
5476 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5477#if FXT_VERSION >= FINALEVERSION_27_3
5478 _prefsdata.RemoveSmallNotes = value;
5497 _prefsdata.XPAND_MINS = value;
5512 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5513#if FXT_VERSION >= FINALEVERSION_27_3
5514 _prefsdata.MinimizeRests = state;
5577 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5578#if FXT_VERSION >= FINALEVERSION_27_3
5579 _prefsdata.FQ_USES_TEMPER = state;
5674 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5675#if FXT_VERSION >= FINALEVERSION_27_3
5676 _prefsdata.TransposeMIDIOnInput = state;
5691 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5692#if FXT_VERSION >= FINALEVERSION_27_3
5693 const twobyte min = (std::min)((twobyte)100, percent);
5694 _prefsdata.HiddenTextShade = 100 - (std::max)((twobyte)0, min);
5709 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5710#if FXT_VERSION >= FINALEVERSION_27_3
5711 _prefsdata.viewPerc1 = (std::max)((ePercent)0, percent);
5726 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5727#if FXT_VERSION >= FINALEVERSION_27_3
5728 _prefsdata.viewPerc2 = (std::max)((ePercent)0, percent);
5743 FINALE_VERSION_CHECK(FINALEVERSION_27_3);
5744#if FXT_VERSION >= FINALEVERSION_27_3
5745 _prefsdata.viewPerc3 = (std::max)((ePercent)0, percent);
5764 _FCEDTMusicSpacingPrefs _prefsdata;
5766 EXTAG Tag()
const override {
return _fcpf_MusicSpacingPrefs; }
5768 int DataSizeLoad()
const override {
return sizeof(_FCEDTMusicSpacingPrefs); }
5769 void* Allocate()
override {
return (
void*) &_prefsdata; }
5778 memcpy(&_prefsdata, pOtherObject->_GetPrefsData(),
sizeof(_prefsdata));
5793 GRACESPMODE_RESETTOOFFSET = 0,
5794 GRACESPMODE_KEEPCURRENT = 1,
5795 GRACESPMODE_AUTOMATIC = 2
5804 MANUALPOS_CLEAR = 0,
5807 MANUALPOS_INCORPORATE = 1,
5808 MANUALPOS_IGNORE = 2
5829#ifndef DOXYGEN_SHOULD_IGNORE_THIS
5831 void* _GetPrefsData() {
return &_prefsdata; }
5834 const char*
ClassName()
const override {
return "FCMusicSpacingPrefs"; }
5859 int returnvalue = _prefsdata.scalingFactorHigh * 0x10000;
5860 returnvalue += _prefsdata.scalingFactorLow;
5874 int returnvalue = _prefsdata.scalingFactorHigh * 0x10000;
5875 returnvalue += _prefsdata.scalingFactorLow;
5876 double floatresult = (double) returnvalue;
5877 return floatresult / 10000.0;
5965#ifndef PDK_FRAMEWORK_LUAFRIENDLY
5984#ifndef PDK_FRAMEWORK_LUAFRIENDLY
5991 if (
GetBitFlag(_prefsdata.flag, MSP_CLRPOSITS))
return MANUALPOS_CLEAR;
5992 if (
GetBitFlag(_prefsdata.flag, MSP_USEPOSITS))
return MANUALPOS_INCORPORATE;
5993 return MANUALPOS_IGNORE;
6002#ifndef PDK_FRAMEWORK_LUAFRIENDLY
6039#if OPERATING_SYSTEM == WINDOWS
6040 return GetBitFlag(_prefsdata.flag, MSP_USEPRINTER);
6054 return (_prefsdata.useAllotmentTables == 1);
6063 return MAKELONG(_prefsdata.referenceDurationLow, _prefsdata.referenceDurationHigh);
6072 return MAKELONG(_prefsdata.referenceWidthLow, _prefsdata.referenceWidthHigh);
6088 ufourbyte fbRatio = (ufourbyte) value;
6089 _prefsdata.scalingFactorLow = fbRatio & 0xffff;
6090 _prefsdata.scalingFactorHigh = (fbRatio & 0xffff0000) >> 16;
6106 ufourbyte fbRatio =
static_cast<ufourbyte
>(std::lround(ratio));
6107 _prefsdata.scalingFactorLow = fbRatio & 0xffff;
6108 _prefsdata.scalingFactorHigh = (fbRatio & 0xffff0000) >> 16;
6197#ifndef PDK_FRAMEWORK_LUAFRIENDLY
6203 ) { _prefsdata.graceNoteSpacingMode = (twobyte) value; }
6218#ifndef PDK_FRAMEWORK_LUAFRIENDLY
6228 case MANUALPOS_CLEAR:
6232 case MANUALPOS_INCORPORATE:
6236 case MANUALPOS_IGNORE:
6250#ifndef PDK_FRAMEWORK_LUAFRIENDLY
6261 Set16BitFlag(&_prefsdata.flag, MSP_AVCOLUNISONS_ALL,
true);
6262 Set16BitFlag(&_prefsdata.flag, MSP_AVCOLUNISONS_SAME,
false);
6265 Set16BitFlag(&_prefsdata.flag, MSP_AVCOLUNISONS_ALL,
false);
6266 Set16BitFlag(&_prefsdata.flag, MSP_AVCOLUNISONS_SAME,
true);
6269 Set16BitFlag(&_prefsdata.flag, MSP_AVCOLUNISONS_ALL,
false);
6270 Set16BitFlag(&_prefsdata.flag, MSP_AVCOLUNISONS_SAME,
false);
6290 [[deprecated]]
void SetTiesGutter(twobyte value) { _prefsdata.tiesGutter = -value; }
6301#if OPERATING_SYSTEM == WINDOWS
6302 return Set16BitFlag(&_prefsdata.flag, MSP_USEPRINTER, state);
6314 _prefsdata.useAllotmentTables = allotmenttable ? 1 : 0;
6323 _prefsdata.referenceDurationLow = LOWORD(duration);
6324 _prefsdata.referenceDurationHigh = HIWORD(duration);
6333 _prefsdata.referenceWidthLow = LOWORD(width);
6334 _prefsdata.referenceWidthHigh = HIWORD(width);
6351 EEnigmaFont _prefsdata;
6352 EXTAG Tag()
const override {
return pf_DefaultFontPrefs; }
6354 int DataSizeLoad()
const override {
return sizeof(EEnigmaFont); }
6355 void* Allocate()
override {
return (
void*) &_prefsdata; }
6363 memcpy(&_prefsdata, ((
FCFontPrefs*)pSource)->_GetPrefsData(),
sizeof(_prefsdata));
6371#ifndef DOXYGEN_SHOULD_IGNORE_THIS
6373 void* _GetPrefsData() {
return &_prefsdata; }
6376 const char*
ClassName()
const override {
return "FCFontPrefs"; }
6527 memset(&_prefsdata, 0,
sizeof(_prefsdata));
6542 pFontInfo->
SetSize(_prefsdata.size);
6569#ifdef PDK_FRAMEWORK_LUAFRIENDLY_CPP
6571 luabridge::RefCountedPtr<FCFontInfo> CreateFontInfo_GC()
6588 _prefsdata.size = pFontInfo->
GetSize();
6607#if FXT_VERSION >= FINALEVERSION_26_2
6608 EDTMultimeasureRestPrefs26_2 _new;
6610 _FCEDTMMRestDefaultsPrefs _old;
6613 EXTAG Tag()
const override
6615#if FXT_VERSION >= FINALEVERSION_26_2
6616 if (_use26)
return pf_MultimeasureRestPrefs26_2;
6618 return _fcpf_MMRestDefaultPrefs;
6621 int DataSizeLoad()
const override
6623#if FXT_VERSION >= FINALEVERSION_26_2
6624 if (_use26)
return sizeof(_prefsdata._new);
6626 return sizeof(_prefsdata._old);
6628 void* Allocate()
override {
return (
void*) _GetPrefsData(); }
6644#ifndef DOXYGEN_SHOULD_IGNORE_THIS
6646 void* _GetPrefsData() {
return &_prefsdata; }
6649 const char*
ClassName()
const override {
return "FCMultiMeasureRestPrefs"; }
6659 memset(&_prefsdata, 0,
sizeof(_prefsdata));
6667 twobyte
GetWidth()
const {
return _GET_PREFDATA2(measWidth, measpace); }
6674 twobyte
GetShapeID()
const {
return _GET_PREFDATA2(shapeID, shapedef); }
6693 bool GetAutoUpdate()
const {
return _GET_PREFDATA2(mmautoupdate, defAutoUpdateMMRests) != 0; }
6699 twobyte
GetSymbolSpace()
const {
return _GET_PREFDATA2(spaceBetweenSymbols, spacing); }
6747 void SetShapeID(twobyte shapeID) { _SET_PREFDATA2(shapeID, shapedef) = shapeID; }
6754 void SetAutoUpdate(
bool value) { _SET_PREFDATA2(mmautoupdate, defAutoUpdateMMRests) = value; }
6760 void SetSymbolSpace(twobyte value) { _SET_PREFDATA2(spaceBetweenSymbols, spacing) = value; }
6807 void SetWidth(twobyte value) { _SET_PREFDATA2(measWidth, measpace) = value; }
6833#ifdef PDK_FRAMEWORK_DEBUG
6852 EDTSlurContourPrefs _prefsdata;
6854 EXTAG Tag()
const override
6860 return MAKEEXTAG(edOther2Inci,
'5',
'2');
6863 int DataSizeLoad()
const override {
return sizeof(EDTSlurContourPrefs); }
6864 void* Allocate()
override {
return (
void*) &_prefsdata; }
6872 memcpy(&_prefsdata, ((
FCSlurContourPrefs*)pSource)->_GetPrefsData(),
sizeof(_prefsdata));
6879#ifndef DOXYGEN_SHOULD_IGNORE_THIS
6881 void* _GetPrefsData() {
return &_prefsdata; }
6884 bool Load([[maybe_unused]]twobyte prefsno = 0)
override
6886 _dataid.other.cmper = kPreferencesCmper;
6891#if FXT_VERSION >= FINALEVERSION_26_2
6893 template <std::
size_t N>
6894 void SetFromFinale26_2(
const EDTSlurControlPointStyle (&inp)[N])
6896 static_assert(
sizeof(inp) ==
sizeof(_prefsdata),
"Size of Finale 26.2 EDTSlurControlPointStyle array does not match size of EDTSlurContourPrefs.");
6897 memcpy(&_prefsdata, &inp,
sizeof(_prefsdata));
6902 template <std::
size_t N>
6903 void PutToFinale26_2(EDTSlurControlPointStyle (&outp)[N])
const
6905 static_assert(
sizeof(outp) ==
sizeof(_prefsdata),
"Size of Finale 26.2 EDTSlurControlPointStyle array does not match size of EDTSlurContourPrefs.");
6906 memcpy(&outp, &_prefsdata,
sizeof(outp));
6911 const char*
ClassName()
const override {
return "FCSlurContourPrefs"; }
6917 memset(&_prefsdata, 0,
sizeof(_prefsdata));
6932 if (slurlength <= _prefsdata.shortSpan.def)
return _prefsdata.shortSpan.inset;
6933 const ESlurContourDefaults* pShorterDefaults = NULL;
6934 const ESlurContourDefaults* pLongerDefaults = NULL;
6935 if (slurlength <= _prefsdata.mediumSpan.def)
6937 pShorterDefaults = &_prefsdata.shortSpan;
6938 pLongerDefaults = &_prefsdata.mediumSpan;
6940 else if (slurlength <= _prefsdata.longSpan.def)
6942 pShorterDefaults = &_prefsdata.mediumSpan;
6943 pLongerDefaults = &_prefsdata.longSpan;
6947 pShorterDefaults = &_prefsdata.longSpan;
6948 pLongerDefaults = &_prefsdata.extraLongSpan;
6952 int evpuoffset = slurlength - pShorterDefaults->def;
6953 int heigthspandiff = pLongerDefaults->inset - pShorterDefaults->inset;
6954 int evpuspan = pLongerDefaults->def - pShorterDefaults->def;
6955 return pShorterDefaults->inset + evpuoffset * heigthspandiff / evpuspan;
6970 if (slurlength <= _prefsdata.shortSpan.def)
return _prefsdata.shortSpan.height;
6971 const ESlurContourDefaults* pShorterDefaults = NULL;
6972 const ESlurContourDefaults* pLongerDefaults = NULL;
6973 if (slurlength <= _prefsdata.mediumSpan.def)
6975 pShorterDefaults = &_prefsdata.shortSpan;
6976 pLongerDefaults = &_prefsdata.mediumSpan;
6978 else if (slurlength <= _prefsdata.longSpan.def)
6980 pShorterDefaults = &_prefsdata.mediumSpan;
6981 pLongerDefaults = &_prefsdata.longSpan;
6985 pShorterDefaults = &_prefsdata.longSpan;
6986 pLongerDefaults = &_prefsdata.extraLongSpan;
6991 int evpuoffset = slurlength - pShorterDefaults->def;
6992 int heigthspandiff = pLongerDefaults->height - pShorterDefaults->height;
6993 int evpuspan = pLongerDefaults->def - pShorterDefaults->def;
6994 return pShorterDefaults->height + evpuoffset * heigthspandiff / evpuspan;
7007 return _prefsdata.shortSpan.def;
7018 return _prefsdata.shortSpan.inset;
7027 return _prefsdata.shortSpan.height;
7036 return _prefsdata.mediumSpan.def;
7047 return _prefsdata.mediumSpan.inset;
7056 return _prefsdata.mediumSpan.height;
7065 return _prefsdata.longSpan.def;
7076 return _prefsdata.longSpan.inset;
7085 return _prefsdata.longSpan.height;
7094 return _prefsdata.extraLongSpan.def;
7103 return _prefsdata.extraLongSpan.inset;
7112 return _prefsdata.extraLongSpan.height;
7125 _prefsdata.shortSpan.def = value;
7136 _prefsdata.shortSpan.inset = value;
7145 _prefsdata.shortSpan.height = value;
7154 _prefsdata.mediumSpan.def = value;
7165 _prefsdata.mediumSpan.inset = value;
7174 _prefsdata.mediumSpan.height = value;
7183 _prefsdata.longSpan.def = value;
7194 _prefsdata.longSpan.inset = value;
7203 _prefsdata.longSpan.height = value;
7212 _prefsdata.extraLongSpan.def = value;
7223 _prefsdata.extraLongSpan.inset = value;
7232 _prefsdata.extraLongSpan.height = value;
7235#ifdef PDK_FRAMEWORK_DEBUG
7243#ifndef DOXYGEN_SHOULD_IGNORE_THIS
7244#if FXT_VERSION < FINALEVERSION_26_2
7245#include "pragma_align_begin.h"
7246struct EDTSmartShapeEntryConnectStyle
7248 twobyte connectIndex;
7252#include "pragma_align_end.h"
7272 EDTSmartShapeEntryConnectStyle _data;
7347#ifndef DOXYGEN_SHOULD_IGNORE_THIS
7363 memset(&_data, 0,
sizeof(_data));
7367 void CopyDataTo(EDTSmartShapeEntryConnectStyle* target)
const
7368 { *target = _data; }
7371 const char*
ClassName()
const override {
return "FCSmartShapeEntryConnectStyle"; }
7380#ifndef PDK_FRAMEWORK_LUAFRIENDLY
7420#ifndef DOXYGEN_SHOULD_IGNORE_THIS
7423#if FXT_VERSION >= FINALEVERSION_26_2
7424 EDTSmartShapePrefs26_2 _new;
7426 _FCEDTSmartShapePrefs _old;
7429 EXTAG
Tag()
const override
7431#if FXT_VERSION >= FINALEVERSION_26_2
7432 if (_use26)
return pf_SmartShapePrefs26_2;
7434 return _fcpf_SmartShapePrefs;
7439#if FXT_VERSION >= FINALEVERSION_26_2
7440 if (_use26)
return sizeof(_prefsdata._new);
7442 return sizeof(_prefsdata._old);
7445 void*
Allocate()
override {
return (
void*) _GetPrefsData(); }
7462#ifndef DOXYGEN_SHOULD_IGNORE_THIS
7464 void* _GetPrefsData() {
return &_prefsdata; }
7467 const char*
ClassName()
const override {
return "FCSmartShapePrefs"; }
7495 memset(&_prefsdata, 0,
sizeof(_prefsdata));
7508 return _GET_PREFDATA2(customLineStyle, ssLineStyleCmpCustom);
7517 return _GET_PREFDATA2(glissandoStyle, ssLineStyleCmp_Glissando);
7526 return _GET_PREFDATA2(tabSlideStyle, ssLineStyleCmp_TabSlide);
7535 return _GET_PREFDATA2(guitarBendStyle, ssLineStyleCmp_TabBendCurve);
7544 return _GET_PREFDATA2(bCrescDimHorizontal, crescHorizontal);
7555 return _GET_PREFDATA2(crescDimOpening, longHairpinOpeningWidth);
7581 return _GET_PREFDATA2(crescDimWidth, crescLineWidth);
7590 return _GET_PREFDATA2(bUseEngraverSlurs, useEngraverSlurs) != 0;
7599 return _GET_PREFDATA2(lineThickness, smartLineWidth);
7608 return _GET_PREFDATA2(dashLength, smartDashOn);
7617 return _GET_PREFDATA2(dashSpace, smartDashOff);
7626 return _GET_PREFDATA2(hookLength, hookLength);
7635 return _GET_PREFDATA2(bOctavaAsText, showOctavaAsText) != 0;
7644 return _GET_PREFDATA2(engrMaxAngle, maxSlurAngle);
7653 return _GET_PREFDATA2(engrSymmetry, slurSymmetry);
7662 return _GET_PREFDATA2(engrSpace, slurPadding);
7672#if FXT_VERSION >= FINALEVERSION_26_2
7673 if (_use26)
return _prefsdata._new.slurAvoidAccidentals != 0;
7675 return (_prefsdata._old.engrAcciMode == 2);
7686 return _GET_PREFDATA2(engrAcciSpace, slurAcciPadding);
7697 return _GET_PREFDATA2(engrStretchFirst, slurDoStretchFirst) != 0;
7708 return _GET_PREFDATA2(engrStretchMode, slurStretchByPercent) != 0;
7717 return _GET_PREFDATA2(engrMaxStretchPrecent, maxSlurStretchPercent);
7726 return _GET_PREFDATA2(engrMaxStretchFixed, maxSlurStretch);
7735 return _GET_PREFDATA2(engrMaxLift, maxSlurLift);
7744 return _GET_PREFDATA2(slurbrStaffLineAvoid, slurBreakVertAdj);
7753 return _GET_PREFDATA2(slurbrStartAdjust, slurLeftBreakHorzAdj);
7762 return _GET_PREFDATA2(slurbrEndAdjust, slurRightBreakHorzAdj);
7771 return _GET_PREFDATA2(slurtipWidth, smartSlurTipWidth);
7782 return _GET_PREFDATA2(slurtipAvoidStaff, slurAvoidStaffLines) != 0;
7793#if FXT_VERSION >= FINALEVERSION_26_2
7794 if (_use26)
return _prefsdata._new.slurAvoidStaffLinesAmt;
7798 return _prefsdata._old.slurtipAvoidStaffVal - 1;
7807 return _GET_PREFDATA2(slurThicknessHorizLeft, slurThicknessCp1X);
7816 return _GET_PREFDATA2(slurThicknessVertLeft, slurThicknessCp1Y);
7825 return _GET_PREFDATA2(slurThicknessHorizRight, slurThicknessCp2X);
7834 return _GET_PREFDATA2(slurThicknessVertRight, slurThicknessCp2Y);
7843 return _GET_PREFDATA2(bendParentheses, guitarBendUseParens) != 0;
7852 return _GET_PREFDATA2(bendHideNumber, guitarBendHideBendTo) != 0;
7861 return _GET_PREFDATA2(bendAutoGenerateText, guitarBendGenText) != 0;
7872 return _GET_PREFDATA2(bendReplaceWithFull, guitarBendUseFull) != 0;
7883#if FXT_VERSION >= FINALEVERSION_26_2
7884 if (_use26)
return _prefsdata._new.articAvoidSlurAmt;
7899 _SET_PREFDATA2(customLineStyle, ssLineStyleCmpCustom) = idvalue;
7908 _SET_PREFDATA2(glissandoStyle, ssLineStyleCmp_Glissando) = idvalue;
7917 _SET_PREFDATA2(tabSlideStyle, ssLineStyleCmp_TabSlide) = idvalue;
7926 _SET_PREFDATA2(guitarBendStyle, ssLineStyleCmp_TabBendCurve) = idvalue;
7935 _SET_PREFDATA2(bCrescDimHorizontal, crescHorizontal) = state;
7946 _SET_PREFDATA2(crescDimOpening, longHairpinOpeningWidth) = value;
7971 _SET_PREFDATA2(crescDimWidth, crescLineWidth) = value;
7980 _SET_PREFDATA2(bUseEngraverSlurs, useEngraverSlurs) = state;
7989 _SET_PREFDATA2(lineThickness, smartLineWidth) = value;
7998 _SET_PREFDATA2(dashLength, smartDashOn) = value;
8007 _SET_PREFDATA2(dashSpace, smartDashOff) = value;
8016 _SET_PREFDATA2(hookLength, hookLength) = value;
8025 _SET_PREFDATA2(bOctavaAsText, showOctavaAsText) = state;
8034 _SET_PREFDATA2(engrMaxAngle, maxSlurAngle) = value;
8043 _SET_PREFDATA2(engrSymmetry, slurSymmetry) = value;
8052 _SET_PREFDATA2(engrSpace, slurPadding) = value;
8061#if FXT_VERSION >= FINALEVERSION_26_2
8064 _prefsdata._new.slurAvoidAccidentals = state;
8068 _prefsdata._old.engrAcciMode = state ? 2 : 1;
8079 _SET_PREFDATA2(engrAcciSpace, slurAcciPadding) = value;
8090 _SET_PREFDATA2(engrStretchFirst, slurDoStretchFirst) = state;
8101 _SET_PREFDATA2(engrStretchMode, slurStretchByPercent) = state;
8110 _SET_PREFDATA2(engrMaxStretchPrecent, maxSlurStretchPercent) = value;
8119 _SET_PREFDATA2(engrMaxStretchFixed, maxSlurStretch) = value;
8128 _SET_PREFDATA2(engrMaxLift, maxSlurLift) = value;
8137 _SET_PREFDATA2(slurbrStaffLineAvoid, slurBreakVertAdj) = value;
8146 _SET_PREFDATA2(slurbrStartAdjust, slurLeftBreakHorzAdj) = value;
8155 _SET_PREFDATA2(slurbrEndAdjust, slurRightBreakHorzAdj) = value;
8164 _SET_PREFDATA2(slurtipWidth, smartSlurTipWidth) = value;
8175 _SET_PREFDATA2(slurtipAvoidStaff, slurAvoidStaffLines) = state;
8186#if FXT_VERSION >= FINALEVERSION_26_2
8189 _prefsdata._new.slurAvoidStaffLinesAmt = value;
8195 _prefsdata._old.slurtipAvoidStaffVal = value + 1;
8204 _SET_PREFDATA2(slurThicknessHorizLeft, slurThicknessCp1X) = value;
8213 _SET_PREFDATA2(slurThicknessVertLeft, slurThicknessCp1Y) = value;
8222 _SET_PREFDATA2(slurThicknessHorizRight, slurThicknessCp2X) = value;
8231 _SET_PREFDATA2(slurThicknessVertRight, slurThicknessCp2Y) = value;
8240 _SET_PREFDATA2(bendParentheses, guitarBendUseParens) = state;
8249 _SET_PREFDATA2(bendHideNumber, guitarBendHideBendTo) = state;
8258 _SET_PREFDATA2(bendAutoGenerateText, guitarBendGenText) = state;
8269 _SET_PREFDATA2(bendReplaceWithFull, guitarBendUseFull) = state;
8280#if FXT_VERSION >= FINALEVERSION_26_2
8283 _prefsdata._new.articAvoidSlurAmt = value;
8302#if FXT_VERSION >= FINALEVERSION_26_2
8305 retval->SetFromFinale26_2(_prefsdata._new.slurControlStyles);
8309 if (! retval->
Load())
8317#ifdef PDK_FRAMEWORK_LUAFRIENDLY_CPP
8319 luabridge::RefCountedPtr<FCSlurContourPrefs> CreateSlurContourPrefs_GC()
const
8334#if FXT_VERSION >= FINALEVERSION_26_2
8337 pPrefs->PutToFinale26_2(_prefsdata._new.slurControlStyles);
8341 return pPrefs->
Save();
8352#if FXT_VERSION >= FINALEVERSION_26_2
8389#if FXT_VERSION >= FINALEVERSION_26_2
8409#ifdef PDK_FRAMEWORK_LUAFRIENDLY_CPP
8411 luabridge::RefCountedPtr<FCSmartShapeEntryConnectStyle> CreateEntryConnectStyle_GC(twobyte styleType, utwobyte index)
const
8433 [[maybe_unused]]twobyte styleType, [[maybe_unused]]utwobyte index)
8435#if FXT_VERSION >= FINALEVERSION_26_2
8438 EDTSmartShapeEntryConnectStyle* target =
nullptr;
8442 target = &_prefsdata._new.slurConnectStyles[index];
8445 target = &_prefsdata._new.tabSlideConnectStyles[index];
8448 target = &_prefsdata._new.glissandoConnectStyles[index];
8451 target = &_prefsdata._new.bendCurveConnectStyles[index];
8454 if (target->connectIndex == inpConnectStyle->GetConnectionIndex())
8456 inpConnectStyle->CopyDataTo(target);
8464#ifdef PDK_FRAMEWORK_DEBUG
8508 bool _ValidateIndex(
8509#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8529 EDTTiePlacementPrefs _prefsdata;
8531 EXTAG Tag()
const override
8537 return MAKEEXTAG(edOther4Inci,
'8',
'5');
8540 int DataSizeLoad()
const override {
return sizeof(EDTTiePlacementPrefs); }
8541 void* Allocate()
override {
return (
void*)&_prefsdata; }
8549 memcpy(&_prefsdata, ((
FCTiePlacementPrefs*)pSource)->_GetPrefsData(),
sizeof(_prefsdata));
8559#ifndef DOXYGEN_SHOULD_IGNORE_THIS
8561 void* _GetPrefsData() {
return &_prefsdata; }
8564 bool Load([[maybe_unused]]twobyte prefsno = 0)
override
8566 _dataid.other.cmper = kPreferencesCmper;
8571#if FXT_VERSION >= FINALEVERSION_26_2
8573 template <std::
size_t N>
8574 void SetFromFinale26_2(
const EDTTieConnectStyle (&inp)[N])
8576 static_assert(
sizeof(inp) ==
sizeof(_prefsdata),
"Size of Finale 26.2 EDTTieConnectStyle array does not match size of EDTTiePlacementPrefs.");
8577 memcpy(&_prefsdata, &inp,
sizeof(_prefsdata));
8582 template <std::
size_t N>
8583 void PutToFinale26_2(EDTTieConnectStyle (&outp)[N])
const
8585 static_assert(
sizeof(outp) ==
sizeof(_prefsdata),
"Size of Finale 26.2 EDTTieConnectStyle array does not match size of EDTTiePlacementPrefs.");
8586 memcpy(&outp, &_prefsdata,
sizeof(outp));
8591 const char*
ClassName()
const override {
return "FCTiePlacementPrefs"; }
8613#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8621 if (!_ValidateIndex(placementtype))
return 0;
8622 return _prefsdata.placements[(int)placementtype].startHoriz;
8634#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8642 if (!_ValidateIndex(placementtype))
return 0;
8643 return _prefsdata.placements[(int)placementtype].startVert;
8655#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8663 if (!_ValidateIndex(placementtype))
return 0;
8664 return _prefsdata.placements[(int)placementtype].endHoriz;
8676#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8684 if (!_ValidateIndex(placementtype))
return 0;
8685 return _prefsdata.placements[(int)placementtype].endVert;
8701#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8706 placementtype, Evpu16 offsetvalue)
8708 if (!_ValidateIndex(placementtype))
return;
8709 _prefsdata.placements[(int)placementtype].startHoriz = offsetvalue;
8721#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8726 placementtype, Evpu16 offsetvalue)
8728 if (!_ValidateIndex(placementtype))
return;
8729 _prefsdata.placements[(int)placementtype].startVert = offsetvalue;
8741#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8746 placementtype, Evpu16 offsetvalue)
8748 if (!_ValidateIndex(placementtype))
return;
8749 _prefsdata.placements[(int)placementtype].endHoriz = offsetvalue;
8761#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8766 placementtype, Evpu16 offsetvalue)
8768 if (!_ValidateIndex(placementtype))
return;
8769 _prefsdata.placements[(int)placementtype].endVert = offsetvalue;
8804 bool _ValidateIndex(
8805#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8823 EDTTieContourPrefs _prefsdata;
8825 EXTAG Tag()
const override
8831 return MAKEEXTAG(MAKETAG(edMultiInciOther,5),
'8',
'6');
8834 int DataSizeLoad()
const override {
return sizeof(EDTTieContourPrefs); }
8835 void* Allocate()
override {
return (
void*) &_prefsdata; }
8843 memcpy(&_prefsdata, ((
FCTieContourPrefs*)pSource)->_GetPrefsData(),
sizeof(_prefsdata));
8851#ifndef DOXYGEN_SHOULD_IGNORE_THIS
8853 void* _GetPrefsData() {
return &_prefsdata; }
8856 bool Load([[maybe_unused]]twobyte prefsno = 0)
override
8858 _dataid.other.cmper = kPreferencesCmper;
8863#if FXT_VERSION >= FINALEVERSION_26_2
8865 template <std::
size_t N>
8866 void SetFromFinale26_2(
const EDTTieControlStyle (&inp)[N])
8868 static_assert(
sizeof(inp) ==
sizeof(_prefsdata.contours),
"Size of Finale 26.2 EDTTieControlStyle array does not match size of EDTTieContourPrefs.");
8869 memcpy(&_prefsdata.contours, &inp,
sizeof(_prefsdata.contours));
8874 template <std::
size_t N>
8875 void PutToFinale26_2(EDTTieControlStyle (&outp)[N])
const
8877 static_assert(
sizeof(outp) ==
sizeof(_prefsdata.contours),
"Size of Finale 26.2 EDTTieControlStyle array does not match size of EDTTieContourPrefs.");
8878 memcpy(&outp, &_prefsdata.contours,
sizeof(outp));
8883 const char*
ClassName()
const override {
return "FCTieContourPrefs"; }
8903#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8911 if (!_ValidateIndex(index))
return 0;
8912 return _prefsdata.contours[(int)index].span;
8922#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8930 if (!_ValidateIndex(index))
return 0;
8931 float value = _prefsdata.contours[(int)index].insetRelativeLeft;
8943#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8951 if (!_ValidateIndex(index))
return 0;
8952 return _prefsdata.contours[(int)index].insetRelativeLeft;
8962#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8970 if (!_ValidateIndex(index))
return 0;
8971 return _prefsdata.contours[(int)index].heightLeft;
8981#ifndef PDK_FRAMEWORK_LUAFRIENDLY
8988 if (!_ValidateIndex(index))
return 0;
8989 return _prefsdata.contours[(int)index].insetFixedLeft;
8999#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9006 if (!_ValidateIndex(index))
return 0;
9007 float value = _prefsdata.contours[(int)index].insetRelativeRight;
9019#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9026 if (!_ValidateIndex(index))
return 0;
9027 return _prefsdata.contours[(int)index].insetRelativeRight;
9037#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9044 if (!_ValidateIndex(index))
return 0;
9045 return _prefsdata.contours[(int)index].heightRight;
9055#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9062 if (!_ValidateIndex(index))
return 0;
9063 return _prefsdata.contours[(int)index].insetFixedRight;
9079#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9084 index, Evpu16 value)
9086 if (!_ValidateIndex(index))
return;
9087 _prefsdata.contours[(int)index].span = value;
9099#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9104 index,
float percentvalue)
9106 if (!_ValidateIndex(index))
return;
9107 percentvalue *= 2048;
9108 _prefsdata.contours[(int)index].insetRelativeLeft = (twobyte) percentvalue;
9120#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9125 index, Evpu16 rawvalue)
9127 if (!_ValidateIndex(index))
return;
9128 _prefsdata.contours[(int)index].insetRelativeLeft = rawvalue;
9140#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9145 index, Evpu16 value)
9147 if (!_ValidateIndex(index))
return;
9148 _prefsdata.contours[(int)index].heightLeft = value;
9160#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9165 index, Evpu16 value)
9167 if (!_ValidateIndex(index))
return;
9168 _prefsdata.contours[(int)index].insetFixedLeft = value;
9180#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9185 index,
float percentvalue)
9187 if (!_ValidateIndex(index))
return;
9188 percentvalue *= 2048;
9189 _prefsdata.contours[(int)index].insetRelativeRight = (twobyte) percentvalue;
9201#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9206 index, Evpu16 rawvalue)
9208 if (!_ValidateIndex(index))
return;
9209 _prefsdata.contours[(int)index].insetRelativeRight = rawvalue;
9221#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9226 index, Evpu16 value)
9228 if (!_ValidateIndex(index))
return;
9229 _prefsdata.contours[(int)index].heightRight = value;
9241#ifndef PDK_FRAMEWORK_LUAFRIENDLY
9246 index, Evpu16 value)
9248 if (!_ValidateIndex(index))
return;
9249 _prefsdata.contours[(int)index].insetFixedRight = value;
9267#if FXT_VERSION >= FINALEVERSION_26_2
9268 EDTTiePrefs26_2 _new;
9270 _FCEDTTiePrefs _old;
9273 EXTAG Tag()
const override
9275#if FXT_VERSION >= FINALEVERSION_26_2
9276 if (_use26)
return pf_TiePrefs26_2;
9278 return _fcpf_TiePrefs;
9281 int DataSizeLoad()
const override
9283#if FXT_VERSION >= FINALEVERSION_26_2
9284 if (_use26)
return sizeof(_prefsdata._new);
9286 return sizeof(_prefsdata._old);
9289 void* Allocate()
override {
return (
void*) _GetPrefsData(); }
9297 memcpy(_GetPrefsData(), ((
FCTiePrefs*)pSource)->_GetPrefsData(), DataSizeLoad());
9305#ifndef DOXYGEN_SHOULD_IGNORE_THIS
9307 void* _GetPrefsData() {
return &_prefsdata; }
9362 const char*
ClassName()
const override {
return "FCTiePrefs"; }