24 bool _removeindpendenttime;
27 bool _SetIndependentTimeSignature(
FCTimeSignature* pTimeSig,
bool forDisplay =
false);
30 bool _SetGlobalTimeSignature(
FCTimeSignature* pTimeSig,
bool forDisplay =
false);
49 _pTimeSigDisplay = NULL;
50 _removeindpendenttime =
false;
53#ifdef PDK_FRAMEWORK_LUAFRIENDLY_CPP
58 static int FCCell_tostring(lua_State* L)
60 FCCell* pThis = luabridge::Stack<FCCell*>::get(L, 1) LB3(.value());
61 std::
string s = std::
string(pThis->
ClassName()) + ": (" + std::to_string(pThis->
GetMeasure()) + ", " + std::to_string(pThis->
GetStaff()) + ")";
62 luabridge::Stack<std::
string>::push(L, s).throw_on_error();
71 delete _pTimeSigDisplay;
74#ifdef PDK_FRAMEWORK_ENTRIES
104#ifdef PDK_FRAMEWORK_LUAFRIENDLY_CPP
106 luabridge::RefCountedPtr<FCNoteEntryCell> CreateNoteEntryCell_GC(
bool shouldload,
int loadlayermode = 0)
112 const char*
ClassName()
const override {
return "FCCell"; }
167#if PDK_FRAMEWORK_ENTRIES
216#ifdef PDK_FRAMEWORK_LUAFRIENDLY_CPP
218 luabridge::RefCountedPtr<FCKeySignature> CreateCurrentVisibleKeySignature_GC(
bool concertpitch =
false)
274 if ((_measure == measure) && (_staff == staff))
return;
292 if (pMetrics->
LoadAtCell(
this))
return pMetrics;
335 delete _pTimeSigDisplay;
336 _pTimeSigDisplay =
nullptr;
337 _removeindpendenttime =
true;
340#ifdef PDK_FRAMEWORK_LUAFRIENDLY_CPP
342 luabridge::RefCountedPtr<FCCellMetrics> CreateCellMetrics_GC()
369 TimeEdu32 _measurepos;
379 _measurepos = measurepos;
381 const char*
ClassName()
const override {
return "FCCellPos"; }
428 const char*
ClassName()
const override {
return "FCCells"; }
472 FCCell* Find(
int measure,
int staff);
Base class for the Finale Framework classes.
Definition ff_base.h:71
Base class for all collection classes. A collection is a storage that can store multiple objects of s...
Definition ff_basecollection.h:26
__FCBase * GetItemAt(int index) const
Returns the object at the index position. Index is 0-based.
Definition finaleframework.cpp:13767
The class that reference a cell (one measure on one staff) in the musical "grid".
Definition ff_cell.h:18
FCKeySignature * GetKeySignature()
Returns a pointer to the key signature object.
Definition finaleframework.cpp:20178
void RemoveIndependentTimeSigForDisplay()
Removes an independent time signature for display if there is one.
Definition ff_cell.h:333
FCNoteEntryCell * CreateNoteEntryCell(bool shouldload, int loadlayermode=0)
Creates a note entry cell object and optionally loads it with notes.
Definition ff_cell.h:93
TimeEdu32 CalcDuration() const
Returns the duration of the frame, according to the time signature.
Definition ff_cell.h:162
FCTimeSignature * GetTimeSignatureForDisplay()
Returns a pointer to the time signature object. If time signature for display shouldn't be used,...
Definition finaleframework.cpp:20292
FCTimeSignature * AssureSavedIndependentTimeSigForDisplay()
Makes sure that the cell has saved independent time signature for display data.
Definition finaleframework.cpp:20379
int GetMeasure() const
Returns the measure for the cell.
Definition ff_cell.h:120
void ReAssign(int measure, int staff)
Reassigns the cell to a different cell position, which will also delete attached cell data.
Definition ff_cell.h:272
FCKeySignature * CreateCurrentVisibleKeySignature(bool concertpitch=false) const
Returns the visible key signature on the score or part, taking into account transposition as well as ...
Definition ff_cell.h:209
bool CalcContainsEntries()
Returns true if the cell contains entries in any layer. This function takes into account voiced linke...
Definition finaleframework.cpp:20141
FCTimeSignature * GetTimeSignature()
Returns a pointer to the time signature object.
Definition finaleframework.cpp:20275
bool HasIndependentTimeSig()
Returns true if the cell has an independent time signature.
Definition finaleframework.cpp:20194
int GetStaff() const
Returns the staff for the cell.
Definition ff_cell.h:128
bool HasIndependentKeySig()
Returns true if the cell has an independent key signature.
Definition finaleframework.cpp:20207
FCCellMetrics * CreateCellMetrics()
Creates a cell metrics object for a cell. The created object must be disposed after use.
Definition ff_cell.h:289
FCKeySignature * AssureSavedIndependentKeySig()
Makes sure that the cell has saved indepentent key signature data.
Definition finaleframework.cpp:20324
int CalcClefIndexAt(TimeEdu32 pos)
Calculates the clef index at a specific position in the cell.
Definition finaleframework.cpp:20134
FCCell(int measure, int staff)
The constructor.
Definition ff_cell.h:43
const char * ClassName() const override
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition ff_cell.h:112
bool Save()
Saves any independent key and/or time signatures connected with the cell.
Definition finaleframework.cpp:20071
TimeEdu32 CalcEntryDuration(int layer=0)
Returns the duration for all the entries in the cell. The value of the layer with the longest duratio...
Definition finaleframework.cpp:20097
FCTimeSignature * AssureSavedIndependentTimeSig()
Makes sure that the cell has saved independent time signature data.
Definition finaleframework.cpp:20346
Class that encapsulate the measure metrics info data.
Definition ff_base.h:3817
bool LoadAtCell(FCCell *pCell)
Loads the measure metrics for a cell.
Definition finaleframework.cpp:3766
This class is similar to FCCell, but also includes a position within the measure. It represents a "mu...
Definition ff_cell.h:366
const char * ClassName() const override
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition ff_cell.h:381
TimeEdu32 GetMeasurePos() const
Returns the (horizontal) duration position within the cell.
Definition ff_cell.h:407
FCCellPos(int measure, int staff, TimeEdu32 measurepos)
The constructor.
Definition ff_cell.h:375
eMeas GetMeasure() const
Returns the measure for the cell.
Definition ff_cell.h:389
eStaff GetStaff() const
Returns the staff for the cell.
Definition ff_cell.h:397
A collection of FCCell members.
Definition ff_cell.h:426
FCCell * GetItemAt(int index) const
Overridden GetItemAt() method that returns a FCCell object.
Definition ff_cell.h:479
const char * ClassName() const override
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition ff_cell.h:428
FCCells()
The constructor.
Definition ff_cell.h:434
Class for iterator handlers.
Definition ff_iterator.h:26
Class for key signatures. Instances of this class are auto-created by FCMeasure:GetKeySignature and F...
Definition ff_keysig.h:25
void SetID(eKey newkey)
Sets the key signature ID.
Definition ff_keysig.h:79
Class that encapsulates EREGION and provides additional functionality to region handling.
Definition ff_region.h:25
Class that encapsulate a cell of note entries.
Definition ff_noteframe.h:3133
bool Load()
Loads the note entries for the cell. Which layers that will be loaded are controlled by the SetLoadLa...
Definition finaleframework.cpp:18898
void SetLoadLayerMode(int mode)
Sets the "layer mode" for the Load method. This must be called/st before any Load() call.
Definition ff_noteframe.h:3679
Class for time signatures. Instances of this class are auto-created when needed by FCMeasure:GetTimeS...
Definition ff_timesig.h:27