Canola
0.8.D001
|
#include <gnome.h>
The calculator_gnome class is used to represent the interface to a general state of the 1614p emulation, presented via GNOME widgets.
calculator_gnome::~calculator_gnome | ( | ) | [virtual] |
calculator_gnome::calculator_gnome | ( | ) | [private] |
calculator_gnome::calculator_gnome | ( | const calculator_gnome & | ) | [private] |
The copy constructor. Do not use.
void calculator_gnome::clock_tick_start_running | ( | void | ) | [private, virtual] |
The clock_tick_start_running method is called by the calculator to inform the derived class that it should kick off a clock tick idle handler. This will happen when opcode_extended_start is seen, for example. Derived classes should not assume when clocks stop and start, instend they will be explicitly informed via this method.
Implements calculator.
calculator::pointer calculator_gnome::create | ( | void | ) | [static] |
void calculator_gnome::derived_feed | ( | void | ) | [private, virtual] |
The derived_feed method is used to implement the FD opcode, in the cases where it is valid.
Implements calculator.
void calculator_gnome::derived_off | ( | void | ) | [private, virtual] |
The derived_off method is used to implement the OFF key.
Implements calculator.
void calculator_gnome::derived_print | ( | const display & | value | ) | [private, virtual] |
The derived_print method is used to implement the PRINT opcode, in the cases where it is valid.
value | The value to be printed. |
Implements calculator.
void calculator_gnome::derived_update_display | ( | const display & | value | ) | [private, virtual] |
The derived_update_display method is used when interpreting opcodes to indicate that the display needs to be updated to track the calculator's internal state.
value | The value to be displayed by the calculator display. |
Implements calculator.
bool calculator_gnome::do_key_press_event | ( | GdkEventKey * | event | ) | [private] |
bool calculator_gnome::do_key_release_event | ( | GdkEventKey * | event | ) | [private] |
The do_key_release_event method is used to examine key press events, to see if any of them correspond to a key on the calculator's keyboard, and simulate the button release.
void calculator_gnome::load_preferences_file | ( | void | ) | [private] |
void calculator_gnome::on_am1_down | ( | void | ) | [private] |
void calculator_gnome::on_am1_up | ( | void | ) | [private] |
void calculator_gnome::on_c | ( | void | ) | [private] |
void calculator_gnome::on_chg_sign | ( | void | ) | [private] |
void calculator_gnome::on_clear_indicator | ( | void | ) | [private] |
bool calculator_gnome::on_clock_tick | ( | void | ) | [private] |
The on_clock_tick method is used to handle clock tick events delivered by the clock_tick_timer instance variable.
void calculator_gnome::on_cm1 | ( | void | ) | [private] |
void calculator_gnome::on_cm2 | ( | void | ) | [private] |
void calculator_gnome::on_cm3_tilde | ( | void | ) | [private] |
void calculator_gnome::on_decimal_point_selector_dial_changed | ( | void | ) | [private] |
The on_decimal_point_selector_dial_changed method is used to handle callbacks from the decimal_point_selector_dial widget when the user changes its value.
void calculator_gnome::on_display_print | ( | void | ) | [private] |
void calculator_gnome::on_div | ( | void | ) | [private] |
void calculator_gnome::on_dot | ( | void | ) | [private] |
void calculator_gnome::on_edit_preferences | ( | void | ) | [private] |
void calculator_gnome::on_ej | ( | void | ) | [private] |
void calculator_gnome::on_ent | ( | void | ) | [private] |
void calculator_gnome::on_error_v | ( | const char * | fmt, |
va_list | ap | ||
) | [virtual] |
Implements calculator.
void calculator_gnome::on_fj | ( | void | ) | [private] |
void calculator_gnome::on_k_down | ( | void | ) | [private] |
void calculator_gnome::on_k_up | ( | void | ) | [private] |
void calculator_gnome::on_load_program | ( | void | ) | [private] |
The on_load_program method is used to implement the File/Program Card System menu item, which is bascically a Load File operation. It invokes a Gnome Open File dialog box, and parses the file, sending the output through the on_opcode method.
Because the on_opcode method is used, this means that the original calculator is emulated, because it was possible to the the Program Card System to automate key strokes in OPE mode as well.
void calculator_gnome::on_m1 | ( | void | ) | [private] |
void calculator_gnome::on_m2 | ( | void | ) | [private] |
void calculator_gnome::on_m3_tilde | ( | void | ) | [private] |
void calculator_gnome::on_minus_equals | ( | void | ) | [private] |
void calculator_gnome::on_mj | ( | void | ) | [private] |
void calculator_gnome::on_mm1 | ( | void | ) | [private] |
void calculator_gnome::on_mm2 | ( | void | ) | [private] |
void calculator_gnome::on_mul | ( | void | ) | [private] |
void calculator_gnome::on_n0 | ( | void | ) | [private] |
void calculator_gnome::on_n1 | ( | void | ) | [private] |
void calculator_gnome::on_n2 | ( | void | ) | [private] |
void calculator_gnome::on_n3 | ( | void | ) | [private] |
void calculator_gnome::on_n4 | ( | void | ) | [private] |
void calculator_gnome::on_n5 | ( | void | ) | [private] |
void calculator_gnome::on_n6 | ( | void | ) | [private] |
void calculator_gnome::on_n7 | ( | void | ) | [private] |
void calculator_gnome::on_n8 | ( | void | ) | [private] |
void calculator_gnome::on_n9 | ( | void | ) | [private] |
void calculator_gnome::on_opcode | ( | opcode_t | op | ) | [private] |
The on_opcode method is used to pass an opcode to calculator::on_opcode with a NULL location.
op | The opcode of interest, usually corresponding to one of the kayboard keys. |
void calculator_gnome::on_paper_feed | ( | void | ) | [private] |
void calculator_gnome::on_plus_equals | ( | void | ) | [private] |
bool calculator_gnome::on_printer_finished | ( | void | ) | [private] |
void calculator_gnome::on_printer_power | ( | void | ) | [private] |
void calculator_gnome::on_program_mode_switch_changed | ( | void | ) | [private] |
The on_program_mode_switch_changed method is used to handle callbacks from the program_mode_switch widget when the user changes its value.
void calculator_gnome::on_program_print | ( | void | ) | [private] |
void calculator_gnome::on_program_selector_switch_changed | ( | void | ) | [private] |
The on_program_selector_switch_changed method is used to handle callbacks from the program_selector_switch widget when the user changes its value.
void calculator_gnome::on_quit | ( | void | ) | [private] |
void calculator_gnome::on_right | ( | void | ) | [private] |
void calculator_gnome::on_rm1 | ( | void | ) | [private] |
void calculator_gnome::on_rm2 | ( | void | ) | [private] |
void calculator_gnome::on_rm3_tilde | ( | void | ) | [private] |
void calculator_gnome::on_rounding_switch_changed | ( | void | ) | [private] |
The on_rounding_switch_changed method is used to handle callbacks from the rounding_switch widget when the user changes its value.
void calculator_gnome::on_rv | ( | void | ) | [private] |
void calculator_gnome::on_save_memories_as_program | ( | void | ) | [private] |
void calculator_gnome::on_save_program | ( | void | ) | [private] |
void calculator_gnome::on_sj | ( | void | ) | [private] |
void calculator_gnome::on_sm3_tilde | ( | void | ) | [private] |
void calculator_gnome::on_special_key_symbol | ( | void | ) | [private] |
void calculator_gnome::on_sqrt | ( | void | ) | [private] |
void calculator_gnome::on_start | ( | void | ) | [private] |
void calculator_gnome::on_uj | ( | void | ) | [private] |
calculator_gnome& calculator_gnome::operator= | ( | const calculator_gnome & | ) | [private] |
The assignment operator. Do not use.
void calculator_gnome::printer_timer_start_running | ( | void | ) | [private, virtual] |
The printer_timer_start_running method is called by the calculator to inform the derived class that it should kick off a printer delay 420ms timer. This will happen when opcode_print or opcode_feed opcode is seen. Derived classes should not assume when printer delays stop and start, instend they will be explicitly informed via this method.
Implements calculator.
void calculator_gnome::program_mode_set_from_dialog | ( | int | id | ) |
void calculator_gnome::run | ( | void | ) | [virtual] |
The run method is used to run the calculator, from interactive input, via the GUI, or equivalent.
Implements calculator.
void calculator_gnome::save_preferences_file | ( | void | ) | [private] |
void calculator_gnome::user_changed_debugger_address | ( | int | new_address | ) | [private] |
bool calculator_gnome::animate_card_reader [private] |
retro_button calculator_gnome::button_am1 [private] |
Instruction Manual, p. 9
"[AM1] Accumulative Memory 1 Key
"For automatic accumulation. Used in sums and differences of products and quotients. By depressing the [+=] key or [-=] key, the displayed data is added to or subtracted from Memory 1. This is a lock key for Memory 1. (Not used in programming.)"
retro_button calculator_gnome::button_c [private] |
retro_button calculator_gnome::button_cm1 [private] |
retro_button calculator_gnome::button_cm2 [private] |
retro_button calculator_gnome::button_cm3 [private] |
retro_button calculator_gnome::button_div [private] |
retro_button calculator_gnome::button_dot [private] |
retro_button calculator_gnome::button_ej [private] |
retro_button calculator_gnome::button_ent [private] |
retro_button calculator_gnome::button_fj [private] |
retro_button calculator_gnome::button_k [private] |
The button_k is used to remember the state (including appearance) of the widget implementing the [K] (Constant) button of the emulated calculator.
Instruction Manual, p. 10
"This key is for constant multiplication and division. When it is depressed, it locks and function state is attained.
"Internal calculation is performed in the normal procedure. Thereafter constant multiplication and division can be made by operating the numeric and [+=] keys.
"In the case of multiplication, the multiplicant is a constant, and in the case of division, the divisor is a constant.
"This key is also used in involutions. The "n"th power of a figure is obtain by depressing the [+=] key (n-1) times. Thus, a [x] [+=] [+=] [+=] [+=] gives a5.
retro_button calculator_gnome::button_m1 [private] |
retro_button calculator_gnome::button_m2 [private] |
retro_button calculator_gnome::button_m3 [private] |
retro_button calculator_gnome::button_mj [private] |
retro_button calculator_gnome::button_mm1 [private] |
retro_button calculator_gnome::button_mm2 [private] |
retro_button calculator_gnome::button_mul [private] |
retro_button calculator_gnome::button_n0 [private] |
retro_button calculator_gnome::button_n1 [private] |
retro_button calculator_gnome::button_n2 [private] |
retro_button calculator_gnome::button_n3 [private] |
retro_button calculator_gnome::button_n4 [private] |
retro_button calculator_gnome::button_n5 [private] |
retro_button calculator_gnome::button_n6 [private] |
retro_button calculator_gnome::button_n7 [private] |
retro_button calculator_gnome::button_n8 [private] |
retro_button calculator_gnome::button_n9 [private] |
retro_button calculator_gnome::button_right [private] |
retro_button calculator_gnome::button_rm1 [private] |
retro_button calculator_gnome::button_rm2 [private] |
retro_button calculator_gnome::button_rm3 [private] |
retro_button calculator_gnome::button_rv [private] |
retro_button calculator_gnome::button_sj [private] |
retro_button calculator_gnome::button_sm3 [private] |
retro_button calculator_gnome::button_sqrt [private] |
retro_button calculator_gnome::button_start [private] |
retro_button calculator_gnome::button_uj [private] |
Gtk::VBox calculator_gnome::calculator_layout [private] |
sigc::connection calculator_gnome::clock_tick_timer [private] |
Gtk::HBox calculator_gnome::control_group [private] |
Gtk::Label calculator_gnome::debugger_label [private] |
Gtk::ComboBox calculator_gnome::decimal_point_selector_dial [private] |
Glib::RefPtr<Gtk::ListStore> calculator_gnome::decimal_point_selector_dial_tree_model [private] |
The decimal_point_selector_dial_tree_model is used to remember the tree model with the actual mode choices in it, that the decimal_point_selector_dial combo box displays.
nixie_tubes calculator_gnome::display_widget [private] |
Gtk::Alignment calculator_gnome::display_widget_aligner [private] |
Gtk::Table calculator_gnome::keyboard [private] |
Gtk::Widget* calculator_gnome::menu_bar [private] |
Gtk::VBox calculator_gnome::menu_layout [private] |
Glib::RefPtr<Gtk::UIManager> calculator_gnome::menu_ui [private] |
Gtk::HBox calculator_gnome::overall_layout [private] |
slider_power calculator_gnome::power_switch [private] |
Gtk::HBox calculator_gnome::printer_button_group [private] |
Gtk::Button calculator_gnome::printer_display_print [private] |
Gtk::VBox calculator_gnome::printer_group [private] |
Gtk::Label calculator_gnome::printer_label [private] |
Gtk::ToggleButton calculator_gnome::printer_manual_calculation [private] |
Gtk::TextView calculator_gnome::printer_paper [private] |
Gtk::Button calculator_gnome::printer_paper_feed [private] |
Gtk::ScrolledWindow calculator_gnome::printer_paper_scroller [private] |
Gtk::Button calculator_gnome::printer_power [private] |
Gtk::Button calculator_gnome::printer_program_print [private] |
sigc::connection calculator_gnome::printer_timer [private] |
Gtk::Notebook calculator_gnome::right_hand_panel [private] |