⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gwcalchis.cpp

📁 嵌入式linux下的一个高级计算器程序的源码
💻 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 "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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -