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

📄 interface.h

📁 LinPacker是一个优化矩形布局的工具
💻 H
字号:
/*************************************************************************** *   Copyright (C) 2003 by ita                                             * *   tnagy@eleve.emn.fr                                                    * *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * ***************************************************************************/#include <iostream>#include <qlayout.h>#include <qcanvas.h>#include "rloc.h"#include "interface-base.h"#include <qlcdnumber.h>#include <qvaluelist.h>#include <qtable.h>#include <qprogressbar.h>#include <qprinter.h>using namespace std;class interface : public Form1{	Q_OBJECTpublic:	interface( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );	~interface();	void dessiner();	void effacer();	void trier();	void initialiserTable();	void setValeurs();	int	getNGenerations();	//void	setNGenerations(int i);		public slots:	void init();	void redessiner();	void    setNGenerations();	void	setMutations();	void	setUnChanged();	void	setCrossovers();	void filePrint();private:	Rloc *		empilement;	QHBoxLayout *	layout;	QCanvas *	canvas;	QCanvasView *	canvasview;	float	ratioHauteur;	float	ratioLargeur;	vector <QColor> couleurs;	QProgressBar * progress;	QPrinter * printer;		int	nbgenerations;		int	mutations;	int	crossovers;	int	unchanged;};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -