Class: Gnm::ExprEntry
- Inherits:
-
Gtk::Box
- Object
- Gtk::Box
- Gnm::ExprEntry
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#can_rangesel ⇒ Boolean
True if a range selection is meaningful at current position.
- #close_tips ⇒ nil
-
#constant_format ⇒ GOffice::Format
Constant-format.
- #constant_format=(constant_format) ⇒ GOffice::Format
- #disable_tips ⇒ nil
- #editing_canceled ⇒ Boolean
- #enable_tips ⇒ nil
-
#entry ⇒ Gtk::Entry
The associated Gtk::Entry.
-
#find_range ⇒ Boolean
Look at the current selection to see how much of it needs to be changed when selecting a range.
-
#flags ⇒ Integer
Flags.
- #flags=(flags) ⇒ Integer
- #freeze ⇒ nil
-
#get_rangesel(r, sheet) ⇒ Boolean
Get the range selection.
- #global_range_name(sheet) ⇒ String
- #grab_focus(select_all) ⇒ nil
-
#initialize(wbcg, with_icon) ⇒ Gnm::ExprEntry
constructor
Creates a new Gnm::ExprEntry, which is an entry widget with support for range selections.
- #is_blank ⇒ Boolean
- #is_cell_ref(sheet, allow_multiple_cell) ⇒ Boolean
-
#load_from_dep(dep) ⇒ nil
Sets the text of the entry, and removes saved information about earlier range selections.
-
#load_from_expr(texpr, pp) ⇒ nil
Sets the text of the entry, and removes saved information about earlier range selections.
-
#load_from_range(sheet, r) ⇒ Boolean
otherwise.
- #load_from_text(txt) ⇒ nil
-
#parse(pp, perr, start_sel, flags) ⇒ Gnm::ExprTop
Attempts to parse the content of the entry line honouring the flags.
-
#parse_as_list(sheet) ⇒ GLib::SList<Gnm::Value>
or NULL on failure.
-
#parse_as_value(sheet) ⇒ Gnm::Value
Returns a (GnmValue *) of type VALUE_CELLRANGE if the range was successfully parsed or nil on failure.
-
#rangesel_stop(clear_string) ⇒ nil
Perform the appropriate action when a range selection has been completed.
-
#scg ⇒ Gnm::SheetControlGUI
Scg.
- #scg=(scg) ⇒ Gnm::SheetControlGUI
-
#set_flags(flags, mask) ⇒ nil
Changes the flags specified in mask to values given in flags.
-
#signal_update(user_requested) ⇒ nil
Higher level operations know when they are logically complete and can notify GnmExprEntry clients.
-
#text ⇒ String
Text.
- #text=(text) ⇒ String
- #thaw ⇒ nil
-
#update_policy ⇒ Gnm::UpdateType
Update-policy.
- #update_policy=(update_policy) ⇒ Gnm::UpdateType
-
#wbcg ⇒ Gnm::WBCGtk
Wbcg.
- #wbcg=(wbcg) ⇒ Gnm::WBCGtk
- #with_icon=(with_icon) ⇒ Boolean
-
#with_icon? ⇒ Boolean
With-icon.
Constructor Details
#initialize(wbcg, with_icon) ⇒ Gnm::ExprEntry
Creates a new Gnm::ExprEntry, which is an entry widget with support for range selections. The entry is created with default flag settings which are suitable for use in many dialogs, but see #gnm_expr_entry_set_flags.
Instance Method Details
#can_rangesel ⇒ Boolean
Returns true if a range selection is meaningful at current position.
#close_tips ⇒ nil
#constant_format ⇒ GOffice::Format
Returns constant-format.
#constant_format=(constant_format) ⇒ GOffice::Format
#disable_tips ⇒ nil
#editing_canceled ⇒ Boolean
#enable_tips ⇒ nil
#entry ⇒ Gtk::Entry
Returns the associated Gtk::Entry.
#find_range ⇒ Boolean
Look at the current selection to see how much of it needs to be changed when selecting a range.
#flags ⇒ Integer
Returns flags.
#flags=(flags) ⇒ Integer
#freeze ⇒ nil
#get_rangesel(r, sheet) ⇒ Boolean
Get the range selection. GnmRange is copied, Sheet is not. If sheet argument is NULL, the corresponding value is not returned. The resulting range is normalized.
#global_range_name(sheet) ⇒ String
#grab_focus(select_all) ⇒ nil
#is_blank ⇒ Boolean
#is_cell_ref(sheet, allow_multiple_cell) ⇒ Boolean
#load_from_dep(dep) ⇒ nil
Sets the text of the entry, and removes saved information about earlier range selections.
#load_from_expr(texpr, pp) ⇒ nil
Sets the text of the entry, and removes saved information about earlier range selections.
#load_from_range(sheet, r) ⇒ Boolean
otherwise.
Sets the range selection and displays it in the entry text. If the widget already contains a range selection, the new text replaces the old. Otherwise, it is inserted at pos.
#load_from_text(txt) ⇒ nil
#parse(pp, perr, start_sel, flags) ⇒ Gnm::ExprTop
Attempts to parse the content of the entry line honouring the flags.
#parse_as_list(sheet) ⇒ GLib::SList<Gnm::Value>
or NULL on failure.
#parse_as_value(sheet) ⇒ Gnm::Value
Returns a (GnmValue *) of type VALUE_CELLRANGE if the range was successfully parsed or nil on failure.
#rangesel_stop(clear_string) ⇒ nil
Perform the appropriate action when a range selection has been completed.
#scg ⇒ Gnm::SheetControlGUI
Returns scg.
#scg=(scg) ⇒ Gnm::SheetControlGUI
#set_flags(flags, mask) ⇒ nil
Changes the flags specified in mask to values given in flags.
Flags (false by default): %GNM_EE_SINGLE_RANGE Entry will only hold a single range. %GNM_EE_ABS_COL Column reference must be absolute. %GNM_EE_ABS_ROW Row reference must be absolute. %GNM_EE_FULL_COL GnmRange consists of full columns. %GNM_EE_FULL_ROW GnmRange consists of full rows. %GNM_EE_SHEET_OPTIONAL Current sheet name not auto-added.
#signal_update(user_requested) ⇒ nil
Higher level operations know when they are logically complete and can notify GnmExprEntry clients. For example, button-up after a drag selection indicates a logical end to the change and offers a good time to update.
#text ⇒ String
Returns text.
#text=(text) ⇒ String
#thaw ⇒ nil
#update_policy ⇒ Gnm::UpdateType
Returns update-policy.
#update_policy=(update_policy) ⇒ Gnm::UpdateType
#wbcg ⇒ Gnm::WBCGtk
Returns wbcg.
#wbcg=(wbcg) ⇒ Gnm::WBCGtk
#with_icon=(with_icon) ⇒ Boolean
#with_icon? ⇒ Boolean
Returns with-icon.