Key alignment and spacing

Align RH edge of keys and maintain a uniform key spacing when the keyboard is resized

Signed-off-by: Ray-V <ray-v@inbox.lv>
pull/9/head
Ray-V 4 years ago
parent 95b50f9473
commit a3d17bf958

@ -73,7 +73,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
//TQString k4s=">ZXCVBNM";
unsigned int kc4[R4LEN] = {94,52,53,54,55,56,57,58};//59,60,61};
int stx=16;
int stx=15;
int sty=15;
extent_visible=false;
@ -409,7 +409,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
t->start ( 500, FALSE );
int padx= 553;
int padx= 554;
TQString txt[9] = { TQString::fromUtf8("H\u2190"), TQString::fromUtf8(""), TQString::fromUtf8("P\u2191"),
TQString::fromUtf8(""), " ", TQString::fromUtf8(""),
TQString::fromUtf8("E\u2192"), TQString::fromUtf8(""), TQString::fromUtf8("P\u2193") };
@ -596,7 +596,7 @@ void MainWidget::restorePosition()
TQDesktopWidget *desktop = TQApplication::desktop();
TQRect screen_geom = desktop->screenGeometry();
int d_width=552;
int d_width=553;
int d_height=235;
TQRect dflt_geom(screen_geom.width()-d_width,screen_geom.height()-d_height,d_width,d_height);
@ -642,10 +642,10 @@ void MainWidget::resizeEvent(TQResizeEvent * e)
if (extent_visible){
sdxb = width();
sdxs = width() - (width() * (150.0/702.0));
VButton::pw=702.0;
sdxs = width() - (width() * (150.0/703.0));
VButton::pw=703.0;
VButton::ph=235.0;
setMinimumSize(702/3,235/3);
setMinimumSize(703/3,235/3);
}
else{
sdxs = width();
@ -689,7 +689,7 @@ void MainWidget::updateFont()
fnt.setWeight(TQFont::Bold);
//double rs = (100.0/700.0)*width();
if (extent_visible) {
rp = (11.0/600.0)*width() * (552.0/702.0); }
rp = (11.0/600.0)*width() * (552.0/703.0); }
else {
rp = (11.0/600.0)*width(); }
//fnt.setStretch(rs);
@ -1799,7 +1799,7 @@ struct codepair {
{ 0x13bd, 0x0153 }, /* oe œ LATIN SMALL LIGATURE OE */
{ 0x13be, 0x0178 }, /* Ydiaeresis Ÿ LATIN CAPITAL LETTER Y WITH DIAERESIS */
{ 0x20ac, 0x20ac }, /* EuroSign € EURO SIGN */
{ 0xfe50, 0x0060 }, /* dead_grave \` */
{ 0xfe50, 0x0060 }, /* dead_grave ` */
{ 0xfe51, 0x00b4 }, /* dead_acute ´ */
{ 0xfe52, 0x02c6 }, /* dead_circumflex ˆ */
{ 0xfe53, 0x02dc }, /* dead_tilde ˜ small tilde */

Loading…
Cancel
Save