qt_client/mainwindow.h

140 lines
3.0 KiB
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QAbstractSocket>
#include <QMainWindow>
#include <QTcpSocket>
#include <QTimer>
#include <iostream>
#include <qsettings.h>
#include <QStringList>
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
public slots:
void start_connet();
void stop_connet();
void connected();
void send_cmd();
void receive_cmd();
void fulling();
void cmd_help();
void cmd_read();
void cmd_fpga();
void start_fpga();
void stop_fpga();
void sv17_open();
void sv17_close();
void p15_open();
void p15_close();
void p16_open();
void p16_close();
void p18_open();
void p18_close();
void p19_open();
void p19_close();
void p17_forward();
void p17_backward();
void p17_forward_ext();
void p17_backward_ext();
void p17_close();
void sv18_open();
void sv18_close();
void sv20_open();
void sv20_close();
void sv21_open();
void sv21_close();
void pump_clean();
void fast_stop();
void blue_laser_open();
void blue_laser_close();
void red_laser_open();
void red_laser_close();
void z_go_zero();
void z_go_cyto();
void z_go_ret_mov();
void water_wash();
void aco_wash();
void washliq_wash();
void info_clean();
void fpga_page_prv();
void fpga_page_nxt();
void revers_clean();
void z_go_abs_mov();
void p15_set_speed();
void rev1_set_speed();
void laser_blue_set_power_ref();
void laser_red_set_power_ref();
void rev1_close();
void rev1_open();
void open_test_data();
void close_test_data();
void sv_rev1_open();
void sv_rev1_close();
void sv_rev2_open();
void sv_rev2_close();
void sv_rev3_open();
void sv_rev3_close();
void read_onebyone();
void read_onebyone_stop();
void fsc_open();
void random_open();
void sw_test_prv();
void sw_test_next();
void fast_draw();
void fast_push();
void slow_push();
void pump_reset();
void stop_the_pump();
void fast_draw_water();
void clean_outer_pipe();
void p17_forward_1000();
void clean_pipe();
void set_time_delay();
void choose_fpga_page();
void choose_pump_page();
void write_fpga_cfg();
void read_fpga_cfg();
void wave_open();
void wave_close();
void sipm_gain_menu();
void sipm_gain_set_ssc();
void sipm_gain_set_fl1();
void sipm_gain_set_fl2();
void sipm_gain_set_fl3();
void sipm_gain_set_fl4();
void sipm_gain_set_fl5();
void sipm_gain_set_fl6();
void sipm_gain_get_ssc();
void sipm_gain_get_fl1();
void sipm_gain_get_fl2();
void sipm_gain_get_fl3();
void sipm_gain_get_fl4();
void sipm_gain_get_fl5();
void sipm_gain_get_fl6();
void show_sipm_gain(int ch, int gain);
void sipm_gain_get_one_click();
void spim_gain_set_one_click();
private:
Ui::MainWindow *ui;
QTcpSocket *tcp_socket;
QTimer *timer;
};
#define POS_250UL 32000
#define POS_UL(x) (x * POS_250UL / 250)
#define PUMP_SPEED "12000"
#define PUMP_ACCE "70000"
#endif // MAINWINDOW_H