2007-06-18 03:40:41 +00:00
|
|
|
/*
|
2011-01-19 13:48:47 +00:00
|
|
|
* This file Copyright (C) Mnemosyne LLC
|
2007-06-06 00:30:13 +00:00
|
|
|
*
|
2010-12-27 19:18:17 +00:00
|
|
|
* This file is licensed by the GPL version 2. Works owned by the
|
2007-06-18 03:40:41 +00:00
|
|
|
* Transmission project are granted a special exemption to clause 2(b)
|
2008-09-23 19:11:04 +00:00
|
|
|
* so that the bulk of its code can remain under the MIT license.
|
2007-06-18 03:40:41 +00:00
|
|
|
* This exemption does not extend to derived works not owned by
|
|
|
|
* the Transmission project.
|
2008-09-23 19:11:04 +00:00
|
|
|
*
|
2007-08-18 17:19:49 +00:00
|
|
|
* $Id$
|
2007-06-18 03:40:41 +00:00
|
|
|
*/
|
2007-06-06 00:30:13 +00:00
|
|
|
|
2010-12-21 19:20:58 +00:00
|
|
|
#ifndef GTR_HIG_H
|
|
|
|
#define GTR_HIG_H
|
2007-06-06 00:30:13 +00:00
|
|
|
|
2008-10-31 18:25:21 +00:00
|
|
|
#include <gtk/gtk.h>
|
2007-06-06 00:30:13 +00:00
|
|
|
|
|
|
|
/**
|
2008-02-14 17:18:00 +00:00
|
|
|
*** utility code for making dialog layout that follows the Gnome HIG.
|
|
|
|
*** see section 8.2.2, Visual Design > Window Layout > Dialogs.
|
2007-06-06 00:30:13 +00:00
|
|
|
**/
|
|
|
|
|
2008-02-14 17:18:00 +00:00
|
|
|
GtkWidget* hig_workarea_create( void );
|
2007-06-18 03:40:41 +00:00
|
|
|
|
2008-09-23 19:11:04 +00:00
|
|
|
void hig_workarea_add_section_divider( GtkWidget * table,
|
2011-08-13 21:08:53 +00:00
|
|
|
guint * row );
|
2007-06-18 03:40:41 +00:00
|
|
|
|
2008-09-23 19:11:04 +00:00
|
|
|
void hig_workarea_add_section_title_widget( GtkWidget * t,
|
2011-08-13 21:08:53 +00:00
|
|
|
guint * row,
|
2008-09-23 19:11:04 +00:00
|
|
|
GtkWidget * w );
|
2008-06-02 04:41:55 +00:00
|
|
|
|
2011-08-13 21:08:53 +00:00
|
|
|
void hig_workarea_add_section_title( GtkWidget * table,
|
|
|
|
guint * row,
|
2008-09-23 19:11:04 +00:00
|
|
|
const char * section_title );
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2009-10-28 03:54:36 +00:00
|
|
|
void hig_workarea_add_wide_tall_control( GtkWidget * table,
|
2011-08-13 21:08:53 +00:00
|
|
|
guint * row,
|
2009-10-28 03:54:36 +00:00
|
|
|
GtkWidget * w );
|
|
|
|
|
2008-09-23 19:11:04 +00:00
|
|
|
void hig_workarea_add_wide_control( GtkWidget * table,
|
2011-08-13 21:08:53 +00:00
|
|
|
guint * row,
|
2008-09-23 19:11:04 +00:00
|
|
|
GtkWidget * w );
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2011-08-13 21:08:53 +00:00
|
|
|
GtkWidget* hig_workarea_add_wide_checkbutton( GtkWidget * table,
|
|
|
|
guint * row,
|
2008-09-23 19:11:04 +00:00
|
|
|
const char * mnemonic_string,
|
|
|
|
gboolean is_active );
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2008-09-23 19:11:04 +00:00
|
|
|
void hig_workarea_add_label_w( GtkWidget * table,
|
2011-08-13 21:08:53 +00:00
|
|
|
guint row,
|
2008-09-23 19:11:04 +00:00
|
|
|
GtkWidget * label_widget );
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2011-08-13 21:08:53 +00:00
|
|
|
GtkWidget* hig_workarea_add_tall_row( GtkWidget * table,
|
|
|
|
guint * row,
|
2009-09-17 01:21:49 +00:00
|
|
|
const char * mnemonic_string,
|
2011-08-13 21:08:53 +00:00
|
|
|
GtkWidget * control,
|
|
|
|
GtkWidget * mnemonic_or_null_for_control );
|
2009-09-17 01:21:49 +00:00
|
|
|
|
2011-08-13 21:08:53 +00:00
|
|
|
GtkWidget* hig_workarea_add_row( GtkWidget * table,
|
|
|
|
guint * row,
|
2008-09-23 19:11:04 +00:00
|
|
|
const char * mnemonic_string,
|
2011-08-13 21:08:53 +00:00
|
|
|
GtkWidget * control,
|
|
|
|
GtkWidget * mnemonic_or_null_for_control );
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2008-09-23 19:11:04 +00:00
|
|
|
void hig_workarea_add_row_w( GtkWidget * table,
|
2011-08-13 21:08:53 +00:00
|
|
|
guint * row,
|
2008-09-23 19:11:04 +00:00
|
|
|
GtkWidget * label,
|
|
|
|
GtkWidget * control,
|
|
|
|
GtkWidget * mnemonic_or_null_for_control );
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2007-06-06 00:30:13 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
GUI_PAD_SMALL = 3,
|
|
|
|
GUI_PAD = 6,
|
|
|
|
GUI_PAD_BIG = 12,
|
|
|
|
GUI_PAD_LARGE = 12
|
|
|
|
};
|
|
|
|
|
2010-12-21 19:20:58 +00:00
|
|
|
#endif /* GTR_HIG_H */
|