projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split File Dialog: Convert to PsppireDialogAction
[pspp]
/
src
/
ui
/
gui
/
pspp-sheet-private.h
diff --git
a/src/ui/gui/pspp-sheet-private.h
b/src/ui/gui/pspp-sheet-private.h
index 8a258b2df2d269bfaba8d698ca81d872ec60a6bb..508e78fb0f09a84fa40bb888bb0f86e2f5001d21 100644
(file)
--- a/
src/ui/gui/pspp-sheet-private.h
+++ b/
src/ui/gui/pspp-sheet-private.h
@@
-1,5
+1,5
@@
/* PSPPIRE - a graphical user interface for PSPP.
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011
, 2012, 2013
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-53,13
+53,6
@@
typedef enum
PSPP_SHEET_VIEW_IN_COLUMN_DRAG = 1 << 7
} PsppSheetViewFlags;
PSPP_SHEET_VIEW_IN_COLUMN_DRAG = 1 << 7
} PsppSheetViewFlags;
-typedef enum
-{
- GTK_TREE_SELECT_MODE_TOGGLE = 1 << 0,
- GTK_TREE_SELECT_MODE_EXTEND = 1 << 1
-}
-GtkTreeSelectMode;
-
enum
{
DRAG_COLUMN_WINDOW_STATE_UNSET = 0,
enum
{
DRAG_COLUMN_WINDOW_STATE_UNSET = 0,
@@
-157,6
+150,7
@@
struct _PsppSheetViewPrivate
/* Cell Editing */
PsppSheetViewColumn *edited_column;
/* Cell Editing */
PsppSheetViewColumn *edited_column;
+ gint edited_row;
/* Selection information */
PsppSheetSelection *selection;
/* Selection information */
PsppSheetSelection *selection;
@@
-186,10
+180,6
@@
struct _PsppSheetViewPrivate
/* Non-interactive Header Resizing, expand flag support */
gint prev_width;
/* Non-interactive Header Resizing, expand flag support */
gint prev_width;
- gint last_extra_space;
- gint last_extra_space_per_column;
- gint last_number_of_expand_columns;
-
/* ATK Hack */
PsppSheetDestroyCountFunc destroy_count_func;
gpointer destroy_count_data;
/* ATK Hack */
PsppSheetDestroyCountFunc destroy_count_func;
gpointer destroy_count_data;
@@
-219,6
+209,7
@@
struct _PsppSheetViewPrivate
/* fixed height */
gint fixed_height;
/* fixed height */
gint fixed_height;
+ gboolean fixed_height_set;
/* Scroll-to functionality when unrealized */
GtkTreeRowReference *scroll_to_path;
/* Scroll-to functionality when unrealized */
GtkTreeRowReference *scroll_to_path;
@@
-242,11
+233,16
@@
struct _PsppSheetViewPrivate
/* Grid and tree lines */
PsppSheetViewGridLines grid_lines;
/* Grid and tree lines */
PsppSheetViewGridLines grid_lines;
- GdkGC *grid_line_gc;
+
+ /* Special cells. */
+ PsppSheetViewSpecialCells special_cells;
/* Tooltip support */
gint tooltip_column;
/* Tooltip support */
gint tooltip_column;
+ /* Cached style for button facades in columns. */
+ GtkStyle *button_style;
+
/* Here comes the bitfield */
guint scroll_to_use_align : 1;
/* Here comes the bitfield */
guint scroll_to_use_align : 1;
@@
-259,9
+255,6
@@
struct _PsppSheetViewPrivate
/* for DnD */
guint empty_view_drop : 1;
/* for DnD */
guint empty_view_drop : 1;
- guint ctrl_pressed : 1;
- guint shift_pressed : 1;
-
guint init_hadjust_value : 1;
guint in_top_row_to_dy : 1;
guint init_hadjust_value : 1;
guint in_top_row_to_dy : 1;
@@
-281,8
+274,13
@@
struct _PsppSheetViewPrivate
guint post_validation_flag : 1;
/* Whether our key press handler is to avoid sending an unhandled binding to the search entry */
guint post_validation_flag : 1;
/* Whether our key press handler is to avoid sending an unhandled binding to the search entry */
+
guint search_entry_avoid_unhandled_binding : 1;
guint search_entry_avoid_unhandled_binding : 1;
-};
+ /* GtkScrollablePolicy needs to be checked when
+ * driving the scrollable adjustment values */
+ guint hscroll_policy : 1;
+ guint vscroll_policy : 1;
+ };
#ifdef __GNUC__
#ifdef __GNUC__
@@
-358,7
+356,7
@@
struct _PsppSheetViewPrivate
void _pspp_sheet_selection_internal_select_node (PsppSheetSelection *selection,
int node,
GtkTreePath *path,
void _pspp_sheet_selection_internal_select_node (PsppSheetSelection *selection,
int node,
GtkTreePath *path,
-
GtkTree
SelectMode mode,
+
PsppSheet
SelectMode mode,
gboolean override_browse_mode);
void _pspp_sheet_selection_emit_changed (PsppSheetSelection *selection);
void _pspp_sheet_view_find_node (PsppSheetView *tree_view,
gboolean override_browse_mode);
void _pspp_sheet_selection_emit_changed (PsppSheetSelection *selection);
void _pspp_sheet_view_find_node (PsppSheetView *tree_view,
@@
-413,10
+411,9
@@
void _pspp_sheet_selection_set_tree_view (PsppSheetSelection *
PsppSheetView *tree_view);
void _pspp_sheet_view_column_cell_render (PsppSheetViewColumn *tree_column,
PsppSheetView *tree_view);
void _pspp_sheet_view_column_cell_render (PsppSheetViewColumn *tree_column,
-
GdkWindow *window
,
+
cairo_t *cr
,
const GdkRectangle *background_area,
const GdkRectangle *cell_area,
const GdkRectangle *background_area,
const GdkRectangle *cell_area,
- const GdkRectangle *expose_area,
guint flags);
void _pspp_sheet_view_column_get_focus_area (PsppSheetViewColumn *tree_column,
const GdkRectangle *background_area,
guint flags);
void _pspp_sheet_view_column_get_focus_area (PsppSheetViewColumn *tree_column,
const GdkRectangle *background_area,
@@
-427,10
+424,9
@@
gboolean _pspp_sheet_view_column_cell_focus (PsppSheetViewColumn *tree_
gboolean left,
gboolean right);
void _pspp_sheet_view_column_cell_draw_focus (PsppSheetViewColumn *tree_column,
gboolean left,
gboolean right);
void _pspp_sheet_view_column_cell_draw_focus (PsppSheetViewColumn *tree_column,
-
GdkWindow *window
,
+
cairo_t *cr
,
const GdkRectangle *background_area,
const GdkRectangle *cell_area,
const GdkRectangle *background_area,
const GdkRectangle *cell_area,
- const GdkRectangle *expose_area,
guint flags);
void _pspp_sheet_view_column_cell_set_dirty (PsppSheetViewColumn *tree_column);
void _pspp_sheet_view_column_get_neighbor_sizes (PsppSheetViewColumn *column,
guint flags);
void _pspp_sheet_view_column_cell_set_dirty (PsppSheetViewColumn *tree_column);
void _pspp_sheet_view_column_get_neighbor_sizes (PsppSheetViewColumn *column,