![]() |
Audacity 3.2.0
|
Public Member Functions | |
CloudSyncStatusBarFieldItem () | |
int | GetDefaultWidth (const AudacityProject &project) const override |
void | OnSize (AudacityProject &project) override |
void | SetText (AudacityProject &project, const TranslatableString &msg) override |
Sets the current text of the field. More... | |
TranslatableString | GetText (const AudacityProject &project) const override |
Retrieves the current text of the field. More... | |
bool | IsVisible (const AudacityProject &project) const override |
Returns true if the field is visible in the status bar of the given project. More... | |
void | MarkDirty (const AudacityProject &project) |
![]() | |
StatusBarFieldItem (StatusBarField identifier) | |
virtual | ~StatusBarFieldItem () |
virtual int | GetDefaultWidth (const AudacityProject &project) const =0 |
virtual void | OnSize (AudacityProject &project) |
virtual void | SetText (AudacityProject &project, const TranslatableString &msg)=0 |
Sets the current text of the field. More... | |
virtual TranslatableString | GetText (const AudacityProject &project) const =0 |
Retrieves the current text of the field. More... | |
virtual bool | IsVisible (const AudacityProject &project) const =0 |
Returns true if the field is visible in the status bar of the given project. More... | |
![]() | |
~SingleItem () override=0 | |
![]() | |
BaseItem (const Identifier &internalName) | |
virtual | ~BaseItem () |
Additional Inherited Members | |
![]() | |
const Identifier | name |
OrderingHint | orderingHint |
![]() | |
void | DispatchFieldChanged (const AudacityProject &project) |
Derived classes should call this method to notify the status bar that the field has changed. More... | |
Definition at line 47 of file CloudSyncStatusField.cpp.
|
inline |
Definition at line 50 of file CloudSyncStatusField.cpp.
|
inlineoverridevirtual |
Return the default width of the field in pixels. This is used to determine the initial width of the field in the status bar. The value may be overridden using StatusWidthFunctions. Returning -1 means that the field is expandable.In this case StatusWidthFunctions have no effect.
Implements StatusBarFieldItem.
Definition at line 55 of file CloudSyncStatusField.cpp.
References audacity::cloud::audiocom::sync::CloudSyncStatusField::Get(), audacity::cloud::audiocom::sync::CloudSyncStatusField::GetWidth(), and project.
|
inlineoverridevirtual |
Retrieves the current text of the field.
Implements StatusBarFieldItem.
Definition at line 78 of file CloudSyncStatusField.cpp.
References audacity::cloud::audiocom::sync::CloudSyncStatusField::Get(), audacity::cloud::audiocom::sync::CloudSyncStatusField::GetText(), and project.
|
inlineoverridevirtual |
Returns true if the field is visible in the status bar of the given project.
Implements StatusBarFieldItem.
Definition at line 83 of file CloudSyncStatusField.cpp.
References audacity::cloud::audiocom::sync::CloudSyncStatusField::Get(), audacity::cloud::audiocom::sync::CloudSyncStatusField::IsVisible(), and project.
|
inline |
Definition at line 88 of file CloudSyncStatusField.cpp.
References project.
|
inlineoverridevirtual |
Called when the status bar associated with the project is resized. Could be used to update the position of the custom status bar field. Default implementation does nothing.
project | The project whose status bar has been resized. The reference is non constant, as the field is likely implemented as a client site. |
Reimplemented from StatusBarFieldItem.
Definition at line 60 of file CloudSyncStatusField.cpp.
References audacity::cloud::audiocom::sync::CloudSyncStatusField::Get(), ProjectWindow::Get(), ProjectStatusFieldsRegistry::GetFieldIndex(), name, audacity::cloud::audiocom::sync::CloudSyncStatusField::OnSize(), and project.
|
inlineoverridevirtual |
Sets the current text of the field.
Implements StatusBarFieldItem.
Definition at line 74 of file CloudSyncStatusField.cpp.