File: modelConfigurationDialogPages.h

package info (click to toggle)
ball 1.4.3~beta1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 318,984 kB
  • sloc: cpp: 346,579; ansic: 4,097; python: 2,664; yacc: 1,778; lex: 1,099; xml: 964; sh: 688; sql: 316; awk: 118; makefile: 108
file content (168 lines) | stat: -rw-r--r-- 3,398 bytes parent folder | download | duplicates (2)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#ifndef PAGES_H
#define PAGES_H

#include <QtGui/QWidget>
#include <QtGui/QPushButton>
#include <QtGui/QMessageBox>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QGroupBox>
#include <QtGui/QTextEdit>
#include <QtGui/QTableWidget>

#include <modelConfigurationDialog.h>
#include <connectionManager.h>
#include <mainWindow.h>

#include <set>

namespace BALL
{
	namespace VIEW
	{
		class ModelConfigurationDialog;
		class ConnectionManager;

		/** @class ModelParameterPage
		* @brief a dialog page
		*
		* @todo
		*/
		class ModelParameterPage : public QWidget
		{
			
			public:
				ModelParameterPage(ModelConfigurationDialog* parent);	
				std::vector<QLineEdit*> edits_;
				QLineEdit* edit_;
		};
		

		/** @class KernelParameterPage
		* @brief a dialog page
		*
		* @todo
		*/
		class KernelParameterPage : public QWidget
		{
			Q_OBJECT
			public:
				KernelParameterPage(ModelConfigurationDialog* parent);
				KernelParameterPage();
				QComboBox* kernel_combo_;
				QLineEdit* kernel_param_edit1_;
				QLineEdit* kernel_param_edit2_;
				QLineEdit* kernel_string_edit1_ ;
				QLineEdit* kernel_string_edit2_;
				QLabel* function_label_;

				QPixmap findPixmap(const String& name);

			public slots:
				void showKernelFunction(int id);
				void showExtensions(int id);

			signals:
				void hasIndividualKernel(bool);
				void hasKernelParameter1(bool);
				void hasKernelParameter2(bool);
	
			private:
				QWidget* kernelParameter1Extension_;
				QWidget* kernelParameter2Extension_;
				QWidget* individualKernelExtension_;
				QSAR::Registry* registry_;
				ModelConfigurationDialog* dialog_;
		};
		
		/** @class OptimizePage
		* @brief a dialog page
		*
		* @todo
		*/
		class OptimizePage : public QWidget
		{
			Q_OBJECT
					
			public:
				OptimizePage(ModelConfigurationDialog* parent);
				OptimizePage();
				QCheckBox* enable_checkbox;
				std::vector<QLineEdit*> edits_;
				std::vector<QLabel*> labels_;
				QLineEdit* edit_;
				QLabel* label_;
				QLineEdit* k_edit_;
				//QLineEdit* param_k_edit_;
				QLineEdit* search_edit1_;
				QLineEdit* search_edit2_;
				QLineEdit* search_edit3_;
				//QLineEdit* kernel_k_edit_;
				QLineEdit* parameter1_edit_;
				QLineEdit* parameter2_edit_;
				
			private:
				/** used to activate/deactivate everthing if checkbox is clicked */
				list<QGroupBox*> groupboxes;
				
			private slots:
				void enableCheckboxChange();
		};

		/** @class ModelPropertiesPage
		* @brief a dialog page
		*
		* @todo
		*/
		class ModelPropertiesPage : public QWidget
		{	
			public:
				ModelPropertiesPage(ModelConfigurationDialog* parent);	

		};

		/** @class ConnectionsPage
		* @brief a dialog page
		*
		* @todo
		*/
		class ConnectionsPage : public QWidget
		{	
			public:
				ConnectionsPage(ModelConfigurationDialog* parent);	

			private:
				ModelConfigurationDialog* parent_;
				ConnectionManager* connection_manager_;

		};

		
		/** @class DataPage
		* @brief a dialog page
		*
		* @todo
		*/
		class DataPage : public QWidget
		{
			Q_OBJECT
			
			public:
				DataPage(ModelConfigurationDialog* parent);
			
			private:
				const vector<string>* descriptor_names_;
				std::multiset<unsigned int>* descriptor_ids_;
				
				QTableWidget* table_;
				QTextEdit* descriptor_explanation_;
				MainWindow* main_window_;
				
			private slots:
				void updateDescriptorExplanation();
				
		};
	}
}

#endif