File: paramcons.h

package info (click to toggle)
clonalorigin 1.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,800 kB
  • sloc: cpp: 10,488; perl: 349; xml: 130; makefile: 48; sh: 33
file content (30 lines) | stat: -rw-r--r-- 740 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef PARAMCONS_H
#define PARAMCONS_H
//
#include "paramqt.h"
#include "densityontree.h"
//
class ParamCons  : public ParamQt
{
public:
	ParamCons();
	virtual ~ParamCons();
	void account(int id=-1,bool getto=true);
	void reset();
	void accountrelative(int id=-1,bool getto=true);
	void display(QPaintDevice * qpd);

	inline void set() 
	{
	isSet=true;
	dp->smooth();dm->smooth();
	}
	inline void incrTimeScale() {QMessageBox::about(0, "Information","Can't change scale while looking at rates.");};
	inline void decrTimeScale() {QMessageBox::about(0, "Information","Can't change scale while looking at rates.");}; 
protected:
	int its;
	bool isSet;
	DensityOnTree * dp;///<Density of gain
	DensityOnTree * dm;///<Density of loss
};
#endif