+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]:
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());
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);
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);
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
// 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.");
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
--------------------
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
+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>
* Copyright 1995-2001 The LyX Team.
*
* \author Baruch Even
- * \author Herbert Voss <voss@lyx.org>
+ * \author Herbert Voss
*
* ================================================= */
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)
if (rotateAngle != 0.0)
os << "\trotateAngle " << rotateAngle << '\n';
- if (rotateOrigin != "leftBaseline")
+ if (!rotateOrigin.empty())
os << "\trotateOrigin " << rotateOrigin << '\n';
if (subcaption)
os << "\tsubcaption\n";