2007-06-18 03:40:41 +00:00
|
|
|
/*
|
2014-01-19 01:09:44 +00:00
|
|
|
* This file Copyright (C) 2007-2014 Mnemosyne LLC
|
2007-06-06 00:30:13 +00:00
|
|
|
*
|
2014-01-21 03:10:30 +00:00
|
|
|
* It may be used under the GNU GPL versions 2 or 3
|
2014-01-19 01:09:44 +00:00
|
|
|
* or any future license endorsed by Mnemosyne LLC.
|
2008-09-23 19:11:04 +00:00
|
|
|
*
|
2007-06-18 03:40:41 +00:00
|
|
|
*/
|
2007-06-06 00:30:13 +00:00
|
|
|
|
2016-03-29 16:37:21 +00:00
|
|
|
#pragma once
|
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
|
|
|
**/
|
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
GtkWidget* hig_workarea_create(void);
|
2007-06-18 03:40:41 +00:00
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
void hig_workarea_add_section_divider(GtkWidget* table, guint* row);
|
2007-06-18 03:40:41 +00:00
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
void hig_workarea_add_section_title_widget(GtkWidget* t, guint* row, GtkWidget* w);
|
2008-06-02 04:41:55 +00:00
|
|
|
|
2017-04-20 16:02:19 +00:00
|
|
|
void hig_workarea_add_section_title(GtkWidget* table, guint* row, char const* section_title);
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
void hig_workarea_add_wide_tall_control(GtkWidget* table, guint* row, GtkWidget* w);
|
2009-10-28 03:54:36 +00:00
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
void hig_workarea_add_wide_control(GtkWidget* table, guint* row, GtkWidget* w);
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2017-04-20 16:02:19 +00:00
|
|
|
GtkWidget* hig_workarea_add_wide_checkbutton(GtkWidget* table, guint* row, char const* mnemonic_string, gboolean is_active);
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
void hig_workarea_add_label_w(GtkWidget* table, guint row, GtkWidget* label_widget);
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2017-04-20 16:02:19 +00:00
|
|
|
GtkWidget* hig_workarea_add_tall_row(GtkWidget* table, guint* row, char const* mnemonic_string, GtkWidget* control,
|
2017-04-19 12:04:45 +00:00
|
|
|
GtkWidget* mnemonic_or_null_for_control);
|
2009-09-17 01:21:49 +00:00
|
|
|
|
2017-04-20 16:02:19 +00:00
|
|
|
GtkWidget* hig_workarea_add_row(GtkWidget* table, guint* row, char const* mnemonic_string, GtkWidget* control,
|
2017-04-19 12:04:45 +00:00
|
|
|
GtkWidget* mnemonic_or_null_for_control);
|
2008-02-14 17:18:00 +00:00
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
void hig_workarea_add_row_w(GtkWidget* table, guint* row, 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
|
|
|
|
};
|