]> git.lyx.org Git - features.git/commitdiff
Little more work on GTK document dialog
authorJohn Spray <spray@lyx.org>
Mon, 6 Feb 2006 21:54:10 +0000 (21:54 +0000)
committerJohn Spray <spray@lyx.org>
Mon, 6 Feb 2006 21:54:10 +0000 (21:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10816 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/gtk/ChangeLog
src/frontends/gtk/GDocument.C
src/frontends/gtk/GDocument.h
src/frontends/gtk/glade/document.glade

index 70d0304ddd8749b3d8e23b78f01c382b63c4a9dc..86a9fcdf9f8bc40d66ac05bf593a435b71a647bd 100644 (file)
@@ -1,6 +1,7 @@
 2006-02-06  John Spray  <spray@lyx.org>
 
        * 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>
 
index a83c670a6100dd4d8687e9da6f7230591aebede5..3912c147f33ba07827601dc4d8c86cd355f98d3a 100644 (file)
@@ -292,6 +292,8 @@ void GDocument::doBuild()
        addbranchbutton_->signal_clicked().connect(
                sigc::mem_fun(*this, &GDocument::addBranch));
        xml_->get_widget("RemoveBranch", removebranchbutton_);
+       removebranchbutton_->signal_clicked().connect(
+               sigc::mem_fun(*this, &GDocument::removeBranch));
        branchCols_.add(branchColName_);
        branchCols_.add(branchColActivated_);
        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()
 {
        if (branchsel_->get_selected() == branchliststore_->children().end())
index 1b40ce04d85d881f73c2e47c0afd4ad364e9383a..e3c34cbc91ce7d91ffa1b0f38b154c00e57d599a 100644 (file)
@@ -148,6 +148,7 @@ private:
        Glib::RefPtr<Gtk::ListStore> branchliststore_;
        Glib::RefPtr<Gtk::TreeSelection> branchsel_;
        void addBranch();
+       void removeBranch();
        void branchSelChanged();
        // *** End "Branches" Page ***
 
index 82b86b7d4e2ef583f9551be024196795c469645d..5d274314d6408c4aa9cb3ff0bdbfbade021b5081 100644 (file)
@@ -16,7 +16,6 @@
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
   <property name="focus_on_map">True</property>
-  <property name="urgency_hint">False</property>
   <property name="has_separator">False</property>
 
   <child internal-child="vbox">
                        <widget class="GtkRadioButton" id="DocumentDefault">
                          <property name="visible">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="relief">GTK_RELIEF_NORMAL</property>
                          <property name="focus_on_click">True</property>
          </child>
 
          <child>
-           <widget class="GtkScrolledWindow" id="scrolledwindow2">
+           <widget class="GtkVBox" id="vbox30">
              <property name="border_width">12</property>
              <property name="visible">True</property>
-             <property name="can_focus">True</property>
-             <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</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>
+             <property name="homogeneous">False</property>
+             <property name="spacing">6</property>
+
+             <child>
+               <widget class="GtkLabel" id="label75">
+                 <property name="visible">True</property>
+                 <property name="label" translatable="yes">&lt;i&gt;Text entered here will be interpreted as LaTeX markup before the main text.  Please see the &lt;i&gt;Extended Features&lt;/i&gt; manual for more information.&lt;/i&gt;</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="GtkTextView" id="Preamble">
+               <widget class="GtkScrolledWindow" id="scrolledwindow2">
                  <property name="visible">True</property>
                  <property name="can_focus">True</property>
-                 <property name="editable">True</property>
-                 <property name="overwrite">False</property>
-                 <property name="accepts_tab">True</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>
+                 <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</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>
+                   <widget class="GtkTextView" id="Preamble">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="editable">True</property>
+                     <property name="overwrite">False</property>
+                     <property name="accepts_tab">True</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>
+               <packing>
+                 <property name="padding">0</property>
+                 <property name="expand">True</property>
+                 <property name="fill">True</property>
+               </packing>
              </child>
            </widget>
            <packing>