![]() |
Cadabra
Computer algebra system for field theory problems
|
TeXView is a widget which knows how to turn a string into a LaTeX-rendered image and display that.
See gtkmm custom widget documentation at: https://developer-old.gnome.org/gtkmm-tutorial/3.24/sec-custom-widgets.html.en
#include <TeXView.hh>
Classes | |
| class | TeXArea |
Public Member Functions | |
| TeXView (TeXEngine &, DTree::iterator, bool use_microtex_, int hmargin=25) | |
| virtual | ~TeXView () |
| void | set_use_microtex (bool) |
| void | set_is_error (bool) |
| void | update_image () |
| Update the TeX image. | |
| void | dim (bool) |
| Dim the output to indicate that the result is no longer guaranteed to be correlated with the input cell from which it was derived. | |
Public Attributes | |
| std::shared_ptr< TeXEngine::TeXRequest > | content |
| sigc::signal1< bool, DTree::iterator > | show_hide_requested |
| DTree::iterator | datacell |
| Gtk::Revealer | rbox |
| Gtk::Box | vbox |
| Gtk::Box | hbox |
| int | window_width =0 |
| TeXArea | image |
| sigc::signal1< bool, std::string > | tex_error |
| sigc::signal0< bool > | signal_on_copy_as_latex |
Protected Member Functions | |
| virtual bool | on_button_release_event (GdkEventButton *) override |
| virtual bool | on_button_press_event (GdkEventButton *event) override |
| virtual void | on_show () override |
| void | convert () |
| void | on_copy_as_latex () const |
Private Member Functions | |
| float | text_size () const |
Private Attributes | |
| TeXEngine & | engine |
| bool | use_microtex |
| bool | is_error |
| Gtk::Menu | context_menu |
| Gtk::MenuItem | item_copy_as_latex |
| TeXView::TeXView | ( | TeXEngine & | eng, |
| DTree::iterator | it, | ||
| bool | use_microtex_, | ||
| int | hmargin = 25 ) |
|
virtual |
|
protected |
| void TeXView::dim | ( | bool | d | ) |
Dim the output to indicate that the result is no longer guaranteed to be correlated with the input cell from which it was derived.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protected |
|
overrideprotectedvirtual |
| void TeXView::set_is_error | ( | bool | is_error_ | ) |
| void TeXView::set_use_microtex | ( | bool | use_microtex_ | ) |
|
private |
| void TeXView::update_image | ( | ) |
Update the TeX image.
| std::shared_ptr<TeXEngine::TeXRequest> cadabra::TeXView::content |
|
private |
| DTree::iterator cadabra::TeXView::datacell |
|
private |
| Gtk::Box cadabra::TeXView::hbox |
| TeXArea cadabra::TeXView::image |
|
private |
|
private |
| Gtk::Revealer cadabra::TeXView::rbox |
| sigc::signal1<bool, DTree::iterator> cadabra::TeXView::show_hide_requested |
| sigc::signal0<bool> cadabra::TeXView::signal_on_copy_as_latex |
| sigc::signal1<bool, std::string> cadabra::TeXView::tex_error |
|
private |
| Gtk::Box cadabra::TeXView::vbox |
| int cadabra::TeXView::window_width =0 |