"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/FontDialog.cpp" between
xfe-1.42.tar.gz and xfe-1.43.tar.gz

About: Xfe (X File Explorer) is a file manager and browser (using the FOX toolkit).

FontDialog.cpp  (xfe-1.42):FontDialog.cpp  (xfe-1.43)
// Font dialog. Taken from the FOX library and only modified for translation pur pose // Font dialog. Taken from the FOX library and only modified for translation pur pose
#include "config.h" #include "config.h"
#include "i18n.h" #include "i18n.h"
#include <fx.h> #include <fx.h>
#include "xfedefs.h"
#include "xfeutils.h" #include "xfeutils.h"
#include "FontDialog.h" #include "FontDialog.h"
// Map // Map
FXDEFMAP(FontSelector) FontSelectorMap[] = FXDEFMAP(FontSelector) FontSelectorMap[] =
{ {
FXMAPFUNC(SEL_COMMAND, FontSelector::ID_FAMILY, FontSelector::onCmdFamily), FXMAPFUNC(SEL_COMMAND, FontSelector::ID_FAMILY, FontSelector::onCmdFamily),
FXMAPFUNC(SEL_COMMAND, FontSelector::ID_WEIGHT, FontSelector::onCmdWeight), FXMAPFUNC(SEL_COMMAND, FontSelector::ID_WEIGHT, FontSelector::onCmdWeight),
FXMAPFUNC(SEL_COMMAND, FontSelector::ID_SIZE, FontSelector::onCmdSize), FXMAPFUNC(SEL_COMMAND, FontSelector::ID_SIZE, FontSelector::onCmdSize),
FXMAPFUNC(SEL_COMMAND, FontSelector::ID_SIZE_TEXT, FontSelector::onCmdSizeTe xt), FXMAPFUNC(SEL_COMMAND, FontSelector::ID_SIZE_TEXT, FontSelector::onCmdSizeTe xt),
skipping to change at line 151 skipping to change at line 152
allfonts = new FXCheckButton(attributes, _("All Fonts:"), this, ID_ALLFONTS, JUSTIFY_NORMAL|TEXT_BEFORE_ICON|LAYOUT_CENTER_Y|LAYOUT_FILL_COLUMN); allfonts = new FXCheckButton(attributes, _("All Fonts:"), this, ID_ALLFONTS, JUSTIFY_NORMAL|TEXT_BEFORE_ICON|LAYOUT_CENTER_Y|LAYOUT_FILL_COLUMN);
// Preview // Preview
FXVerticalFrame* bottom = new FXVerticalFrame(this, LAYOUT_SIDE_BOTTOM|LAYOU T_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, DEFAULT_SPACING, DEFAULT_SPACING, DEFAULT_SP ACING, DEFAULT_SPACING, 0, 0); FXVerticalFrame* bottom = new FXVerticalFrame(this, LAYOUT_SIDE_BOTTOM|LAYOU T_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, DEFAULT_SPACING, DEFAULT_SPACING, DEFAULT_SP ACING, DEFAULT_SPACING, 0, 0);
new FXLabel(bottom, _("Preview:"), NULL, JUSTIFY_LEFT|LAYOUT_FILL_X); new FXLabel(bottom, _("Preview:"), NULL, JUSTIFY_LEFT|LAYOUT_FILL_X);
FXHorizontalFrame* box = new FXHorizontalFrame(bottom, LAYOUT_FILL_X|LAYOUT_ FILL_Y|FRAME_THICK, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); FXHorizontalFrame* box = new FXHorizontalFrame(bottom, LAYOUT_FILL_X|LAYOUT_ FILL_Y|FRAME_THICK, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
FXScrollWindow* scroll = new FXScrollWindow(box, LAYOUT_FILL_X|LAYOUT_FIL L_Y); FXScrollWindow* scroll = new FXScrollWindow(box, LAYOUT_FILL_X|LAYOUT_FIL L_Y);
preview = new FXLabel(scroll, "ABCDEFGHIJKLMNOPQRSTUVWXYZ\nabcdefghijklmnopq rstuvwxyz\n0123456789", NULL, JUSTIFY_CENTER_X|JUSTIFY_CENTER_Y); preview = new FXLabel(scroll, "ABCDEFGHIJKLMNOPQRSTUVWXYZ\nabcdefghijklmnopq rstuvwxyz\n0123456789", NULL, JUSTIFY_CENTER_X|JUSTIFY_CENTER_Y);
preview->setBackColor(getApp()->getBackColor()); preview->setBackColor(getApp()->getBackColor());
strlcpy(selected.face, "Helvetica", sizeof(selected.face)+1); FXString fontname = FXString(DEFAULT_NORMAL_FONT);
strlcpy(selected.face, fontname.before(',').text(), sizeof(selected.face)+1)
;
selected.size = 90; selected.size = 90;
selected.weight = FXFont::Bold; selected.weight = FXFont::Bold;
selected.slant = 0; selected.slant = 0;
selected.encoding = FONTENCODING_USASCII; selected.encoding = FONTENCODING_USASCII;
selected.setwidth = 0; selected.setwidth = 0;
selected.flags = 0; selected.flags = 0;
previewfont = NULL; previewfont = NULL;
} }
// List the fonts when created // List the fonts when created
 End of changes. 2 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)