Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
cadabra::CodeInput::exp_input_tv Class Reference

Description

The actual text widget used by CodeInput.

#include <CodeInput.hh>

Inheritance diagram for cadabra::CodeInput::exp_input_tv:

Public Member Functions

 exp_input_tv (DTree::iterator, Glib::RefPtr< Gtk::TextBuffer >, double scale, Glib::RefPtr< Gtk::Adjustment >)
 
virtual bool on_key_press_event (GdkEventKey *) override
 
virtual bool on_draw (const Cairo::RefPtr< Cairo::Context > &) override
 
virtual bool on_focus_in_event (GdkEventFocus *) override
 
virtual bool on_focus_out_event (GdkEventFocus *) override
 
virtual void on_show () override
 
virtual Gtk::SizeRequestMode get_request_mode_vfunc () const override
 
virtual void get_preferred_width_for_height_vfunc (int height, int &minimum_width, int &natural_width) const override
 
virtual bool on_motion_notify_event (GdkEventMotion *event) override
 
virtual void on_size_allocate (Gtk::Allocation &allocation) override
 
void shift_enter_pressed ()
 
void on_textbuf_change ()
 

Public Attributes

sigc::signal1< bool, DTree::iterator > content_execute
 
sigc::signal1< bool, DTree::iterator > content_changed
 
sigc::signal3< bool, std::string, int, DTree::iterator > content_insert
 
sigc::signal3< bool, int, int, DTree::iterator > content_erase
 
sigc::signal1< bool, DTree::iterator > cell_got_focus
 
sigc::signal2< bool, DTree::iterator, intcomplete_request
 
friend CodeInput
 
int window_width = 100
 

Private Attributes

double scale_
 
DTree::iterator datacell
 
Glib::RefPtr< Gtk::Adjustment > vadjustment
 
double previous_value = -99.0
 

Constructor & Destructor Documentation

◆ exp_input_tv()

CodeInput::exp_input_tv::exp_input_tv ( DTree::iterator  it,
Glib::RefPtr< Gtk::TextBuffer >  tb,
double  scale,
Glib::RefPtr< Gtk::Adjustment >  vadjustment_ 
)

Member Function Documentation

◆ get_preferred_width_for_height_vfunc()

void CodeInput::exp_input_tv::get_preferred_width_for_height_vfunc ( int  height,
int minimum_width,
int natural_width 
) const
overridevirtual

◆ get_request_mode_vfunc()

Gtk::SizeRequestMode CodeInput::exp_input_tv::get_request_mode_vfunc ( ) const
overridevirtual

◆ on_draw()

bool CodeInput::exp_input_tv::on_draw ( const Cairo::RefPtr< Cairo::Context > &  cr)
overridevirtual

◆ on_focus_in_event()

bool CodeInput::exp_input_tv::on_focus_in_event ( GdkEventFocus event)
overridevirtual

◆ on_focus_out_event()

bool CodeInput::exp_input_tv::on_focus_out_event ( GdkEventFocus event)
overridevirtual

◆ on_key_press_event()

bool CodeInput::exp_input_tv::on_key_press_event ( GdkEventKey event)
overridevirtual

◆ on_motion_notify_event()

bool CodeInput::exp_input_tv::on_motion_notify_event ( GdkEventMotion event)
overridevirtual

◆ on_show()

void CodeInput::exp_input_tv::on_show ( )
overridevirtual

◆ on_size_allocate()

void CodeInput::exp_input_tv::on_size_allocate ( Gtk::Allocation &  allocation)
overridevirtual

◆ on_textbuf_change()

void CodeInput::exp_input_tv::on_textbuf_change ( )

◆ shift_enter_pressed()

void CodeInput::exp_input_tv::shift_enter_pressed ( )

Member Data Documentation

◆ cell_got_focus

sigc::signal1<bool, DTree::iterator> cadabra::CodeInput::exp_input_tv::cell_got_focus

◆ CodeInput

friend cadabra::CodeInput::exp_input_tv::CodeInput

◆ complete_request

sigc::signal2<bool, DTree::iterator, int> cadabra::CodeInput::exp_input_tv::complete_request

◆ content_changed

sigc::signal1<bool, DTree::iterator> cadabra::CodeInput::exp_input_tv::content_changed

◆ content_erase

sigc::signal3<bool, int, int, DTree::iterator> cadabra::CodeInput::exp_input_tv::content_erase

◆ content_execute

sigc::signal1<bool, DTree::iterator> cadabra::CodeInput::exp_input_tv::content_execute

◆ content_insert

sigc::signal3<bool, std::string, int, DTree::iterator> cadabra::CodeInput::exp_input_tv::content_insert

◆ datacell

DTree::iterator cadabra::CodeInput::exp_input_tv::datacell
private

◆ previous_value

double cadabra::CodeInput::exp_input_tv::previous_value = -99.0
private

◆ scale_

double cadabra::CodeInput::exp_input_tv::scale_
private

◆ vadjustment

Glib::RefPtr<Gtk::Adjustment> cadabra::CodeInput::exp_input_tv::vadjustment
private

◆ window_width

int cadabra::CodeInput::exp_input_tv::window_width = 100

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