Gnm.Dao¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class Gnm.Dao(*args, **kwargs)¶
- Bases:
- Abstract:
No
- classmethod adjust(dao, cols, rows)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –cols (
int
) –rows (
int
) –
shrinks the dao to the given cols/rows (or enlarges it if dao was a singleton)
- classmethod append_date(buf)¶
- Parameters:
buf (
GLib.String
) –
- classmethod autofit_columns(dao)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –
fits all columns to their content
- classmethod autofit_rows(dao)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –
- classmethod autofit_these_columns(dao, from_col, to_col)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –from_col (
int
) –to_col (
int
) –
Fits the specified columns to their content
- classmethod autofit_these_rows(dao, from_row, to_row)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –from_row (
int
) –to_row (
int
) –
- classmethod cell_is_visible(dao, col, row)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col (
int
) –row (
int
) –
- Return type:
- classmethod command_descriptor(dao, format, result)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –format (
str
) –
- Return type:
Uses format to provide a string to be used as command descriptor for undo/redo
- classmethod find_name(sheet, col, row)¶
- classmethod format_output(dao, cmd)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –cmd (
str
) –
- Return type:
Formats the output range according to the settings
- classmethod free(dao)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –
- classmethod get_cellref(dao, x, y)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –x (
int
) –y (
int
) –
- Return type:
- classmethod get_colrow_state_list(dao, is_cols)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –
- Return type:
[
object
]
- classmethod get_rangeref(dao, ax, ay, bx, by)¶
- classmethod go_data_vector(dao, ax, ay, bx, by)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –ax (
int
) –ay (
int
) –bx (
int
) –by (
int
) –
- Return type:
- classmethod new(wbcg, inplace_str)¶
- Parameters:
wbcg (
Gnm.WBCGtk
) –inplace_str (
str
) –
- Return type:
- classmethod prepare_output(wbc, dao, name)¶
- Parameters:
wbc (
Gnm.WorkbookControl
) –dao (
Gnm.data_analysis_output_t
) –name (
str
) –
prepares the output by creating a new sheet or
GOffice.workbook
as appropriate
- classmethod put_formulas(dao)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –- Return type:
- classmethod redraw_respan(dao)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –
- classmethod set_align(dao, col1, row1, col2, row2, align_h, align_v)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col1 (
int
) –row1 (
int
) –col2 (
int
) –row2 (
int
) –align_h (
Gnm.HAlign
) –align_v (
Gnm.VAlign
) –
set the given horizontal and vertical alignment to a cell range
- classmethod set_bold(dao, col1, row1, col2, row2)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col1 (
int
) –row1 (
int
) –col2 (
int
) –row2 (
int
) –
sets the given cell range to bold
- classmethod set_border(dao, col1, row1, col2, row2, elem, border, color, orientation)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col1 (
int
) –row1 (
int
) –col2 (
int
) –row2 (
int
) –elem (
Gnm.StyleElement
) –border (
Gnm.StyleBorderType
) –color (
Gnm.Color
) –orientation (
Gnm.StyleBorderOrientation
) –
- classmethod set_cell(dao, col, row, text)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col (
int
) –row (
int
) –text (
str
) –
set cell to a string
- classmethod set_cell_comment(dao, col, row, comment)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col (
int
) –row (
int
) –comment (
str
) –
set a cell
Gnm.comment
- classmethod set_cell_float(dao, col, row, v)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col (
int
) –row (
int
) –v (
float
) –
- classmethod set_cell_float_na(dao, col, row, v, is_valid)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col (
int
) –row (
int
) –v (
float
) –is_valid (
bool
) –
set cell to a gnm_float or NA as appropriate
- classmethod set_cell_int(dao, col, row, v)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col (
int
) –row (
int
) –v (
int
) –
- classmethod set_cell_na(dao, col, row)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col (
int
) –row (
int
) –
set cell to NA
- classmethod set_cell_value(dao, col, row, v)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col (
int
) –row (
int
) –v (
Gnm.Value
) –
set cell to a
GOffice.value
Note: the rows/cols specification for all dao_set_cell_… commands are relative to the location of the output
- classmethod set_colors(dao, col1, row1, col2, row2, fore, back)¶
- Parameters:
set the given cell range to given background and text colors
- classmethod set_colrow_state_list(dao, is_cols, list)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –list ([
object
]) –
- classmethod set_date(dao, col1, row1, col2, row2)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col1 (
int
) –row1 (
int
) –col2 (
int
) –row2 (
int
) –
set the given cell range to date format
- classmethod set_format(dao, col1, row1, col2, row2, format)¶
- Parameters:
set the given cell range to given format
- classmethod set_italic(dao, col1, row1, col2, row2)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col1 (
int
) –row1 (
int
) –col2 (
int
) –row2 (
int
) –
sets the given cell range to italic
- classmethod set_merge(dao, col1, row1, col2, row2)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col1 (
int
) –row1 (
int
) –col2 (
int
) –row2 (
int
) –
- classmethod set_omit_so(dao, omit)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –omit (
bool
) –
- classmethod set_percent(dao, col1, row1, col2, row2)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col1 (
int
) –row1 (
int
) –col2 (
int
) –row2 (
int
) –
set the given cell range to percent format
- classmethod set_sheet_object(dao, col, row, so)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –col (
int
) –row (
int
) –so (
Gnm.SheetObject
) –
- classmethod surrender_so(dao)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –- Return type:
- classmethod write_header(dao, toolname, title, sheet)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –toolname (
str
) – name of the tool, like Solver or Risk simulationtitle (
str
) –sheet (
Gnm.Sheet
) –
Writes the titles of a report.
- focus_output_range()¶
- get_data(dao)¶
- Parameters:
dao (
Gnm.data_analysis_output_t
) –- Return type:
Signal Details¶
- Gnm.Dao.signals.activate(dao)¶