gwcalchis.cpp
来自「嵌入式linux下的一个高级计算器程序的源码」· C++ 代码 · 共 56 行
CPP
56 行
/* 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 "gwCalc.h"extern double CalculatorRes;//HistList::HistList(int x, int y) : QDialog (0, 0, TRUE){#ifdef ZAURUS setGeometry(0,16,240,MAINHEIGHT-90);#else setGeometry(x, y,240,MAINHEIGHT);#endif setCaption("History"); lb = new QListBox(this);#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())); lb->setGeometry(5, 5, 230, MAINHEIGHT-40);#else lb->setGeometry(5, 5, 230, MAINHEIGHT-100);#endif}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?