20 #ifndef PAWS_MUSIC_WINDOW_H 21 #define PAWS_MUSIC_WINDOW_H 106 void GetMeter(
int &beats,
int &beatType);
149 Chord* selectedChord;
159 int selectedDurButton;
160 int selectedAlterButton;
162 uint32_t currentItemID;
210 static void OnSheetLineCallback(
void*
object,
SheetLine* sheetLine);
225 bool LoadXML(csRef<iDocument> sheet);
234 csString ToXML(
bool usePlayedTempo);
254 void UpdateScrollBar();
262 void UpdateLines(
SheetLine* line,
bool forceAll);
267 void DisplaySelectedMeasure();
281 void DeleteSelectedChord();
286 void DeleteSelectedMeasure();
291 void InsertMeasure();
298 void SetInsertMode(
bool toggle);
305 void ToggleEditMode(
bool toggle);
325 void ChangeSongTitle();
330 void SwitchDoubleStaff();
335 void ChangeTonality();
355 void ChangeChordDuration();
373 int GetSelectedDuration();
381 void SetDurationButton(
int duration);
388 void SelectDuration(
int buttonID);
396 void SelectAlteration(
int buttonID);
402 void SetToolbarButtons();
418 #endif // PAWS_MUSIC_WINDOW_H virtual void OnStringEntered(const char *name, int param, const char *value)
When the pawsStringPromptWindow is created, a ptr to a class which implements this function is provid...
A measure containing measure elements.
virtual ~pawsMusicWindow()
Destructor.
uint GetDivisions()
Gets the sheet's number of divisions.
void GetMeter(int &beats, int &beatType)
Gets beats and beat type of the song.
A specific MathEnvironment to be used in a MathScript.
CREATE_PAWS_FACTORY(pawsMusicWindow)
Interface implemented by a pawsMeterPromptWindow listener.
The structure of 1 queue entry (pointer to a message)
virtual bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
pawsMusicWindow()
Constructor.
virtual void Hide()
Makes widget invisible and removes focus if widget has current focus.
virtual double CalcFunction(MathEnvironment *env, const char *functionName, const double *params)
This interface implemets a listener to client song events.
virtual void OnMainPlayerSongStop()
This is called when the main player's song is stopped.
virtual void HandleMessage(MsgEntry *message)
virtual void OnMeterEntered(const char *name, csString beats, csString beatType)
This function is called when the user input a meter.
This interface defines the callback used by pawsStringPromptWindow to notify another window of a supp...
virtual bool PostSetup()
This is called after the widget and all of it's children have been created.
A window that shows a musical sheet and allows the player to edit it.
virtual bool OnScroll(int scrollDirection, pawsScrollBar *widget)
Called whenever a window is scrolled.
void OnChordSelection(SheetLine *sheetLine, Measure *measure, Chord *chord, int notePosition, bool before)
Handle a click on a chord.
This class draws a musical staff on the widget and creates notes and chords that it can represent on ...