15 #if OPERATING_SYSTEM == MAC_OS
16 #include "ff_cocoa_cppinterface.h"
28 bool _useFinaleFontExistAPI;
32 bool _starttimerfound, _endtimerfound, _performancefrequencyfound;
34 #if OPERATING_SYSTEM == MAC_OS
35 _FCUI_cocoa _fcuicocoa;
38 #if OPERATING_SYSTEM == WINDOWS
275 _parentwindow = parent;
276 _starttimerfound =
false;
277 _endtimerfound =
false;
278 _performancefrequencyfound =
false;
279 WINCODE(_useFinaleFontExistAPI =
false;)
280 MACCODE(_useFinaleFontExistAPI =
true;)
300 void AlertErrorUTF8(
const char* pszMessage,
const char* pszTitle = NULL);
316 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
332 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
337 AlertYesNoUTF8(
const char* pszMessage,
const char* pszTitle = NULL);
357 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
380 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
396 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
447 void AlertInfoUTF8(
const char* pszMessage,
const char* pszTitle = NULL);
465 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
564 WINCODE(
return true;)
565 MACCODE(
return false;)
575 WINCODE(
return false;)
576 MACCODE(
return true;)
776 #ifdef PDK_FRAMEWORK_DEBUG
Class for document-independent font information.
Definition: ff_base.h:1024
void AlertNeutral(FCString *pMessage, FCString *pTitle=NULL)
Displays a standard message box / alert, with an OK button. FCString version.
Definition: finaleframework.cpp:21123
void MoveToMeasure(int measure, int staffno=0)
Moves the view to the indicated 1-based measure.
Definition: finaleframework.cpp:21726
void AlertInfoCString(const char *pszMessage, const char *pszTitle=NULL)
Displays an information message box / alert, with an OK button. C string version. ...
Definition: finaleframework.cpp:21137
eUniChar32 DisplaySymbolDialog(FCFontInfo *pFontInfo, eUniChar32 symbolinit=0)
Displays the symbol selection dialog.
Definition: finaleframework.cpp:21815
ALERT_RETURNS AlertOkCancelCString(const char *pszMessage, const char *pszTitle=NULL)
Displays a error message box / alert, with OK+Cancel buttons. C string version.
Definition: finaleframework.cpp:21055
ALERT_RETURNS AlertOkCancelUTF8(const char *pszMessage, const char *pszTitle=NULL)
Displays a error message box / alert, with OK+Cancel buttons. UTF8 version.
Definition: finaleframework.cpp:21069
bool MenuCommand(MENU_COMMANDS menucmd)
Executes a supported menu command from Finale's menu.
Definition: finaleframework.cpp:21170
const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_ui.h:283
static double GetHiResTimer()
Returns a high-resolution timer value, mainly for use with internal profilers.
Definition: finaleframework.cpp:22004
double ReturnPerformanceTiming()
Calculates the time difference after a start+stop of the hi-resolution timer.
Definition: finaleframework.cpp:21986
bool ActivateWindow(EWND hwnd)
Activates a specific window.
Definition: finaleframework.cpp:21714
MENU_COMMANDS
The menu commands available to the FCUI::MenuCommand() method.
Definition: ff_ui.h:70
twobyte GetCurrentMeasure() const
Returns the currently displayed measure number in Scroll View.
Definition: finaleframework.cpp:21649
FCUI(EWND parent)
The constructor.
Definition: ff_ui.h:273
bool IsPageView()
Returns true if the current view for the current document is Page View.
Definition: finaleframework.cpp:21573
ALERT_RETURNS
The return values used by the alert box methods.
Definition: ff_ui.h:47
int GetScreenHeight() const
Returns the height in pixels of the primary screen.
Definition: finaleframework.cpp:21759
twobyte GetCurrentPage() const
Returns the currently displayed page number in Page View.
Definition: finaleframework.cpp:21632
void AlertErrorCString(const char *pszMessage, const char *pszTitle=NULL)
Displays a error message box / alert, with an OK button. C string version.
Definition: finaleframework.cpp:20919
void AlertInfo(FCString *pMessage, FCString *pTitle=NULL)
Displays an information message box / alert, with an OK button. FCString version. ...
Definition: finaleframework.cpp:21155
bool MenuPositionCommand(int mainmenuidx, int dropdownidx, int submenuidx)
Executes a menu command from a specific location in Finale's menu. Use this method with care! ...
Definition: finaleframework.cpp:21501
CMPER DisplayShapeDialog(CMPER cmperinit=0)
Displays the shape definition selection dialog box.
Definition: finaleframework.cpp:21801
void AlertInfoUTF8(const char *pszMessage, const char *pszTitle=NULL)
Displays an information message box / alert, with an OK button. UTF8 version.
Definition: finaleframework.cpp:21146
EWND GetParentWindow()
Returns the window handle to the main window (that was passed to the constructor.) ...
Definition: ff_ui.h:656
ALERT_RETURNS AlertYesNoCString(const char *pszMessage, const char *pszTitle=NULL)
Displays a error message box / alert, with Yes+No buttons. C string version.
Definition: finaleframework.cpp:20957
bool DisplayShellFolder(FCString *pFolderString)
Opens the file or folder in the operating system's workspace.
Definition: finaleframework.cpp:21935
ALERT_RETURNS AlertYesNo(FCString *pMessage, FCString *pTitle=NULL)
Displays a error message box / alert, with Yes+No buttons. FCString version.
Definition: finaleframework.cpp:20980
bool TextToClipboardUTF8(const char *pszText)
Copies text to the operating system's clipboard from an UTF8 source.
Definition: finaleframework.cpp:21609
CMPER DisplayTextExpressionDialog(CMPER cmperinit=0)
Displays the text expression definition selection dialog.
Definition: finaleframework.cpp:21773
Standard class for basic user interface functionality.
Definition: ff_ui.h:25
void StopPerformanceTimer()
Stops the high-resolution timer.
Definition: finaleframework.cpp:21977
ALERT_RETURNS AlertYesNoCancel(FCString *pMessage, FCString *pTitle=NULL)
Displays a error message box / alert, with Yes+No+Cancel buttons. FCString version.
Definition: finaleframework.cpp:21020
Base class for the Finale Framework classes.
Definition: ff_base.h:47
bool IsFontAvailable(FCString *pFontName)
Returns true if the font name exists on the running system.
Definition: finaleframework.cpp:21866
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: ff_ui.h:777
ALERT_RETURNS AlertYesNoUTF8(const char *pszMessage, const char *pszTitle=NULL)
Displays a error message box / alert, with Yes+No buttons. UTF8 version.
Definition: finaleframework.cpp:20971
void AlertErrorUTF8(const char *pszMessage, const char *pszTitle=NULL)
Displays a error message box / alert, with an OK button. UTF8 string version.
Definition: finaleframework.cpp:20928
void StartPerformanceTimer()
Starts the high-resolution timer.
Definition: finaleframework.cpp:21964
void AlertNeutralCString(const char *pszMessage, const char *pszTitle=NULL)
Displays a standard message box / alert, with an OK button. C string verison.
Definition: finaleframework.cpp:21105
void AlertError(FCString *pMessage, FCString *pTitle=NULL)
Displays a error message box / alert, with an OK button. FCString version.
Definition: finaleframework.cpp:20937
bool IsOnWindows()
Returns true if the user runs on Windows.
Definition: ff_ui.h:562
Class that provides storage for text. This is to achieve platform-transparent text handling...
Definition: ff_base.h:1473
CMPER DisplayArticulationDialog(CMPER cmperinit=0)
Displays the articulation definition selection dialog.
Definition: finaleframework.cpp:21787
bool TextToClipboard(const char *pszText)
Copies text to the operating system's clipboard.
Definition: finaleframework.cpp:21589
ALERT_RETURNS AlertOkCancel(FCString *pMessage, FCString *pTitle=NULL)
Displays a error message box / alert, with Ok+Cancel buttons. FCString version.
Definition: finaleframework.cpp:21078
void Beep()
Gives a beep from the speaker.
Definition: finaleframework.cpp:21740
bool IsOnMac()
Returns true if the user runs on the Mac.
Definition: ff_ui.h:573
EWND GetDocumentWindow()
Return the window handle to the current document window.
Definition: finaleframework.cpp:21681
bool ActivateDocumentWindow()
Brings the current document window to user focus.
Definition: finaleframework.cpp:21696
int GetScreenWidth() const
Returns the width in pixels of the primary screen.
Definition: finaleframework.cpp:21750
bool IsPartView()
Returns true if the current view is in a part (=not in the score).
Definition: ff_ui.h:519
static void DebugOutPtr(const char *pszPrefixText, void *ptr)
Static method that outputs a line for debugging purposes. The prefix text appears with the extra ptr ...
Definition: finaleframework.cpp:258
twobyte GetZoomLevel() const
Returns the current zoom level.
Definition: finaleframework.cpp:21665
bool GetUseIsFontAvailableAPI() const
Returns if Finale's own API for checking font availability should be used for IsFontAvailable().
Definition: ff_ui.h:556
void RedrawDocument()
Visually redraws the current document.
Definition: finaleframework.cpp:21548
int GetMaxLayers() const
Returns the maximum number of layers that Finale supports.
Definition: finaleframework.cpp:21768
void GetDecimalSeparator(FCString *pString)
Fills a FCString with the decimal separator used for the current user's locale.
Definition: finaleframework.cpp:21560
FCUI::ALERT_RETURNS AlertYesNoCancelUTF8(const char *pszMessage, const char *pszTitle)
Displays a error message box / alert, with Yes+No+Cancel buttons. UTF8 version.
Definition: finaleframework.cpp:21011
EWND GetActiveWindow()
Returns the currently active window.
Definition: finaleframework.cpp:21705
bool DisplayWebURL(FCString *pURLString)
Displays an URL in an external web browser.
Definition: finaleframework.cpp:21918
void AlertNeutralUTF8(const char *pszMessage, const char *pszTitle=NULL)
Displays a standard message box / alert, with an OK button. UTF8 verison.
Definition: finaleframework.cpp:21114
void SetUseIsFontAvailableAPI(bool state)
Sets if Finale's own API for checking font availability should be used for IsFontAvailable().
Definition: ff_ui.h:543
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: finaleframework.cpp:547