www.pudn.com > main04.rar > mainwindow.h, change:2016-03-31,size:1306b


#ifndef MAINWINDOW_H 
#define MAINWINDOW_H 
 
#include <QMainWindow> 
#include<QStandardItemModel> 
#include<QInputDialog> 
#include<QPen> 
 
 
namespace Ui { 
class MainWindow; 
} 
 
class MainWindow : public QMainWindow 
{ 
    Q_OBJECT 
 
public: 
    explicit MainWindow(QWidget *parent = 0); 
    ~MainWindow(); 
    void setupView(); 
    void openFile(QString); 
    // 
    void plotcurves(); 
 
    QVector<float> X,Y; 
    QVector<QVector<float>  >X_QV,Y_QV; 
private slots: 
    void on_treeView_clicked(const QModelIndex &index); 
    void treeItem_CheckChildChanged ( QStandardItem * item ); 
    void ShowMouseRightButton(const QPoint& pos); 
    void addpro(); 
    void addtree(); 
    void AddTreeItem(); 
 
 
 
 
    void on_plot_Bn_clicked(); 
 
private: 
    Ui::MainWindow *ui; 
    QStandardItemModel* model; 
    QStandardItem* getTopParent(QStandardItem* item) ; 
    QModelIndex getTopParent(QModelIndex itemIndex) ; 
 
    void treeItemChanged( QStandardItem * item ); 
    void treeItem_checkAllChild(QStandardItem * item, bool check); 
    void treeItem_checkAllChild_recursion(QStandardItem * item,bool check); 
    Qt::CheckState checkSibling(QStandardItem * item); 
    QStandardItemModel *model_table; 
public slots: 
    void slotOpen(); 
 
 
}; 
 
#endif // MAINWINDOW_H