📄 gwcalcconf.cpp
字号:
/* gwCalcHis.cpp by Dr. Gerhard Wanderer (gerhard.wanderer@i-dail.de) $Id: gwCalcHis.cpp,v 1.1 2002/12/15 20:17:14 gerhard Exp gerhard $ Pocket Calculator for the Zaurus and for Linux with QT-Library History List Popup =====================================================================*/#include <ctype.h>#include <malloc.h>#include <math.h>#include <stdio.h>#include <string.h>#include <qwidget.h>#include <qpushbutton.h>#include <qlabel.h>#include <qcombobox.h>#include "gwCalc.h"//ConfigEdit::ConfigEdit(int x, int y) : QDialog (0, 0, TRUE){#ifdef ZAURUS setGeometry(0,16,240,MAINHEIGHT-90);#else setGeometry(x, y,240,MAINHEIGHT);#endif setCaption("Configuration"); ql1 = new QLabel (this); ql1->setGeometry(10,4,80,20); ql1->setText("Resultdisplay"); fmt = new QComboBox(this); fmt->setGeometry(90, 4, 110, 20); fmt->setEditable(FALSE); fmt->setMaxCount(2); fmt->insertItem("Engineering"); fmt->insertItem("Standard"); ql2 = new QLabel (this); ql2->setGeometry(10,30,80,20); ql2->setText("Auto ANS"); an = new QComboBox(this); an->setGeometry(90, 30, 60, 20); an->setEditable(FALSE); an->setMaxCount(2); an->insertItem("Off"); an->insertItem("On"); ql3 = new QLabel (this); ql3->setGeometry(10,56,80,20); ql3->setText("Auto Highlight"); am = new QComboBox(this); am->setGeometry(90, 56, 60, 20); am->setEditable(FALSE); am->setMaxCount(2); am->insertItem("Off"); am->insertItem("On");#ifndef ZAURUS s01 = new QPushButton("Cancel", this); s01->setGeometry( 60, MAINHEIGHT-30, 60,26); s02 = new QPushButton("OK", this); s02->setGeometry(130, MAINHEIGHT-30, 55,26); s01->setFont (QFont("Helvetica", FONT10, QFont::Normal)); s02->setFont (QFont("Helvetica", FONT10, QFont::Normal)); connect (s01, SIGNAL(clicked()), this, SLOT (reject())); connect (s02, SIGNAL(clicked()), this, SLOT (accept()));#endif}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -