"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gui/SKMapPanel.cpp" between
yudit-3.0.5.tar.gz and yudit-3.0.7.tar.gz

About: yudit is an Unicode plain-text editor that can do True Type font rendering, printing, transliterated keyboard input and handwriting recognition with no dependencies on external engines.

SKMapPanel.cpp  (yudit-3.0.5):SKMapPanel.cpp  (yudit-3.0.7)
skipping to change at line 381 skipping to change at line 381
SLocation (50, 0), SLocation (50, 0),
SLocation (100, 0) SLocation (100, 0)
) )
); );
unsigned int cx = (lbd.width * d.width) / w; unsigned int cx = (lbd.width * d.width) / w;
listBox->setLayout ( listBox->setLayout (
SLayout ( SLayout (
SLocation (0, tld.height+5), SLocation (0, tld.height+5),
SLocation (cx, d.height-10), SLocation (cx, d.height-10),
SLocation (0, 0), SLocation (0, 0),
SLocation (33, 100) SLocation (20, 100)
) )
); );
cx = cx + 2; cx = cx + 2;
replaceButton->setLayout ( replaceButton->setLayout (
SLayout ( SLayout (
SLocation (cx, d.height/2-10), SLocation (cx, d.height/2-10),
SLocation (cx + bd.width, d.height/2 + bd.height-10), SLocation (cx + bd.width, d.height/2 + bd.height-10),
SLocation (33, 50), SLocation (20, 50),
SLocation (33, 50) SLocation (20, 50)
) )
); );
cx += bd.width + 2; cx += bd.width + 2;
kmapTable->setLayout ( kmapTable->setLayout (
SLayout ( SLayout (
SLocation (cx, tld.height+5), SLocation (cx, tld.height+5),
SLocation (cx + (kd.width * d.width)/w , d.height-10), SLocation (cx + (kd.width * d.width)/w , d.height-10),
SLocation (33, 0), SLocation (20, 0),
SLocation (66, 100) SLocation (40, 100)
) )
); );
cx += (kd.width * d.width)/w + 2; cx += (kd.width * d.width)/w + 2;
sample->setLayout ( sample->setLayout (
SLayout ( SLayout (
SLocation (cx, tld.height+5), SLocation (cx, tld.height+5),
SLocation (cx + (sd.width * d.width)/w , d.height-10), SLocation (cx + (sd.width * d.width)/w , d.height-10),
SLocation (66, 0), SLocation (40, 0),
SLocation (100, 100) SLocation (100, 100)
) )
); );
/* save current */ /* save current */
SLayout goodlayout = layout; SLayout goodlayout = layout;
/* pretend we have this layout */ /* pretend we have this layout */
SPanel::forceLayout (preferredSize); SPanel::forceLayout (preferredSize);
/* accept old layout */ /* accept old layout */
skipping to change at line 459 skipping to change at line 459
} }
} }
else else
{ {
SStringVector allkv; SStringVector allkv;
SStringVector allvv; SStringVector allvv;
SEncoder enc (map); SEncoder enc (map);
if (enc.isOK()) if (enc.isOK())
{ {
more = (enc.getDecoderMap (&allkv, &allvv, 800) > 800); more = (enc.getDecoderMap (&allkv, &allvv, 2000) > 2000);
} }
unsigned int i; unsigned int i;
// put . at the end. // put . at the end.
for (i=0; i<allkv.size(); i++) { for (i=0; i<allkv.size(); i++) {
SString key = allkv[i]; SString key = allkv[i];
if (key.size() > 0 && key[0] == '.') continue; if (key.size() > 0 && key[0] == '.') continue;
kv.append (key); kv.append (key);
vv.append (allvv[i]); vv.append (allvv[i]);
} }
for (i=0; i<allkv.size(); i++) { for (i=0; i<allkv.size(); i++) {
 End of changes. 5 change blocks. 
7 lines changed or deleted 7 lines changed or added

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