4 #include <gtkmm/eventbox.h>
6 #include <gtkmm/image.h>
7 #if GTKMM_MINOR_VERSION>=10
8 #include <gtkmm/revealer.h>
12 #include "../common/TeXEngine.hh"
24 std::shared_ptr<TeXEngine::TeXRequest>
content;
29 #if GTKMM_MINOR_VERSION>=10
57 virtual void on_show()
override;
TeXView(TeXEngine &, DTree::iterator, int hmargin=25)
Definition: TeXView.cc:7
sigc::signal1< bool, std::string > tex_error
Definition: TeXView.hh:53
sigc::signal1< bool, DTree::iterator > show_hide_requested
Definition: TeXView.hh:26
virtual bool on_button_release_event(GdkEventButton *) override
Definition: TeXView.cc:85
void dim(bool)
Dim the output to indicate that the result is no longer guaranteed to be correlated with the input ce...
Definition: TeXView.cc:79
TeXView is a widget which knows how to turn a string into a LaTeX-rendered image and display that...
Definition: TeXView.hh:19
std::shared_ptr< TeXEngine::TeXRequest > content
Definition: TeXView.hh:24
DTree::iterator datacell
Definition: TeXView.hh:28
void update_image()
Update the visible image from the pixbuf.
Definition: TeXView.cc:91
TeXEngine & engine
Definition: TeXView.hh:63
TeXEngine is used to convert LaTeX strings into PNG images.
Definition: TeXEngine.hh:26
virtual ~TeXView()
Definition: TeXView.cc:30
Glib::RefPtr< Gdk::Pixbuf > pixbuf
The actual image is stored in the image referenced by pixbuf.
Definition: TeXView.hh:40
Gtk::HBox hbox
Definition: TeXView.hh:33
void convert()
Definition: TeXView.cc:49
Gtk::VBox vbox
Definition: TeXView.hh:32
virtual void on_show() override
Definition: TeXView.cc:35
Gtk::Image image
Definition: TeXView.hh:34