Cadabra
Computer algebra system for field theory problems
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | List of all members
cadabra::TeXView Class Reference

Description

TeXView is a widget which knows how to turn a string into a LaTeX-rendered image and display that.

#include <TeXView.hh>

Inheritance diagram for cadabra::TeXView:

Classes

class  TeXArea
 

Public Member Functions

 TeXView (TeXEngine &, DTree::iterator, int hmargin=25)
 
virtual ~TeXView ()
 
void update_image ()
 Update the TeX image. More...
 
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. More...
 

Public Attributes

std::shared_ptr< TeXEngine::TeXRequestcontent
 
sigc::signal1< bool, DTree::iterator > show_hide_requested
 
DTree::iterator datacell
 
Gtk::VBox vbox
 
Gtk::HBox hbox
 
TeXArea image
 
sigc::signal1< bool, std::string > tex_error
 

Protected Member Functions

virtual bool on_button_release_event (GdkEventButton *) override
 
virtual void on_show () override
 
void convert ()
 

Private Attributes

TeXEngineengine
 

Constructor & Destructor Documentation

◆ TeXView()

TeXView::TeXView ( TeXEngine eng,
DTree::iterator  it,
int  hmargin = 25 
)

◆ ~TeXView()

TeXView::~TeXView ( )
virtual

Member Function Documentation

◆ convert()

void TeXView::convert ( )
protected

◆ dim()

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.

◆ on_button_release_event()

bool TeXView::on_button_release_event ( GdkEventButton *  )
overrideprotectedvirtual

◆ on_show()

void TeXView::on_show ( )
overrideprotectedvirtual

◆ update_image()

void TeXView::update_image ( )

Update the TeX image.

Member Data Documentation

◆ content

std::shared_ptr<TeXEngine::TeXRequest> cadabra::TeXView::content

◆ datacell

DTree::iterator cadabra::TeXView::datacell

◆ engine

TeXEngine& cadabra::TeXView::engine
private

◆ hbox

Gtk::HBox cadabra::TeXView::hbox

◆ image

TeXArea cadabra::TeXView::image

◆ show_hide_requested

sigc::signal1<bool, DTree::iterator> cadabra::TeXView::show_hide_requested

◆ tex_error

sigc::signal1<bool, std::string> cadabra::TeXView::tex_error

◆ vbox

Gtk::VBox cadabra::TeXView::vbox

The documentation for this class was generated from the following files: