BioFunctional Designer
 All Classes Files Functions
widget.h
Go to the documentation of this file.
1 
9 #ifndef WIDGET_H
10 #define WIDGET_H
11 
12 #include <QWidget>
13 
14 
15 #include "correction.h"
16 #include "recommendation.h"
17 #include "ui_form.h"
18 
19 #include <QKeyEvent>
20 #include <QMouseEvent>
21 #include <QString>
22 #include <QFile>
23 
27 class Widget : public QWidget, public Ui::Form
28 {
29  Q_OBJECT
30 
31 public:
32  Widget(QWidget *parent = 0);
33 
34  ~Widget();
35 public slots:
36 
38  void saveButtonClicked();
40  void exportButtonClicked();
43  void searchBoxTyped(QString text);
45  void newButtonClicked();
47  void openButtonClicked();
50  void showRelevantBioBricks(QStringList* biobricks);
53  void showBioBrickInfo(QString info);
54 
55 protected:
56  void keyPressEvent(QKeyEvent *e);
57 
58 private:
59  Ui::Form* ui;
60  QString m_projectName;
61  QString m_filePath;
62  QFile* m_projectFile;
63  bool m_isCheckable;
64 
66  void saveProject();
68  void exportResult();
70  void readProject();
72  void cleanWidget();
73 
74 
76  void performSearch();
77  /*
78  QStringList processHttpResult();
79  std::string getRequestUrl(const QString& requestType, const QStringList& prama);
80 
81  QStringList getReslutList(const QString& requestType, const QStringList& prama);
82  */
83 };
84 
85 #endif // WIDGET_H
void exportButtonClicked()
process export button event
Definition: widget.cpp:98
void newButtonClicked()
process create new project button event
Definition: widget.cpp:133
void showRelevantBioBricks(QStringList *biobricks)
show the relevant biobricks
Definition: widget.cpp:208
void openButtonClicked()
process open button event
Definition: widget.cpp:147
void searchBoxTyped(QString text)
process seach inout change event
Definition: widget.cpp:87
The head file for Correction.
the recommendation class, which will do the recommendation
void saveButtonClicked()
process save button event
Definition: widget.cpp:94
the widget class, inherit from QWidget, the main widget
Definition: widget.h:27
void showBioBrickInfo(QString info)
show a selected BioBrick
Definition: widget.cpp:216