"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Properties.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).

Properties.cpp  (xfe-1.42):Properties.cpp  (xfe-1.43)
skipping to change at line 667 skipping to change at line 667
FXMatrix* mtmatrix = new FXMatrix(mtgroup, 2, MATRIX_BY_COLUMNS|LAYOUT _FILL_X|LAYOUT_FILL_Y); FXMatrix* mtmatrix = new FXMatrix(mtgroup, 2, MATRIX_BY_COLUMNS|LAYOUT _FILL_X|LAYOUT_FILL_Y);
new FXLabel(mtmatrix, _("Mount type:"), NULL, LAYOUT_LEFT|JUSTIFY_LEFT); new FXLabel(mtmatrix, _("Mount type:"), NULL, LAYOUT_LEFT|JUSTIFY_LEFT);
fileType = new FXLabel(mtmatrix, FXString::null, NULL, LAYOUT_LEFT|LAYOU T_FILL_COLUMN|JUSTIFY_LEFT); fileType = new FXLabel(mtmatrix, FXString::null, NULL, LAYOUT_LEFT|LAYOU T_FILL_COLUMN|JUSTIFY_LEFT);
new FXLabel(mtmatrix, _("Used:"), NULL, LAYOUT_LEFT); new FXLabel(mtmatrix, _("Used:"), NULL, LAYOUT_LEFT);
mtUsed = new FXLabel(mtmatrix, FXString::null, NULL, LAYOUT_LEFT|LAYOUT_ FILL_COLUMN|JUSTIFY_LEFT); mtUsed = new FXLabel(mtmatrix, FXString::null, NULL, LAYOUT_LEFT|LAYOUT_ FILL_COLUMN|JUSTIFY_LEFT);
new FXLabel(mtmatrix, _("Free:"), NULL, LAYOUT_LEFT); new FXLabel(mtmatrix, _("Free:"), NULL, LAYOUT_LEFT);
mtFree = new FXLabel(mtmatrix, FXString::null, NULL, LAYOUT_LEFT|LAYOUT_ FILL_COLUMN|JUSTIFY_LEFT); mtFree = new FXLabel(mtmatrix, FXString::null, NULL, LAYOUT_LEFT|LAYOUT_ FILL_COLUMN|JUSTIFY_LEFT);
new FXLabel(mtmatrix, _("File system:"), NULL, LAYOUT_LEFT); new FXLabel(mtmatrix, _("File system:"), NULL, LAYOUT_LEFT);
mtType = new FXLabel(mtmatrix, FXString::null, NULL, LAYOUT_LEFT|LAYOUT_ FILL_COLUMN|JUSTIFY_LEFT); mtType = new FXLabel(mtmatrix, FXString::null, NULL, LAYOUT_LEFT|LAYOUT_ FILL_COLUMN|JUSTIFY_LEFT);
new FXLabel(mtmatrix, _("Location:"), NULL, LAYOUT_LEFT); new FXLabel(mtmatrix, _("Location:"), NULL, LAYOUT_LEFT);
location = new TextLabel(mtmatrix, 30, 0, 0, LAYOUT_LEFT|LAYOUT_CENTER_Y
//location=new FXText(mtmatrix,NULL,LAYOUT_FILL_X|LAYOUT_FILL_Y); // Use |LAYOUT_FILL_ROW|FRAME_NONE);
an FXText to allow long text strings location->setBackColor(getApp()->getBaseColor());
location = new FXLabel(mtmatrix, FXString::null, NULL, LAYOUT_LEFT|LAYOU
T_FILL_COLUMN|JUSTIFY_LEFT);
} }
else else
{ {
FXGroupBox* attrgroup = new FXGroupBox(generalframe, _("Properties"), GR OUPBOX_TITLE_LEFT|FRAME_GROOVE|LAYOUT_FILL_X); FXGroupBox* attrgroup = new FXGroupBox(generalframe, _("Properties"), GR OUPBOX_TITLE_LEFT|FRAME_GROOVE|LAYOUT_FILL_X);
FXMatrix* attrmatrix = new FXMatrix(attrgroup, 2, MATRIX_BY_COLUMNS|LA YOUT_FILL_X|LAYOUT_FILL_Y); FXMatrix* attrmatrix = new FXMatrix(attrgroup, 2, MATRIX_BY_COLUMNS|LA YOUT_FILL_X|LAYOUT_FILL_Y);
new FXLabel(attrmatrix, _("Type:"), NULL, LAYOUT_LEFT); new FXLabel(attrmatrix, _("Type:"), NULL, LAYOUT_LEFT);
fileType = new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_LEFT|LAY OUT_FILL_COLUMN|JUSTIFY_LEFT); fileType = new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_LEFT|LAY OUT_FILL_COLUMN|JUSTIFY_LEFT);
sizelabel = new FXLabel(attrmatrix, _("Total size:"), NULL, LAYOUT_LEFT) ; sizelabel = new FXLabel(attrmatrix, _("Total size:"), NULL, LAYOUT_LEFT) ;
fileSize = new FXLabel(attrmatrix, "\n", NULL, LAYOUT_LEFT|LAYOUT_FILL_C OLUMN|JUSTIFY_LEFT); fileSize = new FXLabel(attrmatrix, "\n", NULL, LAYOUT_LEFT|LAYOUT_FILL_C OLUMN|JUSTIFY_LEFT);
new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_LEFT|JUSTIFY_LEFT); new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_LEFT|JUSTIFY_LEFT);
fileSizeDetails = new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_L EFT|JUSTIFY_LEFT); fileSizeDetails = new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_L EFT|JUSTIFY_LEFT);
new FXLabel(attrmatrix, _("Location:"), NULL, LAYOUT_LEFT); new FXLabel(attrmatrix, _("Location:"), NULL, LAYOUT_LEFT);
location = new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_LEFT|LAY location = new TextLabel(attrmatrix, 30, 0, 0, LAYOUT_LEFT|LAYOUT_CENTER
OUT_FILL_COLUMN|JUSTIFY_LEFT); _Y|LAYOUT_FILL_ROW|FRAME_NONE);
location->setBackColor(getApp()->getBaseColor());
if (isLink & !isBrokenLink) if (isLink & !isBrokenLink)
{ {
new FXLabel(attrmatrix, _("Link to:"), NULL, LAYOUT_LEFT); new FXLabel(attrmatrix, _("Link to:"), NULL, LAYOUT_LEFT);
linkto = new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_LEFT|L AYOUT_FILL_COLUMN); linkto = new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_LEFT|L AYOUT_FILL_COLUMN);
} }
else if (isBrokenLink) else if (isBrokenLink)
{ {
new FXLabel(attrmatrix, _("Broken link to:"), NULL, LAYOUT_LEFT); new FXLabel(attrmatrix, _("Broken link to:"), NULL, LAYOUT_LEFT);
linkto = new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_LEFT|L AYOUT_FILL_COLUMN); linkto = new FXLabel(attrmatrix, FXString::null, NULL, LAYOUT_LEFT|L AYOUT_FILL_COLUMN);
skipping to change at line 764 skipping to change at line 764
if ((text.find('\n') < 0) && (text.length() > MAX_MESSAGE_LENGTH)) if ((text.find('\n') < 0) && (text.length() > MAX_MESSAGE_LENGTH))
{ {
// Insert \n in the message every MAX_MESSAGE_LENGTH chars // Insert \n in the message every MAX_MESSAGE_LENGTH chars
int nb = text.length()/MAX_MESSAGE_LENGTH; int nb = text.length()/MAX_MESSAGE_LENGTH;
for (int n = 1; n <= nb; n++) for (int n = 1; n <= nb; n++)
{ {
text.insert(n*MAX_MESSAGE_LENGTH, '\n'); text.insert(n*MAX_MESSAGE_LENGTH, '\n');
} }
} }
// Set location text
location->setNumColumns(text.length());
location->setText(text); location->setText(text);
// Referred file for valid or broken link // Referred file for valid or broken link
if (isLink) if (isLink)
{ {
linkto->setText(referredpath); linkto->setText(referredpath);
} }
// If directory // If directory
if (isDirectory) if (isDirectory)
 End of changes. 3 change blocks. 
7 lines changed or deleted 8 lines changed or added

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