]> git.lyx.org Git - features.git/commitdiff
Small fix to KDE FormCitation
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 12 Sep 2000 17:25:44 +0000 (17:25 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 12 Sep 2000 17:25:44 +0000 (17:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1012 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
lib/configure
po/POTFILES.in
src/frontends/kde/FormCitation.C

index 1b094a750ba25f630dcc877aa5e5949daf0f15f2..c9f1d6914244961d7efc7e28c24540f6a8114f23 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,25 +1,29 @@
 2000-09-11  John Levon  <moz@compsoc.man.ac.uk>
 
-        * src/frontends/kde/formurldialog.C
-        * src/frontends/kde/formurldialog.h
-        * src/frontends/kde/FormUrl.C
-        * src/frontends/kde/FormUrl.h: minor cleanups
-        
-        * src/frontends/kde/QtLyXView: wrapper to avoid Qt namespace mangling
-
-        * src/frontends/kde/Makefile.am
-        * src/frontends/kde/FormToc.C
-        * src/frontends/kde/FormToc.h
-        * src/frontends/kde/FormCitation.C
-        * src/frontends/kde/FormCitation.h
-        * src/frontends/kde/FormIndex.C
-        * src/frontends/kde/FormIndex.h
-        * src/frontends/kde/formtocdialog.C
-        * src/frontends/kde/formtocdialog.h
-        * src/frontends/kde/formcitationdialog.C
-        * src/frontends/kde/formcitationdialog.h
-        * src/frontends/kde/formindexdialog.C
-        * src/frontends/kde/formindexdialog.h: new Toc,Citation,Index dialogs
+       * src/frontends/kde/FormCitation.C: fix thinko
+       where we didn't always display the reference text
+       properly
+
+       * src/frontends/kde/formurldialog.C
+       * src/frontends/kde/formurldialog.h
+       * src/frontends/kde/FormUrl.C
+       * src/frontends/kde/FormUrl.h: minor cleanups
+
+       * src/frontends/kde/QtLyXView: wrapper to avoid Qt namespace mangling
+
+       * src/frontends/kde/Makefile.am
+       * src/frontends/kde/FormToc.C
+       * src/frontends/kde/FormToc.h
+       * src/frontends/kde/FormCitation.C
+       * src/frontends/kde/FormCitation.h
+       * src/frontends/kde/FormIndex.C
+       * src/frontends/kde/FormIndex.h
+       * src/frontends/kde/formtocdialog.C
+       * src/frontends/kde/formtocdialog.h
+       * src/frontends/kde/formcitationdialog.C
+       * src/frontends/kde/formcitationdialog.h
+       * src/frontends/kde/formindexdialog.C
+       * src/frontends/kde/formindexdialog.h: new Toc,Citation,Index dialogs
 
 2000-09-12  Juergen Vigna  <jug@sad.it>
 
 
 2000-08-15  Kayvan A. Sylvan <kayvan@sylvan.com>
 
-               * src/frontend/Makefile.am: Add gnome and kde to dist tar file.
+       * src/frontend/Makefile.am: Add gnome and kde to dist tar file.
 
 2000-08-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
 
        * src/lyxfunc.C (Dispatch) : modified to accomodate new FormToc class
        and modified InsetTOC class
-       * src/buffer.C: ditto            
+       * src/buffer.C: ditto
 
        * forms/lyx.fd: strip out old FD_form_toc code
        * src/lyx_gui_misc.C: ditto
        * src/lyx_gui.C: ditto
        * src/lyx_cb.C: ditto
        * src/lyx.[Ch]: ditto
-                         
 2000-08-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
        * src/support/utility.hpp: tr -d '\r'
 2000-07-31  Baruch Even <baruch.even@writeme.com>
 
        * src/frontends/Dialogs.h: Added showGraphics signals.
-    
+
        * src/frontends/xforms/forms/form_graphics.fd: Added file, the
-                   xforms form definition of the graphics dialog.
+       xforms form definition of the graphics dialog.
 
        * src/frontends/xforms/FormGraphics.h: 
        * src/frontends/xforms/FormGraphics.C: Added files, the
        GUIndependent code of InsetGraphics
-    
+
        * src/insets/insetgraphics.h: 
        * src/insets/insetgraphics.C: Major writing to make it work.
 
        * development/lyx.spec.in
        * Makefile.am: Fix buglet for LyX RPM generation resulting from
        file/directory re-organization.
-                
+
 2000-07-26  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * src/insets/insetcommand.[Ch]: moved the string data and
 
        * config/lyxinclude.m4: added --with-frontend[=value] option value
        for Gtk/Gnome frontend-GUI support.
-                            
+
 2000-07-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
        * src/support/lstrings.C (prefixIs): rewrite so that gcc bastring
        * src/mathed/math_symbols.C (math_insert_greek): Changed to use
        LocalDispatch(..,LFUN_SELFINSERT,..) instead of math_insert_symbol().
        Also changed the prototype to "bool math_insert_greek(char)".
-                                                                       
+   
 2000-07-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
        * lots of files: apply the NEW_INSETS on all code that will not be
 2000-07-08  Dekel Tsur  <dekel@math.tau.ac.il>
 
        * src/WorkArea.C  (request_clipboard_cb): Set clipboard_read to
-        true when clipboard is empty.
-                                        
+       true when clipboard is empty.
+
 2000-07-08  Dekel Tsur  <dekel@math.tau.ac.il>
 
        * text.C (Backspace): Prevent rebreaking of a row if it is the last
        (set_font_norm_type): New method.
 
        * src/paragraph.C (TeXOnePar): Put "\inputencoding{}" between
-       paragraphs with different encodings.                          
+       paragraphs with different encodings.  
 
        * src/text.C (is_arabic, is_nikud, TransformChar): Moved to encoding.C
        (TransformChar): Changed to work correctly with Arabic points.
        * src/lyxparagraph.h
 
        * src/paragraph.C: Changed fontlist to a sorted vector.
-                                         
 2000-06-19  Juergen Vigna  <jug@sad.it>
 
        * src/BufferView.h: added screen() function.
        
        * src/trans_mgr.C (insertVerbatim): Do not use insetquote when the
        text is Hebrew.
-                             
 2000-05-27  Dekel Tsur  <dekel@math.tau.ac.il>
 
        * src/text.C (draw): draw bars under foreign language words.
        
        * src/LColor.[Ch]: add LColor::language
-                            
+
 2000-05-27 Dekel Tsur  <dekel@math.tau.ac.il>
 
        * src/lyxcursor.h (boundary): New member variable
        * src/layout_forms.C (create_form_form_character)
        * src/lyx_cb.C (UserFreeFont)
        * src/lyx_gui.C (create_forms): Added GUI support for multi-lingual
-       documents (in the layout->character popup).
+       documents (in the layout->character popup).
 
 2000-04-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * src/paragraph.C (ChangeLanguage,isMultiLingual) New methods.
 
        * A lot of files: A rewrite of the Right-to-Left support.
-                                                                           
+   
 2000-04-10  Juergen Vigna  <jug@sad.it>
 
        * src/BufferView2.C (showLockedInsetCursor): small bugfix for
index a0becb63fd82e5738b748a3ab8c05f0ccbee4318..5667f4285520eabbbd807e364c7ba12e043077b9 100755 (executable)
@@ -954,7 +954,7 @@ cat >lyxrc.defaults <<EOF
 \\converter docbook dvi "$docbook_to_dvi_command" ""
 \\converter docbook html "$docbook_to_html_command" ""
 \\converter tex html "$latex_to_html_command"
-       originaldir
+       "originaldir,needaux"
 
 \\viewer dvi "$DVI_VIEWER"
 \\viewer html "$HTML_VIEWER"
index cbb285bdd0f3ac626634a030f326daac86dff2d9..f4fe983d119d8d9c6788b4328c904f241fe3970e 100644 (file)
@@ -31,7 +31,13 @@ src/form1.C
 src/frontends/gnome/FormCitation.C
 src/frontends/gnome/FormPrint.C
 src/frontends/gnome/FormToc.C
+src/frontends/kde/FormCitation.C
+src/frontends/kde/formcitationdialog.C
 src/frontends/kde/FormCopyright.C
+src/frontends/kde/FormIndex.C
+src/frontends/kde/formindexdialog.C
+src/frontends/kde/FormToc.C
+src/frontends/kde/formtocdialog.C
 src/frontends/kde/FormUrl.C
 src/frontends/kde/formurldialog.C
 src/frontends/xforms/FormCitation.C
index 76445d50fc043fbbddff3c119d159d35de94a1d7..6abf6726431ad784b2c89f47f59735410dbfd343 100644 (file)
@@ -268,8 +268,9 @@ void FormCitation::up()
        // Qt will select the first one on redo, so we need this 
        string tmp = selectedChosenKey;
  
-       for (vector< string >::iterator iter = chosenkeys.begin();
-               iter != chosenkeys.end(); ++iter) {
+       vector< string >::iterator iter = chosenkeys.begin();
+
+       for (; iter != chosenkeys.end(); ++iter) {
                if (*iter==selectedChosenKey && iter!=chosenkeys.begin()) {
                        string tmp = *iter;
                        chosenkeys.erase(iter);
@@ -293,8 +294,9 @@ void FormCitation::down()
        // Qt will select the first one on redo, so we need this 
        string tmp = selectedChosenKey;
  
-       for (vector< string >::iterator iter = chosenkeys.begin();
-               iter != chosenkeys.end(); ++iter) {
+       vector< string >::iterator iter = chosenkeys.begin();
+
+       for (; iter != chosenkeys.end(); ++iter) {
                if (*iter==selectedChosenKey && (iter+1)!=chosenkeys.end()) {
                        string tmp = *iter;
                        chosenkeys.erase(iter);
@@ -339,9 +341,11 @@ void FormCitation::highlight_chosen(const char *key)
        selectedChosenKey = key;
  
        unsigned int i;
+
        for (i=0; i < keys.size(); i++) {
-               if (keys[i].first==key && keys[i].second.compare(dialog_->entry->text())) {
-                       dialog_->entry->setText(keys[i].second.c_str());
+               if (keys[i].first==key) {
+                       if (keys[i].second.compare(dialog_->entry->text()))
+                               dialog_->entry->setText(keys[i].second.c_str());
                        break;
                }
        }