1 | /* |
---|
2 | * This file Copyright (C) 2007-2008 Charles Kerr <charles@rebelbase.com> |
---|
3 | * |
---|
4 | * This file is licensed by the GPL version 2. Works owned by the |
---|
5 | * Transmission project are granted a special exemption to clause 2(b) |
---|
6 | * so that the bulk of its code can remain under the MIT license. |
---|
7 | * This exemption does not extend to derived works not owned by |
---|
8 | * the Transmission project. |
---|
9 | * |
---|
10 | * $Id: hig.h 5007 2008-02-12 16:56:44Z charles $ |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef __HIG_H__ |
---|
14 | #define __HIG_H__ |
---|
15 | |
---|
16 | #include <gtk/gtkwidget.h> |
---|
17 | |
---|
18 | /** |
---|
19 | *** utility code to make it slightly less painful to create |
---|
20 | *** dialogs compliant with Gnome's Human Interface Guidelines |
---|
21 | **/ |
---|
22 | |
---|
23 | GtkWidget* hig_workarea_create (void); |
---|
24 | |
---|
25 | void |
---|
26 | hig_workarea_add_section_divider (GtkWidget * table, |
---|
27 | int * row); |
---|
28 | |
---|
29 | void |
---|
30 | hig_workarea_add_section_title (GtkWidget * table, |
---|
31 | int * row, |
---|
32 | const char * section_title); |
---|
33 | |
---|
34 | void |
---|
35 | hig_workarea_add_wide_control (GtkWidget * table, |
---|
36 | int * row, |
---|
37 | GtkWidget * w); |
---|
38 | |
---|
39 | GtkWidget* |
---|
40 | hig_workarea_add_wide_checkbutton (GtkWidget * table, |
---|
41 | int * row, |
---|
42 | const char * mnemonic_string, |
---|
43 | gboolean is_active); |
---|
44 | |
---|
45 | GtkWidget* |
---|
46 | hig_workarea_add_label (GtkWidget * table, |
---|
47 | int row, |
---|
48 | const char * mnemonic_string); |
---|
49 | |
---|
50 | void |
---|
51 | hig_workarea_add_label_w (GtkWidget * table, |
---|
52 | int row, |
---|
53 | GtkWidget * label_widget); |
---|
54 | |
---|
55 | void |
---|
56 | hig_workarea_add_control (GtkWidget * table, |
---|
57 | int row, |
---|
58 | GtkWidget * control); |
---|
59 | |
---|
60 | GtkWidget* |
---|
61 | hig_workarea_add_row (GtkWidget * table, |
---|
62 | int * row, |
---|
63 | const char * mnemonic_string, |
---|
64 | GtkWidget * control, |
---|
65 | GtkWidget * mnemonic_or_null_if_control_is_mnemonic); |
---|
66 | |
---|
67 | void |
---|
68 | hig_workarea_add_row_w (GtkWidget * table, |
---|
69 | int * row, |
---|
70 | GtkWidget * label, |
---|
71 | GtkWidget * control, |
---|
72 | GtkWidget * mnemonic_or_null_if_control_is_mnemonic); |
---|
73 | |
---|
74 | void |
---|
75 | hig_workarea_finish (GtkWidget * table, |
---|
76 | int * row); |
---|
77 | |
---|
78 | void |
---|
79 | hig_message_dialog_set_text (GtkMessageDialog * dialog, |
---|
80 | const char * primary, |
---|
81 | const char * secondary); |
---|
82 | |
---|
83 | |
---|
84 | /** |
---|
85 | *** |
---|
86 | **/ |
---|
87 | |
---|
88 | enum |
---|
89 | { |
---|
90 | GUI_PAD_SMALL = 3, |
---|
91 | GUI_PAD = 6, |
---|
92 | GUI_PAD_BIG = 12, |
---|
93 | GUI_PAD_LARGE = 12 |
---|
94 | }; |
---|
95 | |
---|
96 | #endif /* __HIG_H__ */ |
---|