2016-01-04 03:56:42 -08:00
|
|
|
#pragma once
|
2010-12-18 23:58:18 -08:00
|
|
|
|
|
|
|
#include "mooedit/mooeditview.h"
|
2016-01-04 03:56:42 -08:00
|
|
|
#include "mooedit/mooedittypes.h"
|
2010-12-18 23:58:18 -08:00
|
|
|
|
2016-01-04 03:56:42 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
template<>
|
2016-01-31 00:03:05 -08:00
|
|
|
class moo::gobj_ref<MooEditView> : public virtual moo::gobj_ref_parent<MooEditView>
|
2016-01-04 03:56:42 -08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
MOO_DEFINE_GOBJREF_METHODS(MooEditView);
|
|
|
|
|
|
|
|
void _unset_doc ();
|
|
|
|
void _set_tab (MooEditTab* tab);
|
|
|
|
|
|
|
|
GtkTextMark* _get_fake_cursor_mark ();
|
|
|
|
|
|
|
|
void _apply_config ();
|
2010-12-18 23:58:18 -08:00
|
|
|
|
2016-01-17 00:35:07 -08:00
|
|
|
static gobj_ptr<MooEditView> _create (Edit doc);
|
|
|
|
|
2016-01-04 03:56:42 -08:00
|
|
|
MooEditViewPrivate& get_priv() { return *gobj()->priv; }
|
|
|
|
const MooEditViewPrivate& get_priv() const { return *gobj()->priv; }
|
|
|
|
};
|
2011-01-17 03:01:11 -08:00
|
|
|
|
2016-01-04 03:56:42 -08:00
|
|
|
#endif // __cplusplus
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
2011-01-18 22:01:18 -08:00
|
|
|
|
2011-01-17 03:01:11 -08:00
|
|
|
void _moo_edit_view_apply_prefs (MooEditView *view);
|
2010-12-18 23:58:18 -08:00
|
|
|
|
|
|
|
void _moo_edit_view_ui_set_line_wrap (MooEditView *view,
|
|
|
|
gboolean enabled);
|
|
|
|
void _moo_edit_view_ui_set_show_line_numbers (MooEditView *view,
|
|
|
|
gboolean show);
|
|
|
|
|
|
|
|
void _moo_edit_view_do_popup (MooEditView *view,
|
|
|
|
GdkEventButton *event);
|
|
|
|
|
|
|
|
G_END_DECLS
|