forked from Sline44700/engset-model-counter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
42 lines (34 loc) · 881 Bytes
/
mainwindow.h
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
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "dialog.h"
#include <algorithm>
#include <vector>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
// double countCombination(double a, double n, int k);
QVector <double> countPk(double a, double n, int k);
double countPv(double a, double n, int k);
private slots:
void on_pushButton_clicked();
void on_label_7_linkActivated(const QString &link);
void on_a_valueChanged(double arg1);
void on_v_valueChanged(int arg1);
void on_n_valueChanged(int arg1);
void on_m_valueChanged(int arg1);
void changeStyle(int n);
void refreshGraph();
void on_comboBox_currentIndexChanged(int index);
private:
Ui::MainWindow *ui;
Dialog *d;
int style = 0;
};
#endif // MAINWINDOW_H