You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ovdCCommentEditorDialog.h 909B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "ovd_base.h"
  3. namespace OpenViBE {
  4. namespace Designer {
  5. class CCommentEditorDialog final
  6. {
  7. public:
  8. CCommentEditorDialog(const Kernel::IKernelContext& ctx, Kernel::IComment& comment, const char* guiFilename)
  9. : m_kernelCtx(ctx), m_comment(comment), m_guiFilename(guiFilename) { }
  10. ~CCommentEditorDialog() = default;
  11. bool run();
  12. // Callback for text formatting
  13. void applyTagCB(const char* in, const char* out) const;
  14. // help formatting pango
  15. void infoCB() const { gtk_widget_show(m_infoDialog); }
  16. protected:
  17. const Kernel::IKernelContext& m_kernelCtx;
  18. Kernel::IComment& m_comment;
  19. CString m_guiFilename;
  20. GtkBuilder* m_interface = nullptr;
  21. GtkWidget* m_dialog = nullptr;
  22. GtkWidget* m_infoDialog = nullptr;
  23. GtkWidget* m_desc = nullptr;
  24. GtkTextBuffer* m_buffer = nullptr;
  25. CCommentEditorDialog() = delete;
  26. };
  27. } // namespace Designer
  28. } // namespace OpenViBE