21 #ifndef __ANTARES_APPLICATION_WINDOWS_NOTES_H__
22 #define __ANTARES_APPLICATION_WINDOWS_NOTES_H__
24 #include <ui/common/component/panel.h>
25 #include <wx/richtext/richtextctrl.h>
26 #include <wx/richtext/richtextstyles.h>
28 namespace Antares::Window
38 mnIDUserNotes = wxID_HIGHEST + 1,
52 Notes(wxWindow* parent, uint margin = 18);
80 void onUnderline(
void*);
82 void onAlignLeft(
void*);
83 void onAlignRight(
void*);
84 void onAlignCenter(
void*);
86 void onListBullet(
void*);
87 void onListNumbered(
void*);
89 void onIndentIncrease(
void*);
90 void onIndentDecrease(
void*);
94 void onUserNotesCharacter(wxRichTextEvent& evt);
95 void onUserNotesStyleChanged(wxRichTextEvent& evt);
97 void onNotesModified(
Notes* sender);
101 void onStudyClosed();
110 bool initializeTemporaryFile();
114 wxRichTextCtrl* pRichEdit;
115 wxRichTextStyleSheet* pStyleSheet;
128 DECLARE_EVENT_TABLE()
Panel implementation.
Definition: panel.h:34
Save As Dialog
Definition: notes.h:34
void saveToStudy()
Save the comments to the study.
Definition: notes.cpp:408
Notes(wxWindow *parent, uint margin=18)
Constructor with a parent window and a study.
Definition: notes.cpp:58
static Yuni::Event< void(Notes *sender)> OnChanged
Event triggered when the user notes are changed.
Definition: notes.h:44
virtual ~Notes()
Destructor.
Definition: notes.cpp:164
void connectToNotification()
Connect to the notification of user notes updates.
Definition: notes.cpp:433
void loadFromStudy()
Load the comments from the study.
Definition: notes.cpp:444
void disconnectFromNotification()
Disconnect from the notifications of the user notes updates.
Definition: notes.cpp:439