GOFIGURE2
0.9.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Code
GUI
lib
QGoCreateMeshDialog.cxx
Go to the documentation of this file.
1
/*=========================================================================
2
Authors: The GoFigure Dev. Team.
3
at Megason Lab, Systems biology, Harvard Medical school, 2009-11
4
5
Copyright (c) 2009-11, President and Fellows of Harvard College.
6
All rights reserved.
7
8
Redistribution and use in source and binary forms, with or without
9
modification, are permitted provided that the following conditions are met:
10
11
Redistributions of source code must retain the above copyright notice,
12
this list of conditions and the following disclaimer.
13
Redistributions in binary form must reproduce the above copyright notice,
14
this list of conditions and the following disclaimer in the documentation
15
and/or other materials provided with the distribution.
16
Neither the name of the President and Fellows of Harvard College
17
nor the names of its contributors may be used to endorse or promote
18
products derived from this software without specific prior written
19
permission.
20
21
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
25
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
27
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
30
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33
=========================================================================*/
34
#include "
QGoCreateMeshDialog.h
"
35
36
QGoCreateMeshDialog::QGoCreateMeshDialog
(
QWidget
*iParent) :
37
QDialog
(iParent)
38
{
39
/*this->VLayoutLabel = new QVBoxLayout;
40
this->VLayoutCombobox = new QVBoxLayout;
41
this->VLayoutDescription = new QVBoxLayout;
42
this->HorizontalLayout = new QHBoxLayout;*/
43
//this->HorizontalSpacer = new QSpacerItem;
44
this->
GridLayout
=
new
QGridLayout
;
45
this->
LineCellType
=
new
QLabel
(
tr
(
"Select the Cell Type:"
) );
46
this->
LineSubCellType
=
new
QLabel
(
tr
(
"Select the SubCellular type:"
) );
47
this->
LineColor
=
new
QLabel
(
tr
(
"Select the color"
) );
48
this->
SelectCellType
=
new
QComboBox
;
49
this->
SelectSubCellType
=
new
QComboBox
;
50
this->
SelectColor
=
new
QComboBox
;
51
this->
ScrollDescrCell
=
new
QScrollArea
;
52
this->
ScrollDescrSubCell
=
new
QScrollArea
;
53
this->
ScrollDescrColor
=
new
QScrollArea
;
54
this->
DescriptionCell
=
new
QLineEdit
;
55
this->
DescriptionSubCell
=
new
QLineEdit
;
56
this->
DescriptionColor
=
new
QLineEdit
;
57
58
this->
ScrollDescrCell
->
setWidget
(this->
DescriptionCell
);
59
this->
ScrollDescrSubCell
->
setWidget
(this->
DescriptionSubCell
);
60
this->
ScrollDescrColor
->
setWidget
(this->
DescriptionColor
);
61
//this->DescriptionCell = new QTextEdit;
62
//this->DescriptionSubCell = new QTextEdit;
63
//this->DescriptionColor = new QTextEdit;
64
this->
ButtonBox
=
new
QDialogButtonBox
;
65
this->
OkButton
=
new
QPushButton
(
tr
(
"OK"
) );
66
this->
CancelButton
=
new
QPushButton
(
tr
(
"Cancel"
) );
67
this->
NewCellType
=
new
QPushButton
(
tr
(
"New One"
) );
68
this->
NewSubCellType
=
new
QPushButton
(
tr
(
"New One"
) );
69
this->
NewColor
=
new
QPushButton
(
tr
(
"New One"
) );
70
this->
ButtonBox
->
addButton
(
OkButton
, QDialogButtonBox::AcceptRole);
71
this->
ButtonBox
->
addButton
(
CancelButton
, QDialogButtonBox::RejectRole);
72
73
/*this->VLayoutLabel->addWidget(this->LineCellType);
74
this->VLayoutLabel->addWidget(this->LineSubCellType);
75
this->VLayoutLabel->addWidget(this->LineColor);
76
77
this->VLayoutCombobox->addWidget(this->SelectCellType);
78
this->VLayoutCombobox->addWidget(this->SelectSubCellType);
79
this->VLayoutCombobox->addWidget(this->SelectColor);
80
81
this->VLayoutDescription->addWidget(this->DescriptionCell);
82
this->VLayoutDescription->addWidget(this->DescriptionSubCell);
83
this->VLayoutDescription->addWidget(this->DescriptionColor);
84
85
this->HorizontalLayout->addLayout(this->VLayoutLabel);
86
this->HorizontalLayout->addLayout(this->VLayoutCombobox);
87
this->HorizontalLayout->addLayout(this->VLayoutDescription);
88
this->HorizontalLayout->addWidget(this->ButtonBox);
89
90
this->setLayout(this->HorizontalLayout);*/
91
this->
GridLayout
->
addWidget
(this->
LineCellType
, 1, 1);
92
this->
GridLayout
->
addWidget
(this->
LineSubCellType
, 2, 1);
93
this->
GridLayout
->
addWidget
(this->
LineColor
, 3, 1);
94
95
this->
GridLayout
->
addWidget
(this->
SelectCellType
, 1, 2);
96
this->
GridLayout
->
addWidget
(this->
SelectSubCellType
, 2, 2);
97
this->
GridLayout
->
addWidget
(this->
SelectColor
, 3, 2);
98
99
/*this->GridLayout->addWidget(this->DescriptionCell,1,3);
100
this->GridLayout->addWidget(this->DescriptionSubCell,2,3);
101
this->GridLayout->addWidget(this->DescriptionColor,3,3);*/
102
103
//this->GridLayout->addWidget(this->ScrollDescrCell,1,3);
104
//this->GridLayout->addWidget(this->ScrollDescrSubCell,2,3);
105
//this->GridLayout->addWidget(this->ScrollDescrColor,3,3);
106
107
this->
GridLayout
->
addWidget
(this->
NewCellType
, 1, 4);
108
this->
GridLayout
->
addWidget
(this->
NewSubCellType
, 2, 4);
109
this->
GridLayout
->
addWidget
(this->
NewColor
, 3, 4);
110
111
this->
GridLayout
->
addWidget
(this->
ButtonBox
, 4, 1);
112
113
this->
setLayout
(this->
GridLayout
);
114
}
115
116
//--------------------------------------------------------------------------
117
118
//--------------------------------------------------------------------------
119
QGoCreateMeshDialog::~QGoCreateMeshDialog
()
120
{
121
}
122
123
//--------------------------------------------------------------------------
124
125
//--------------------------------------------------------------------------
Generated on Mon May 27 2013 08:47:30 for GOFIGURE2 by
1.8.1.2