Definition in file report.h.
#include "main.h"
Go to the source code of this file.
Functions | |
GtkWidget * | tab_label_box (QlTabData *tab, const gchar *label_text) |
void | report_select (GtkAction *w, gpointer data) |
void | report_add (GtkAction *w, gpointer data) |
void | report_col_add (GtkAction *w, gpointer data) |
void | report_col_del (GtkAction *w, gpointer data) |
void | report_col_left (GtkAction *w, gpointer data) |
void | report_col_right (GtkAction *w, gpointer data) |
void | report_totals_group (GtkAction *w, gpointer data) |
void | report_totals_total (GtkAction *w, gpointer data) |
void | print_preview_cb (GtkWidget *widget, gpointer data) |
void | print_cb (GtkWidget *widget, gpointer data) |
GtkWidget* tab_label_box | ( | QlTabData * | tab, | |
const gchar * | label_text | |||
) |
Definition at line 158 of file report.c.
00159 { 00160 GtkWidget * label_box, * label, * tab_close; 00161 GtkWidget * tab_image; 00162 GtkRcStyle *rcstyle; 00163 00164 label_box = gtk_hbox_new (FALSE, 0); 00165 label = gtk_label_new (label_text); 00166 gtk_box_pack_start (GTK_BOX(label_box), label, FALSE, FALSE, 5); 00167 tab_close = gtk_button_new(); 00168 gtk_button_set_relief(GTK_BUTTON(tab_close), GTK_RELIEF_NONE); 00169 gtk_button_set_focus_on_click (GTK_BUTTON (tab_close), FALSE); 00171 rcstyle = gtk_rc_style_new (); 00172 rcstyle->xthickness = rcstyle->ythickness = 0; 00173 gtk_widget_modify_style (tab_close, rcstyle); 00174 g_object_unref (rcstyle); 00175 tab_image = gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU); 00176 gtk_container_add(GTK_CONTAINER(tab_close), tab_image); 00177 gtk_box_pack_start (GTK_BOX(label_box), tab_close, FALSE, FALSE, 0); 00178 gtk_widget_show_all (label_box); 00179 /* closing a report does not ask about save */ 00180 if ((tab->file->file_path) && (!tab->file->report_ptr)) 00181 g_signal_connect (tab_close, "clicked", G_CALLBACK (close_filetab), tab); 00182 else 00183 g_signal_connect (tab_close, "clicked", G_CALLBACK (close_report), tab); 00184 return label_box; 00185 }