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>
40 mnIDUserNotes = wxID_HIGHEST + 1,
54 Notes(wxWindow* parent, uint margin = 18);
82 void onUnderline(
void*);
84 void onAlignLeft(
void*);
85 void onAlignRight(
void*);
86 void onAlignCenter(
void*);
88 void onListBullet(
void*);
89 void onListNumbered(
void*);
91 void onIndentIncrease(
void*);
92 void onIndentDecrease(
void*);
96 void onUserNotesCharacter(wxRichTextEvent& evt);
97 void onUserNotesStyleChanged(wxRichTextEvent& evt);
99 void onNotesModified(
Notes* sender);
101 void notifyChanges();
103 void onStudyClosed();
112 bool initializeTemporaryFile();
116 wxRichTextCtrl* pRichEdit;
117 wxRichTextStyleSheet* pStyleSheet;
130 DECLARE_EVENT_TABLE()
Panel implementation.
Definition panel.h:36
Save As Dialog
Definition notes.h:36
void saveToStudy()
Save the comments to the study.
Definition notes.cpp:357
Notes(wxWindow *parent, uint margin=18)
Constructor with a parent window and a study.
Definition notes.cpp:60
static Yuni::Event< void(Notes *sender)> OnChanged
Event triggered when the user notes are changed.
Definition notes.h:46
virtual ~Notes()
Destructor.
Definition notes.cpp:145
void connectToNotification()
Connect to the notification of user notes updates.
Definition notes.cpp:380
void loadFromStudy()
Load the comments from the study.
Definition notes.cpp:391
void disconnectFromNotification()
Disconnect from the notifications of the user notes updates.
Definition notes.cpp:386