Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CLASS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
BaM
CLASS
Commits
fe1db460
Commit
fe1db460
authored
6 years ago
by
Ernoult
Browse files
Options
Downloads
Patches
Plain Diff
Add option to select all
parent
778d36cb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gui/CLASSWin.cxx
+19
-0
19 additions, 0 deletions
gui/CLASSWin.cxx
gui/CLASSWin.hxx
+2
-1
2 additions, 1 deletion
gui/CLASSWin.hxx
with
21 additions
and
1 deletion
gui/CLASSWin.cxx
+
19
−
0
View file @
fe1db460
...
...
@@ -380,6 +380,7 @@ void MainWin::Start(vector<string> VFileName)
//misc check buttons
fCheckAMNuc
=
new
TGCheckButton
(
fMiscHzFrame
,
"MA"
,
M_CHECK_AM_NUC
);
fCheckFPNuc
=
new
TGCheckButton
(
fMiscHzFrame
,
"FP"
,
M_CHECK_FP_NUC
);
fCheckALLNuc
=
new
TGCheckButton
(
fMiscHzFrame
,
"All"
,
M_CHECK_ALL_NUC
);
fCBSelected
=
new
TGComboBox
(
fMiscHzFrame
,
M_CB_TOX_SELECTED
);
fCBSelected
->
AddEntry
(
"Selected"
,
0
);
...
...
@@ -391,13 +392,16 @@ void MainWin::Start(vector<string> VFileName)
fCheckFPNuc
->
SetFont
(
fLabelFontS
);
fCheckAMNuc
->
SetFont
(
fLabelFontS
);
fCheckALLNuc
->
SetFont
(
fLabelFontS
);
fMiscHzFrame
->
AddFrame
(
fCheckAMNuc
,
fL2222
);
fMiscHzFrame
->
AddFrame
(
fCheckFPNuc
,
fL2222
);
fMiscHzFrame
->
AddFrame
(
fCheckALLNuc
,
fL2222
);
fMiscHzFrame
->
AddFrame
(
fCBSelected
,
fL2222
);
fCheckFPNuc
->
Associate
(
this
);
fCheckAMNuc
->
Associate
(
this
);
fCheckALLNuc
->
Associate
(
this
);
fCBSelected
->
Associate
(
this
);
//1 jeu de NucleusTab pour tous
...
...
@@ -567,6 +571,21 @@ bool MainWin::ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
}
}
break
;
case
M_CHECK_ALL_NUC
:
if
(
fCheckALLNuc
->
GetState
()
==
kButtonDown
)
{
for
(
int
l
=
0
;
l
<
(
int
)
fDATA
->
GetZAIvector
().
size
();
l
++
)
{
fCheckArrayNuc
[
l
]
->
SetState
(
kButtonDown
);
}
}
else
{
for
(
int
l
=
0
;
l
<
(
int
)
fDATA
->
GetZAIvector
().
size
();
l
++
)
{
fCheckArrayNuc
[
l
]
->
SetState
(
kButtonUp
);
}
}
break
;
}
case
kCM_RADIOBUTTON
:
switch
(
parm1
)
...
...
This diff is collapsed.
Click to expand it.
gui/CLASSWin.hxx
+
2
−
1
View file @
fe1db460
...
...
@@ -73,6 +73,7 @@ enum CommandId{
M_TE_toxnstep
,
M_CHECK_AM_NUC
,
M_CHECK_FP_NUC
,
M_CHECK_ALL_NUC
,
M_CHECK_BY_MOTHER
,
M_CHECK_INSIDE
,
M_CHECK_CUMIN
,
...
...
@@ -174,7 +175,7 @@ private:
//misc frame
TGCompositeFrame
*
fMiscFrame
,
*
fMiscHzFrame
;
TGCheckButton
*
fCheckAMNuc
,
*
fCheckFPNuc
;
TGCheckButton
*
fCheckAMNuc
,
*
fCheckFPNuc
,
*
fCheckALLNuc
;
TGComboBox
*
fCBSelected
;
//Factories Arrays
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment