qCNC 0.82-alpha
/home/trilog/Desktop/project/gui/Final/src/mainwindow.h
Go to the documentation of this file.
00001 
00042 #ifndef MAINWINDOW_H
00043 #define MAINWINDOW_H
00044 
00045 #include <QMainWindow>
00046 
00047 
00048 
00049 #include "NetWork.h"
00050 #include "serial_tools.h"
00051 #include "main_ui.h"
00052 #include "TS_Extension_Dialog.h"
00053 #include "Gcode_dec.h"
00054 
00055 
00056 
00057 namespace Ui {
00058     class MainWindow;
00059 }
00060 
00061 class MainWindow : public QMainWindow
00062 {
00063     Q_OBJECT
00064 
00065 public:
00066     QString temp;
00067     int time;
00068     gcode_linkedL first;
00069     gcode_linkedL last;
00070     gcode_linkedL *gtemp;
00071     gui_settings settings;
00072     protocol returned;
00073     double maxy;
00074     double maxx;
00075     double maxz;
00076     double xscalec;
00077     double yscalec;
00078     double zscalec;
00079     int sock;
00080     int Socketconnect;
00081     int CNC_step;
00082     int CNC_mode;
00083     int pCNC_mode;
00084     int constatus;
00085     int returnV;
00086      int resend ;
00087      int read_gcode;
00088      SerialPortReader *Sconnect;
00089     explicit MainWindow(QWidget *parent = 0);
00090     ~MainWindow();
00091 
00092 
00093     void write_to_file(QString fileName, QString pstr);
00094 
00095 public slots:
00096     void setview(qint8 k);
00097     void setConnections();
00098     void about();
00099     void aboutQt();
00100     void TCPsetdiag();
00101     void set_Prog();
00102     void cncstart();
00103     void cncstop();
00104     void cncpause();
00105     void cncclear();
00106     void cncreset();
00107     void set_Serial();
00108     void debug_cntr();
00109     void debug_w_form(QString edit, QString sender, QString dest, QString msgtype);
00110     void timestamp();
00111     QString command_phase(QString edit);
00112     void custom_title_set(QString C_dev);
00113     void TCPcontrolsend(protocol CNCdat);
00114     void TCPConnect();
00115     void SerialConnect();
00116     void update_preview();
00117     void decode_gcode();
00118     void gui_mode();
00119     void file_mode();
00120     void standalone_mode();
00121     void set_mode();
00122     void Swrite();
00123 
00124 
00125 private:
00126     Ui::MainWindow *ui;
00127     virtual void timerEvent( QTimerEvent* e );
00128 };
00129 
00130 #endif // MAINWINDOW_H
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines