mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Little more work on GTK document dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10816 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ca90f64323
commit
98dd757bbc
@ -1,6 +1,7 @@
|
|||||||
2006-02-06 John Spray <spray@lyx.org>
|
2006-02-06 John Spray <spray@lyx.org>
|
||||||
|
|
||||||
* GGraphics.[Ch], glade/graphics.glade: Use GtkLengthEntry, touch up glade
|
* GGraphics.[Ch], glade/graphics.glade: Use GtkLengthEntry, touch up glade
|
||||||
|
* GDocument.[Ch], glade/document.glade: Only Bullet options left to do
|
||||||
|
|
||||||
2006-02-05 John Spray <spray@lyx.org>
|
2006-02-05 John Spray <spray@lyx.org>
|
||||||
|
|
||||||
|
@ -292,6 +292,8 @@ void GDocument::doBuild()
|
|||||||
addbranchbutton_->signal_clicked().connect(
|
addbranchbutton_->signal_clicked().connect(
|
||||||
sigc::mem_fun(*this, &GDocument::addBranch));
|
sigc::mem_fun(*this, &GDocument::addBranch));
|
||||||
xml_->get_widget("RemoveBranch", removebranchbutton_);
|
xml_->get_widget("RemoveBranch", removebranchbutton_);
|
||||||
|
removebranchbutton_->signal_clicked().connect(
|
||||||
|
sigc::mem_fun(*this, &GDocument::removeBranch));
|
||||||
branchCols_.add(branchColName_);
|
branchCols_.add(branchColName_);
|
||||||
branchCols_.add(branchColActivated_);
|
branchCols_.add(branchColActivated_);
|
||||||
branchCols_.add(branchColColor_);
|
branchCols_.add(branchColColor_);
|
||||||
@ -879,6 +881,16 @@ void GDocument::addBranch()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GDocument::removeBranch()
|
||||||
|
{
|
||||||
|
Gtk::TreeModel::iterator const selected = branchsel_->get_selected();
|
||||||
|
if (!branchliststore_->iter_is_valid(selected))
|
||||||
|
return;
|
||||||
|
|
||||||
|
branchliststore_->erase (selected);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void GDocument::branchSelChanged()
|
void GDocument::branchSelChanged()
|
||||||
{
|
{
|
||||||
if (branchsel_->get_selected() == branchliststore_->children().end())
|
if (branchsel_->get_selected() == branchliststore_->children().end())
|
||||||
|
@ -148,6 +148,7 @@ private:
|
|||||||
Glib::RefPtr<Gtk::ListStore> branchliststore_;
|
Glib::RefPtr<Gtk::ListStore> branchliststore_;
|
||||||
Glib::RefPtr<Gtk::TreeSelection> branchsel_;
|
Glib::RefPtr<Gtk::TreeSelection> branchsel_;
|
||||||
void addBranch();
|
void addBranch();
|
||||||
|
void removeBranch();
|
||||||
void branchSelChanged();
|
void branchSelChanged();
|
||||||
// *** End "Branches" Page ***
|
// *** End "Branches" Page ***
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
||||||
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||||
<property name="focus_on_map">True</property>
|
<property name="focus_on_map">True</property>
|
||||||
<property name="urgency_hint">False</property>
|
|
||||||
<property name="has_separator">False</property>
|
<property name="has_separator">False</property>
|
||||||
|
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
@ -2748,7 +2747,7 @@
|
|||||||
<widget class="GtkRadioButton" id="DocumentDefault">
|
<widget class="GtkRadioButton" id="DocumentDefault">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="label" translatable="yes">Document default</property>
|
<property name="label" translatable="yes">Default</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="focus_on_click">True</property>
|
<property name="focus_on_click">True</property>
|
||||||
@ -3302,33 +3301,71 @@
|
|||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkScrolledWindow" id="scrolledwindow2">
|
<widget class="GtkVBox" id="vbox30">
|
||||||
<property name="border_width">12</property>
|
<property name="border_width">12</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
<property name="spacing">6</property>
|
||||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
|
||||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
|
||||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkTextView" id="Preamble">
|
<widget class="GtkLabel" id="label75">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes"><i>Text entered here will be interpreted as LaTeX markup before the main text. Please see the <i>Extended Features</i> manual for more information.</i></property>
|
||||||
|
<property name="use_underline">False</property>
|
||||||
|
<property name="use_markup">True</property>
|
||||||
|
<property name="justify">GTK_JUSTIFY_FILL</property>
|
||||||
|
<property name="wrap">True</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>
|
||||||
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
<property name="width_chars">-1</property>
|
||||||
|
<property name="single_line_mode">False</property>
|
||||||
|
<property name="angle">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkScrolledWindow" id="scrolledwindow2">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="editable">True</property>
|
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||||
<property name="overwrite">False</property>
|
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||||
<property name="accepts_tab">True</property>
|
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||||
<property name="justification">GTK_JUSTIFY_LEFT</property>
|
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||||
<property name="wrap_mode">GTK_WRAP_NONE</property>
|
|
||||||
<property name="cursor_visible">True</property>
|
<child>
|
||||||
<property name="pixels_above_lines">3</property>
|
<widget class="GtkTextView" id="Preamble">
|
||||||
<property name="pixels_below_lines">0</property>
|
<property name="visible">True</property>
|
||||||
<property name="pixels_inside_wrap">0</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="left_margin">6</property>
|
<property name="editable">True</property>
|
||||||
<property name="right_margin">0</property>
|
<property name="overwrite">False</property>
|
||||||
<property name="indent">0</property>
|
<property name="accepts_tab">True</property>
|
||||||
<property name="text" translatable="yes">You should not see this.</property>
|
<property name="justification">GTK_JUSTIFY_LEFT</property>
|
||||||
|
<property name="wrap_mode">GTK_WRAP_NONE</property>
|
||||||
|
<property name="cursor_visible">True</property>
|
||||||
|
<property name="pixels_above_lines">3</property>
|
||||||
|
<property name="pixels_below_lines">0</property>
|
||||||
|
<property name="pixels_inside_wrap">0</property>
|
||||||
|
<property name="left_margin">6</property>
|
||||||
|
<property name="right_margin">0</property>
|
||||||
|
<property name="indent">0</property>
|
||||||
|
<property name="text" translatable="yes">You should not see this.</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>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
|
Loading…
Reference in New Issue
Block a user