]> git.lyx.org Git - features.git/commitdiff
Rob's latest and greatest dialog tweaking.
authorAngus Leeming <leeming@lyx.org>
Thu, 12 Sep 2002 08:44:23 +0000 (08:44 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 12 Sep 2002 08:44:23 +0000 (08:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5282 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormGraphics.C
src/frontends/xforms/forms/form_citation.fd
src/frontends/xforms/forms/form_graphics.fd
src/frontends/xforms/forms/form_print.fd
src/frontends/xforms/forms/form_ref.fd
src/frontends/xforms/forms/form_url.fd
src/insets/ChangeLog
src/insets/insetgraphicsParams.C

index 28d3ba845bfb90371c58efcc35b2eb936bdb9630..da3d6e632c0be646dbe9f11b565d1b82d4236d94 100644 (file)
@@ -1,3 +1,9 @@
+2002-09-12  Rob Lahaye  <lahaye@snu.ac.kr>
+
+       * FormGraphics.C: improve tooltips text
+
+       * forms/form_graphics.fd: cosmetic change in file tab
+
 2002-09-12  Rob Lahaye  <lahaye@snu.ac.kr>
  
        * FormPrint.[Ch]:
index 5413fc8dc7e4165b254aded6f09651c89d997efc..8a29930378b23f20bd9f5d221c27dd86a861fe68 100644 (file)
@@ -100,11 +100,10 @@ void FormGraphics::build()
        fl_set_input_maxchars(file_->input_filename, FILENAME_MAXCHARS);
        fl_set_input_filter(file_->input_lyxscale, fl_unsigned_int_filter);
 
-        // width default is scaling, thus unsigned integer input
+       // width default is scaling, thus unsigned integer input
        fl_set_input_filter(file_->input_width, fl_unsigned_int_filter);
        fl_set_input_maxchars(file_->input_height, SIZE_MAXDIGITS);
-
-
+       
        string const display_List = _("Default|Monochrome|Grayscale|Color|Do not display");
        fl_addto_choice(file_->choice_display, display_List.c_str());
        
@@ -124,14 +123,14 @@ void FormGraphics::build()
        str = _("Browse the directories.");
        tooltips().init(file_->button_browse, str);
 
-       str = _("Scale the image to inserted percentage value");
+       str = _("Scale the image to inserted percentage value.");
        tooltips().init(file_->input_lyxscale, str);
        str = _("Select display mode for this image.");
        tooltips().init(file_->choice_display, str);
 
        str = _("Set the image width to the inserted value.");
        tooltips().init(file_->input_width, str);
-       str = _("Select unit for width; Scale% for scaling whole image");
+       str = _("Select unit for width; Scale% for scaling whole image.");
        tooltips().init(file_->choice_width, str);
        str = _("Set the image height to the inserted value.");
        tooltips().init(file_->input_height, str);
@@ -142,7 +141,7 @@ void FormGraphics::build()
        tooltips().init(file_->check_aspectratio, str);
 
        str = _("Pass a filename like \"file.eps.gz\" to the LaTeX output. "
-           "This is useful when LaTeX should unzip the file. Needs an additional file "
+           "Useful when LaTeX should unzip the file. Needs an additional file "
            "like \"file.eps.bb\" which holds the values for the bounding box.");
        tooltips().init(file_->check_nounzip, str);
 
@@ -185,11 +184,10 @@ void FormGraphics::build()
 
        str = _("Read the image coordinates new from file. If it's an (e)ps-file "
                "then the bounding box is read otherwise the imagesize in pixels. "
-               "The default unit is \"bp\", the PostScript's b(ig) p(oint).");
+               "Default unit is \"bp\", the PostScript's b(ig) p(oint).");
        tooltips().init(bbox_->button_getBB, str);
 
-       str = _("Enable this checkbox when the image should be clipped to the "
-               "bounding box values.");
+       str = _("Clip image to the bounding box values.");
        tooltips().init(bbox_->check_clip, str);
 
        // the extra section
@@ -218,13 +216,13 @@ void FormGraphics::build()
 
        // set up the tooltips for the extra section
        str = _("Insert the rotation angle in degrees. "
-               "Positive value rotates anti-clockwise, negative value clockwise");
+               "Positive value rotates anti-clockwise, negative value clockwise.");
        tooltips().init(extra_->input_rotate_angle, str);
-       str = _("Insert the point of origin for rotation ");
+       str = _("Insert the point of origin for rotation.");
        tooltips().init(extra_->choice_origin, str);
        str = _("Enables use of subfigure with its own caption.");
        tooltips().init(extra_->check_subcaption, str);
-       str = _("Insert the optional subfigure caption");
+       str = _("Insert the optional subfigure caption.");
        tooltips().init(extra_->input_subcaption, str);
        str = _("Add any additional latex option, which is defined in the "
                 "graphicx-package and not mentioned in the gui's tabfolders.");
index 75b83146787a33c1050038ce413a0247cec02555..c3e07d4554642cce9c3f44c7df93d65254284d4e 100644 (file)
@@ -214,7 +214,7 @@ argument:
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 360 60 25 25
+box: 360 60 170 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
 alignment: FL_ALIGN_CENTER
@@ -232,7 +232,7 @@ argument:
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 360 90 25 25
+box: 360 90 170 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
 alignment: FL_ALIGN_CENTER
@@ -304,10 +304,10 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 365 245 25 25
+box: 365 245 200 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_RIGHT
+alignment: FL_ALIGN_CENTER
 style: FL_NORMAL_STYLE
 size: FL_NORMAL_SIZE
 lcol: FL_BLACK
@@ -322,10 +322,10 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 365 275 25 25
+box: 365 275 200 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_RIGHT
+alignment: FL_ALIGN_CENTER
 style: FL_NORMAL_STYLE
 size: FL_NORMAL_SIZE
 lcol: FL_BLACK
index 389c1d6dc5de22e9a53344d5bfb8f8891d4a233d..753a1b3888aec1aa84247ae04ab9be73e1c1c7d6 100644 (file)
@@ -238,10 +238,10 @@ argument:
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 265 135 25 25
+box: 265 135 155 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_RIGHT
+alignment: FL_ALIGN_CENTER
 style: FL_NORMAL_STYLE
 size: FL_NORMAL_SIZE
 lcol: FL_BLACK
@@ -256,10 +256,10 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 265 165 25 25
+box: 265 165 155 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_RIGHT
+alignment: FL_ALIGN_CENTER
 style: FL_NORMAL_STYLE
 size: FL_NORMAL_SIZE
 lcol: FL_BLACK
@@ -292,7 +292,7 @@ argument: 0
 --------------------
 class: FL_INPUT
 type: NORMAL_INPUT
-box: 95 135 70 25
+box: 95 140 70 25
 boxtype: FL_DOWN_BOX
 colors: FL_COL1 FL_MCOL
 alignment: FL_ALIGN_LEFT
@@ -310,7 +310,7 @@ argument: 0
 --------------------
 class: FL_CHOICE
 type: NORMAL_CHOICE
-box: 165 135 60 25
+box: 165 140 60 25
 boxtype: FL_FRAME_BOX
 colors: FL_COL1 FL_BLACK
 alignment: FL_ALIGN_LEFT
@@ -328,7 +328,7 @@ argument: 0
 --------------------
 class: FL_CHOICE
 type: NORMAL_CHOICE
-box: 165 165 60 25
+box: 165 170 60 25
 boxtype: FL_FRAME_BOX
 colors: FL_COL1 FL_BLACK
 alignment: FL_ALIGN_LEFT
@@ -346,10 +346,10 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 95 200 25 25
+box: 70 200 190 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_RIGHT
+alignment: FL_ALIGN_CENTER
 style: FL_NORMAL_STYLE
 size: FL_NORMAL_SIZE
 lcol: FL_BLACK
@@ -364,7 +364,7 @@ argument: 0
 --------------------
 class: FL_INPUT
 type: NORMAL_INPUT
-box: 95 165 70 25
+box: 95 170 70 25
 boxtype: FL_DOWN_BOX
 colors: FL_COL1 FL_MCOL
 alignment: FL_ALIGN_LEFT
@@ -568,10 +568,10 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 45 165 25 25
+box: 45 165 200 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_RIGHT
+alignment: FL_ALIGN_CENTER
 style: FL_NORMAL_STYLE
 size: FL_NORMAL_SIZE
 lcol: FL_BLACK
@@ -700,10 +700,10 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 5 105 25 25
+box: 5 105 110 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_RIGHT
+alignment: FL_ALIGN_CENTER
 style: FL_NORMAL_STYLE
 size: FL_NORMAL_SIZE
 lcol: FL_BLACK
index 024f39a8b5c7aba192da657059963ee571e98b27..6987c5d7f4bc4aa03416f1b8acded69b3f77d17f 100644 (file)
@@ -160,7 +160,7 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 175 265 25 25
+box: 175 265 100 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
 alignment: FL_ALIGN_CENTER
@@ -214,7 +214,7 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 5 305 25 25
+box: 5 305 200 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
 alignment: FL_ALIGN_CENTER
@@ -291,7 +291,7 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 10 210 25 25
+box: 10 210 100 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
 alignment: FL_ALIGN_CENTER
@@ -309,7 +309,7 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 110 210 25 25
+box: 110 210 100 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
 alignment: FL_ALIGN_CENTER
@@ -417,7 +417,7 @@ argument:
 --------------------
 class: FL_ROUND3DBUTTON
 type: RADIO_BUTTON
-box: 10 140 25 25
+box: 10 140 100 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
 alignment: FL_ALIGN_CENTER
@@ -435,7 +435,7 @@ argument: 0
 --------------------
 class: FL_ROUND3DBUTTON
 type: RADIO_BUTTON
-box: 10 170 25 25
+box: 10 170 100 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
 alignment: FL_ALIGN_CENTER
index 1617b29a1240fe069f28ce0f93b77f359e1a6934..431c224eb86b65a482c9357c368348376e7525ea 100644 (file)
@@ -70,10 +70,10 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 5 155 25 25
+box: 5 155 100 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_RIGHT
+alignment: FL_ALIGN_CENTER
 style: FL_NORMAL_STYLE
 size: FL_NORMAL_SIZE
 lcol: FL_BLACK
index 5a8bf4cad23c258d76919348350bb15624baacc8..88f11501f84aa384b5287d4bbb204aafde5da18a 100644 (file)
@@ -70,10 +70,10 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 70 5 25 25
+box: 70 5 320 25
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_RIGHT
+alignment: FL_ALIGN_CENTER
 style: FL_NORMAL_STYLE
 size: FL_NORMAL_SIZE
 lcol: FL_BLACK
index 6323ac98dba5f4c37e284c285b2e2ae41c3b0e9f..77c05d51f6be1b183d50f34645548ea5fc68a5ab 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-12  Rob Lahaye  <lahaye@snu.ac.kr>
+
+       * insetgraphicsParams.C: use empty string as default for rotateOrigin
+
+2002-09-10  Rob Lahaye  <lahaye@snu.ac.kr>
+
+       * insetgraphicsParams.C: use empty string as default for rotateOrigin
 
 2002-09-11  André Pönitz <poenitz@gmx.net>
 
index 59e8269d03aab499704fbc90317d81de5770895c..e9fcd3dc909f47394a6f3aa57c1de2857f6749a8 100644 (file)
@@ -6,7 +6,7 @@
  *          Copyright 1995-2001 The LyX Team.
  *
  * \author Baruch Even
- * \author Herbert Voss <voss@lyx.org>
+ * \author Herbert Voss
  *
  * ================================================= */
 
@@ -56,24 +56,24 @@ InsetGraphicsParams::operator=(InsetGraphicsParams const & params)
 
 void InsetGraphicsParams::init()
 {
-       subcaptionText = filename = string();
+       filename.erase();
        lyxscale = 100;                 // lyx scaling in percentage
-       display = grfx::DefaultDisplay; // see pref
+       display = grfx::DefaultDisplay; // display mode; see preferences
        scale = 100;                    // output scaling in percentage
        width = LyXLength();
        height = LyXLength();
-       keepAspectRatio = false;        // for latex
+       keepAspectRatio = false;        // for LaTeX output
        draft = false;                  // draft mode
        noUnzip = false;                // unzip files
 
        bb = string();                  // bounding box
        clip = false;                   // clip image
 
-       rotateOrigin = "leftBaseline";  // Origin
-       rotateAngle = 0.0;              // in degrees
+       rotateAngle = 0.0;              // angle of rotation in degrees
+       rotateOrigin.erase();           // Origin of rotation
        subcaption = false;             // subfigure
-       subcaptionText = string();      // subfigure caption
-       special = string();             // userdefined stuff
+       subcaptionText.erase();         // subfigure caption
+       special.erase();                // additional userdefined stuff
 }
 
 void InsetGraphicsParams::copy(InsetGraphicsParams const & igp)
@@ -167,7 +167,7 @@ void InsetGraphicsParams::Write(ostream & os) const
 
        if (rotateAngle != 0.0)
                os << "\trotateAngle " << rotateAngle << '\n';
-       if (rotateOrigin != "leftBaseline")
+       if (!rotateOrigin.empty())
                os << "\trotateOrigin " << rotateOrigin << '\n';
        if (subcaption)
                os << "\tsubcaption\n";