* src/dialog.glade: Add format controls for notes.

svn: r2518
This commit is contained in:
Alex Roitman 2003-12-14 17:15:11 +00:00
parent dede375ac8
commit 19e9f35349
2 changed files with 478 additions and 79 deletions

View File

@ -1,3 +1,6 @@
2003-12-14 Alex Roitman <shura@alex.neuro.umn.edu>
* src/dialog.glade: Add format controls for notes.
2003-12-13 Alex Roitman <shura@alex.neuro.umn.edu> 2003-12-13 Alex Roitman <shura@alex.neuro.umn.edu>
* src/docgen/KwordDoc.py (write_note): Implement function. * src/docgen/KwordDoc.py (write_note): Implement function.
* src/edit_person.glade: Correct hotkeys. * src/edit_person.glade: Correct hotkeys.

View File

@ -677,32 +677,131 @@
</child> </child>
<child> <child>
<widget class="GtkScrolledWindow" id="scrolledwindow21"> <widget class="GtkVBox" id="vbox50">
<property name="border_width">6</property>
<property name="width_request">400</property>
<property name="height_request">250</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="homogeneous">False</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> <property name="spacing">0</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child> <child>
<widget class="GtkTextView" id="eventNote"> <widget class="GtkScrolledWindow" id="scrolledwindow21">
<property name="border_width">6</property>
<property name="width_request">400</property>
<property name="height_request">200</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="editable">True</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="justification">GTK_JUSTIFY_LEFT</property> <property name="shadow_type">GTK_SHADOW_IN</property>
<property name="wrap_mode">GTK_WRAP_WORD</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property> <child>
<property name="pixels_below_lines">0</property> <widget class="GtkTextView" id="eventNote">
<property name="pixels_inside_wrap">0</property> <property name="visible">True</property>
<property name="left_margin">0</property> <property name="can_focus">True</property>
<property name="right_margin">0</property> <property name="editable">True</property>
<property name="indent">0</property> <property name="justification">GTK_JUSTIFY_LEFT</property>
<property name="text" translatable="yes"></property> <property name="wrap_mode">GTK_WRAP_WORD</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property>
<property name="pixels_below_lines">0</property>
<property name="pixels_inside_wrap">0</property>
<property name="left_margin">0</property>
<property name="right_margin">0</property>
<property name="indent">0</property>
<property name="text" translatable="yes"></property>
</widget>
</child>
</widget> </widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkTable" id="table30">
<property name="border_width">12</property>
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">3</property>
<property name="homogeneous">False</property>
<property name="row_spacing">12</property>
<property name="column_spacing">24</property>
<child>
<widget class="GtkLabel" id="label299">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Format&lt;/b&gt;</property>
<property name="use_underline">True</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">3</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="eventflowed">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Multiple spaces, tabs, and single line breaks are replaced with single spaces. Two consecutive line breaks mark a new paragraph.</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Flowed</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">True</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="eventpreform">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Formatting is preserved, except for the leading whitespace. Multiple spaces, tabs, and all line breaks are honored.</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Preformatted</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">eventflowed</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child> </child>
</widget> </widget>
<packing> <packing>
@ -1347,30 +1446,129 @@
</child> </child>
<child> <child>
<widget class="GtkScrolledWindow" id="scrolledwindow22"> <widget class="GtkVBox" id="vbox51">
<property name="height_request">350</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="homogeneous">False</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> <property name="spacing">0</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child> <child>
<widget class="GtkTextView" id="attr_note"> <widget class="GtkScrolledWindow" id="scrolledwindow22">
<property name="height_request">300</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="editable">True</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="justification">GTK_JUSTIFY_LEFT</property> <property name="shadow_type">GTK_SHADOW_IN</property>
<property name="wrap_mode">GTK_WRAP_WORD</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property> <child>
<property name="pixels_below_lines">0</property> <widget class="GtkTextView" id="attr_note">
<property name="pixels_inside_wrap">0</property> <property name="visible">True</property>
<property name="left_margin">0</property> <property name="can_focus">True</property>
<property name="right_margin">0</property> <property name="editable">True</property>
<property name="indent">0</property> <property name="justification">GTK_JUSTIFY_LEFT</property>
<property name="text" translatable="yes"></property> <property name="wrap_mode">GTK_WRAP_WORD</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property>
<property name="pixels_below_lines">0</property>
<property name="pixels_inside_wrap">0</property>
<property name="left_margin">0</property>
<property name="right_margin">0</property>
<property name="indent">0</property>
<property name="text" translatable="yes"></property>
</widget>
</child>
</widget> </widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkTable" id="table32">
<property name="border_width">12</property>
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">3</property>
<property name="homogeneous">False</property>
<property name="row_spacing">12</property>
<property name="column_spacing">24</property>
<child>
<widget class="GtkLabel" id="label301">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Format&lt;/b&gt;</property>
<property name="use_underline">True</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">3</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="attr_flowed">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Multiple spaces, tabs, and single line breaks are replaced with single spaces. Two consecutive line breaks mark a new paragraph.</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Flowed</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">True</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="attr_preform">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Formatting is preserved, except for the leading whitespace. Multiple spaces, tabs, and all line breaks are honored.</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Preformatted</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">attr_flowed</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child> </child>
</widget> </widget>
<packing> <packing>
@ -2605,30 +2803,129 @@
</child> </child>
<child> <child>
<widget class="GtkScrolledWindow" id="scrolledwindow24"> <widget class="GtkVBox" id="vbox52">
<property name="height_request">400</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="homogeneous">False</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> <property name="spacing">0</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child> <child>
<widget class="GtkTextView" id="addr_note"> <widget class="GtkScrolledWindow" id="scrolledwindow24">
<property name="height_request">350</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="editable">True</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="justification">GTK_JUSTIFY_LEFT</property> <property name="shadow_type">GTK_SHADOW_IN</property>
<property name="wrap_mode">GTK_WRAP_WORD</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property> <child>
<property name="pixels_below_lines">0</property> <widget class="GtkTextView" id="addr_note">
<property name="pixels_inside_wrap">0</property> <property name="visible">True</property>
<property name="left_margin">0</property> <property name="can_focus">True</property>
<property name="right_margin">0</property> <property name="editable">True</property>
<property name="indent">0</property> <property name="justification">GTK_JUSTIFY_LEFT</property>
<property name="text" translatable="yes"></property> <property name="wrap_mode">GTK_WRAP_WORD</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property>
<property name="pixels_below_lines">0</property>
<property name="pixels_inside_wrap">0</property>
<property name="left_margin">0</property>
<property name="right_margin">0</property>
<property name="indent">0</property>
<property name="text" translatable="yes"></property>
</widget>
</child>
</widget> </widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkTable" id="table33">
<property name="border_width">12</property>
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">3</property>
<property name="homogeneous">False</property>
<property name="row_spacing">12</property>
<property name="column_spacing">24</property>
<child>
<widget class="GtkLabel" id="label302">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Format&lt;/b&gt;</property>
<property name="use_underline">True</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">3</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="addr_flowed">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Multiple spaces, tabs, and single line breaks are replaced with single spaces. Two consecutive line breaks mark a new paragraph.</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Flowed</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">True</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="addr_preform">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Formatting is preserved, except for the leading whitespace. Multiple spaces, tabs, and all line breaks are honored.</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Preformatted</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">addr_flowed</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child> </child>
</widget> </widget>
<packing> <packing>
@ -3669,31 +3966,130 @@
</child> </child>
<child> <child>
<widget class="GtkScrolledWindow" id="scrolledwindow23"> <widget class="GtkVBox" id="vbox53">
<property name="width_request">450</property>
<property name="height_request">400</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="homogeneous">False</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> <property name="spacing">0</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child> <child>
<widget class="GtkTextView" id="alt_note"> <widget class="GtkScrolledWindow" id="scrolledwindow23">
<property name="width_request">450</property>
<property name="height_request">350</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="editable">True</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="justification">GTK_JUSTIFY_LEFT</property> <property name="shadow_type">GTK_SHADOW_IN</property>
<property name="wrap_mode">GTK_WRAP_WORD</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property> <child>
<property name="pixels_below_lines">0</property> <widget class="GtkTextView" id="alt_note">
<property name="pixels_inside_wrap">0</property> <property name="visible">True</property>
<property name="left_margin">0</property> <property name="can_focus">True</property>
<property name="right_margin">0</property> <property name="editable">True</property>
<property name="indent">0</property> <property name="justification">GTK_JUSTIFY_LEFT</property>
<property name="text" translatable="yes"></property> <property name="wrap_mode">GTK_WRAP_WORD</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property>
<property name="pixels_below_lines">0</property>
<property name="pixels_inside_wrap">0</property>
<property name="left_margin">0</property>
<property name="right_margin">0</property>
<property name="indent">0</property>
<property name="text" translatable="yes"></property>
</widget>
</child>
</widget> </widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkTable" id="table34">
<property name="border_width">12</property>
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">3</property>
<property name="homogeneous">False</property>
<property name="row_spacing">12</property>
<property name="column_spacing">24</property>
<child>
<widget class="GtkLabel" id="label303">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Format&lt;/b&gt;</property>
<property name="use_underline">True</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">3</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="alt_flowed">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Multiple spaces, tabs, and single line breaks are replaced with single spaces. Two consecutive line breaks mark a new paragraph.</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Flowed</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">True</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="alt_preform">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Formatting is preserved, except for the leading whitespace. Multiple spaces, tabs, and all line breaks are honored.</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Preformatted</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">alt_flowed</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child> </child>
</widget> </widget>
<packing> <packing>