Commit c62b6cac authored by Jon K Hellan's avatar Jon K Hellan Committed by Jon Kåre Hellan
Browse files

Popup tool and dismiss chooser on double click.

2000-05-01  Jon K Hellan  <hellan@acm.org>

	* src/dialogs/dialog-analysis-tools.c (selection_made): Popup tool
	and dismiss chooser on double click.

	* src/dialogs/col-width.glade: Add title
	* src/dialogs/import.glade: Ditto
	* src/dialogs/row-height.glade: Ditto
	* src/dialogs/sheet-rename.glade: Ditto
	* src/dialogs/summary.glade: Ditto

	* src/dialogs/analysis-tools.glade (All dialogs): Add padding
	between input and output frames.
	(TTest1 dialog, TTest2 dialog, TTest3 dialog, Anova2 dialog,
	MovingAverage dialog): Remove spaces from label string.
	(Anova1 dialog, Correlation dialog, Covariance dialog,
	RankAndPercentile dialog): Use table in input frame. Get rid of
	frame around "Grouped by". Use alignment and fill instead of
	spaces to place label strings. Minor output options tweaks.
	(MovingAverage dialog): Place all user widgets inside the same
	vbox to make padding uniform.
parent ac0a108b
2000-05-01 Jon K Hellan <hellan@acm.org>
* src/dialogs/dialog-analysis-tools.c (selection_made): Popup tool
and dismiss chooser on double click.
* src/dialogs/col-width.glade: Add title
* src/dialogs/import.glade: Ditto
* src/dialogs/row-height.glade: Ditto
* src/dialogs/sheet-rename.glade: Ditto
* src/dialogs/summary.glade: Ditto
* src/dialogs/analysis-tools.glade (All dialogs): Add padding
between input and output frames.
(TTest1 dialog, TTest2 dialog, TTest3 dialog, Anova2 dialog,
MovingAverage dialog): Remove spaces from label string.
(Anova1 dialog, Correlation dialog, Covariance dialog,
RankAndPercentile dialog): Use table in input frame. Get rid of
frame around "Grouped by". Use alignment and fill instead of
spaces to place label strings. Minor output options tweaks.
(MovingAverage dialog): Place all user widgets inside the same
vbox to make padding uniform.
2000-05-01 Michael Meeks <michael@helixcode.com>
* configure.in: Handle oafinfo.in
......
2000-05-01 Jon K Hellan <hellan@acm.org>
* src/dialogs/dialog-analysis-tools.c (selection_made): Popup tool
and dismiss chooser on double click.
* src/dialogs/col-width.glade: Add title
* src/dialogs/import.glade: Ditto
* src/dialogs/row-height.glade: Ditto
* src/dialogs/sheet-rename.glade: Ditto
* src/dialogs/summary.glade: Ditto
* src/dialogs/analysis-tools.glade (All dialogs): Add padding
between input and output frames.
(TTest1 dialog, TTest2 dialog, TTest3 dialog, Anova2 dialog,
MovingAverage dialog): Remove spaces from label string.
(Anova1 dialog, Correlation dialog, Covariance dialog,
RankAndPercentile dialog): Use table in input frame. Get rid of
frame around "Grouped by". Use alignment and fill instead of
spaces to place label strings. Minor output options tweaks.
(MovingAverage dialog): Place all user widgets inside the same
vbox to make padding uniform.
2000-05-01 Michael Meeks <michael@helixcode.com>
* configure.in: Handle oafinfo.in
......
2000-05-01 Jon K Hellan <hellan@acm.org>
* src/dialogs/dialog-analysis-tools.c (selection_made): Popup tool
and dismiss chooser on double click.
* src/dialogs/col-width.glade: Add title
* src/dialogs/import.glade: Ditto
* src/dialogs/row-height.glade: Ditto
* src/dialogs/sheet-rename.glade: Ditto
* src/dialogs/summary.glade: Ditto
* src/dialogs/analysis-tools.glade (All dialogs): Add padding
between input and output frames.
(TTest1 dialog, TTest2 dialog, TTest3 dialog, Anova2 dialog,
MovingAverage dialog): Remove spaces from label string.
(Anova1 dialog, Correlation dialog, Covariance dialog,
RankAndPercentile dialog): Use table in input frame. Get rid of
frame around "Grouped by". Use alignment and fill instead of
spaces to place label strings. Minor output options tweaks.
(MovingAverage dialog): Place all user widgets inside the same
vbox to make padding uniform.
2000-05-01 Michael Meeks <michael@helixcode.com>
* configure.in: Handle oafinfo.in
......
2000-05-01 Jon K Hellan <hellan@acm.org>
* src/dialogs/dialog-analysis-tools.c (selection_made): Popup tool
and dismiss chooser on double click.
* src/dialogs/col-width.glade: Add title
* src/dialogs/import.glade: Ditto
* src/dialogs/row-height.glade: Ditto
* src/dialogs/sheet-rename.glade: Ditto
* src/dialogs/summary.glade: Ditto
* src/dialogs/analysis-tools.glade (All dialogs): Add padding
between input and output frames.
(TTest1 dialog, TTest2 dialog, TTest3 dialog, Anova2 dialog,
MovingAverage dialog): Remove spaces from label string.
(Anova1 dialog, Correlation dialog, Covariance dialog,
RankAndPercentile dialog): Use table in input frame. Get rid of
frame around "Grouped by". Use alignment and fill instead of
spaces to place label strings. Minor output options tweaks.
(MovingAverage dialog): Place all user widgets inside the same
vbox to make padding uniform.
2000-05-01 Michael Meeks <michael@helixcode.com>
* configure.in: Handle oafinfo.in
......
2000-05-01 Jon K Hellan <hellan@acm.org>
* src/dialogs/dialog-analysis-tools.c (selection_made): Popup tool
and dismiss chooser on double click.
* src/dialogs/col-width.glade: Add title
* src/dialogs/import.glade: Ditto
* src/dialogs/row-height.glade: Ditto
* src/dialogs/sheet-rename.glade: Ditto
* src/dialogs/summary.glade: Ditto
* src/dialogs/analysis-tools.glade (All dialogs): Add padding
between input and output frames.
(TTest1 dialog, TTest2 dialog, TTest3 dialog, Anova2 dialog,
MovingAverage dialog): Remove spaces from label string.
(Anova1 dialog, Correlation dialog, Covariance dialog,
RankAndPercentile dialog): Use table in input frame. Get rid of
frame around "Grouped by". Use alignment and fill instead of
spaces to place label strings. Minor output options tweaks.
(MovingAverage dialog): Place all user widgets inside the same
vbox to make padding uniform.
2000-05-01 Michael Meeks <michael@helixcode.com>
* configure.in: Handle oafinfo.in
......
2000-05-01 Jon K Hellan <hellan@acm.org>
* src/dialogs/dialog-analysis-tools.c (selection_made): Popup tool
and dismiss chooser on double click.
* src/dialogs/col-width.glade: Add title
* src/dialogs/import.glade: Ditto
* src/dialogs/row-height.glade: Ditto
* src/dialogs/sheet-rename.glade: Ditto
* src/dialogs/summary.glade: Ditto
* src/dialogs/analysis-tools.glade (All dialogs): Add padding
between input and output frames.
(TTest1 dialog, TTest2 dialog, TTest3 dialog, Anova2 dialog,
MovingAverage dialog): Remove spaces from label string.
(Anova1 dialog, Correlation dialog, Covariance dialog,
RankAndPercentile dialog): Use table in input frame. Get rid of
frame around "Grouped by". Use alignment and fill instead of
spaces to place label strings. Minor output options tweaks.
(MovingAverage dialog): Place all user widgets inside the same
vbox to make padding uniform.
2000-05-01 Michael Meeks <michael@helixcode.com>
* configure.in: Handle oafinfo.in
......
2000-05-01 Jon K Hellan <hellan@acm.org>
* src/dialogs/dialog-analysis-tools.c (selection_made): Popup tool
and dismiss chooser on double click.
* src/dialogs/col-width.glade: Add title
* src/dialogs/import.glade: Ditto
* src/dialogs/row-height.glade: Ditto
* src/dialogs/sheet-rename.glade: Ditto
* src/dialogs/summary.glade: Ditto
* src/dialogs/analysis-tools.glade (All dialogs): Add padding
between input and output frames.
(TTest1 dialog, TTest2 dialog, TTest3 dialog, Anova2 dialog,
MovingAverage dialog): Remove spaces from label string.
(Anova1 dialog, Correlation dialog, Covariance dialog,
RankAndPercentile dialog): Use table in input frame. Get rid of
frame around "Grouped by". Use alignment and fill instead of
spaces to place label strings. Minor output options tweaks.
(MovingAverage dialog): Place all user widgets inside the same
vbox to make padding uniform.
2000-05-01 Michael Meeks <michael@helixcode.com>
* configure.in: Handle oafinfo.in
......
This diff is collapsed.
......@@ -22,7 +22,7 @@ gchar *s = N_("_Hypothesized Mean Difference:");
gchar *s = N_("Va_riable 2 Range:");
gchar *s = N_("_Variable 1 Range:");
gchar *s = N_("_Alpha:");
gchar *s = N_("_Labels in First Row ");
gchar *s = N_("_Labels in First Row");
gchar *s = N_("Output options");
gchar *s = N_("_Output Range:");
gchar *s = N_("_New Sheet");
......@@ -52,15 +52,15 @@ gchar *s = N_("N_ew Workbook");
gchar *s = N_("Anova: Single Factor");
gchar *s = N_("Input");
gchar *s = N_(" _Input Range: ");
gchar *s = N_("Grouped By");
gchar *s = N_("_Columns");
gchar *s = N_("_Rows");
gchar *s = N_(" _Alpha: ");
gchar *s = N_("_Alpha:");
gchar *s = N_("_Labels");
gchar *s = N_("Grouped by:");
gchar *s = N_("Output options");
gchar *s = N_("_Output Range: ");
gchar *s = N_("N_ew Workbook");
gchar *s = N_("_New Sheet ");
gchar *s = N_("N_ew Workbook");
gchar *s = N_("Anova: Two-Factor Without Replication");
gchar *s = N_("Input");
gchar *s = N_("_Labels ");
......@@ -81,35 +81,35 @@ gchar *s = N_("_Output Range:");
gchar *s = N_("N_ew Workbook");
gchar *s = N_("_New Sheet");
gchar *s = N_("Correlation");
gchar *s = N_("Input:");
gchar *s = N_("Input");
gchar *s = N_(" _Input Range: ");
gchar *s = N_("Grouped By:");
gchar *s = N_("_Columns");
gchar *s = N_("_Rows");
gchar *s = N_("_Labels");
gchar *s = N_("Output options:");
gchar *s = N_("Grouped by:");
gchar *s = N_("Output options");
gchar *s = N_("_New Sheet");
gchar *s = N_("N_ew Workbook");
gchar *s = N_("_Output Range:");
gchar *s = N_("Covariance");
gchar *s = N_("Input:");
gchar *s = N_("Input");
gchar *s = N_(" _Input Range: ");
gchar *s = N_("Grouped By:");
gchar *s = N_("_Columns");
gchar *s = N_("_Rows");
gchar *s = N_("Grouped by:");
gchar *s = N_("_Labels");
gchar *s = N_("Output options:");
gchar *s = N_("_Rows");
gchar *s = N_("_Columns");
gchar *s = N_("Output options");
gchar *s = N_("_Output Range:");
gchar *s = N_("N_ew Workbook");
gchar *s = N_("_New Sheet");
gchar *s = N_("Rank and Percentile");
gchar *s = N_("Input:");
gchar *s = N_("Input");
gchar *s = N_(" _Input Range: ");
gchar *s = N_("Grouped By:");
gchar *s = N_("_Columns");
gchar *s = N_("_Rows");
gchar *s = N_("Grouped by:");
gchar *s = N_("_Labels");
gchar *s = N_("Output options:");
gchar *s = N_("_Rows");
gchar *s = N_("_Columns");
gchar *s = N_("Output options");
gchar *s = N_("_New Sheet");
gchar *s = N_("N_ew Workbook");
gchar *s = N_("_Output Range:");
......
......@@ -29,6 +29,7 @@
<class>GnomeDialog</class>
<name>dialog1</name>
<visible>False</visible>
<title>Column width</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
......@@ -101,7 +102,7 @@
<class>GtkHButtonBox</class>
<child_name>GnomeDialog:action_area</child_name>
<name>dialog-action_area1</name>
<layout_style>GTK_BUTTONBOX_END</layout_style>
<layout_style>GTK_BUTTONBOX_DEFAULT_STYLE</layout_style>
<spacing>8</spacing>
<child_min_width>85</child_min_width>
<child_min_height>27</child_min_height>
......
......@@ -4,4 +4,5 @@
* DO NOT compile it as part of your application.
*/
gchar *s = N_("Column width");
gchar *s = N_("_Column width:");
......@@ -2534,10 +2534,17 @@ static void
selection_made (GtkWidget *clist, gint row, gint column,
GdkEventButton *event, gpointer data)
{
GtkWidget *dialog;
selected_row = row;
/* If the tool is double-clicked we pop up the tool and dismiss
chooser. */
if (event && event->type == GDK_2BUTTON_PRESS) {
dialog = gtk_widget_get_toplevel (GTK_WIDGET (clist));
gtk_signal_emit_by_name (GTK_OBJECT (dialog), "clicked", 0);
}
}
void
dialog_data_analysis (Workbook *wb, Sheet *sheet)
{
......
......@@ -17,9 +17,15 @@ static void
cb_row_selected (GtkCList *clist, int row, int col, GdkEvent *event, GtkEntry *entry)
{
char *text;
GtkWidget *dialog;
gtk_clist_get_text (clist, row, col, &text);
gtk_entry_set_text (entry, text);
/* If the tool is double-clicked we dismiss dialog. */
if (event && event->type == GDK_2BUTTON_PRESS) {
dialog = gtk_widget_get_toplevel (GTK_WIDGET (clist));
gtk_signal_emit_by_name (GTK_OBJECT (dialog), "clicked", 0);
}
}
void
......@@ -42,8 +48,8 @@ dialog_goto_cell (Workbook *wb)
dialog = gnome_dialog_new (_("Go to..."),
GNOME_STOCK_BUTTON_OK,
GNOME_STOCK_BUTTON_CANCEL,
_("Special..."),
GNOME_STOCK_BUTTON_HELP,
/* _("Special..."), */
/* GNOME_STOCK_BUTTON_HELP, */
NULL);
gnome_dialog_close_hides (GNOME_DIALOG (dialog), TRUE);
gnome_dialog_set_default(GNOME_DIALOG(dialog), GNOME_OK);
......
......@@ -30,6 +30,7 @@
<name>import-dialog</name>
<border_width>2</border_width>
<visible>False</visible>
<title>Import</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
......@@ -124,7 +125,7 @@
<class>GtkHButtonBox</class>
<child_name>GnomeDialog:action_area</child_name>
<name>dialog-action_area1</name>
<layout_style>GTK_BUTTONBOX_END</layout_style>
<layout_style>GTK_BUTTONBOX_DEFAULT_STYLE</layout_style>
<spacing>8</spacing>
<child_min_width>85</child_min_width>
<child_min_height>27</child_min_height>
......
......@@ -4,5 +4,6 @@
* DO NOT compile it as part of your application.
*/
gchar *s = N_("Import");
gchar *s = N_("Choose an import filter for loading the file:");
gchar *s = N_("label2");
......@@ -29,6 +29,7 @@
<class>GnomeDialog</class>
<name>dialog1</name>
<visible>False</visible>
<title>Row height</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
......@@ -101,7 +102,7 @@
<class>GtkHButtonBox</class>
<child_name>GnomeDialog:action_area</child_name>
<name>dialog-action_area1</name>
<layout_style>GTK_BUTTONBOX_END</layout_style>
<layout_style>GTK_BUTTONBOX_DEFAULT_STYLE</layout_style>
<spacing>8</spacing>
<child_min_width>85</child_min_width>
<child_min_height>27</child_min_height>
......
......@@ -4,4 +4,5 @@
* DO NOT compile it as part of your application.
*/
gchar *s = N_("Row height");
gchar *s = N_("_Row height:");
......@@ -29,6 +29,7 @@
<class>GnomeDialog</class>
<name>dialog</name>
<visible>False</visible>
<title>Rename sheet</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>True</modal>
......@@ -100,7 +101,7 @@
<class>GtkHButtonBox</class>
<child_name>GnomeDialog:action_area</child_name>
<name>dialog-action_area1</name>
<layout_style>GTK_BUTTONBOX_END</layout_style>
<layout_style>GTK_BUTTONBOX_DEFAULT_STYLE</layout_style>
<spacing>8</spacing>
<child_min_width>85</child_min_width>
<child_min_height>27</child_min_height>
......
......@@ -4,4 +4,5 @@
* DO NOT compile it as part of your application.
*/
gchar *s = N_("Rename sheet");
gchar *s = N_("Enter new _sheet name:");
......@@ -29,6 +29,7 @@
<class>GnomeDialog</class>
<name>SummaryInformation</name>
<visible>False</visible>
<title>Summary</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment