Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
f8b99cba
Commit
f8b99cba
authored
4 years ago
by
Fernando Hueso González
Committed by
Bertrand Bellenot
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add Modified() signal for TGNumberEntry
parent
23364820
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gui/gui/inc/TGNumberEntry.h
+1
-0
1 addition, 0 deletions
gui/gui/inc/TGNumberEntry.h
gui/gui/src/TGNumberEntry.cxx
+12
-0
12 additions, 0 deletions
gui/gui/src/TGNumberEntry.cxx
with
13 additions
and
0 deletions
gui/gui/inc/TGNumberEntry.h
+
1
−
0
View file @
f8b99cba
...
...
@@ -264,6 +264,7 @@ public:
virtual
Bool_t
ProcessMessage
(
Long_t
msg
,
Long_t
parm1
,
Long_t
parm2
);
virtual
void
ValueChanged
(
Long_t
val
);
//*SIGNAL*
virtual
void
ValueSet
(
Long_t
val
);
//*SIGNAL*
virtual
void
Modified
();
//*SIGNAL*
TGNumberEntryField
*
GetNumberEntry
()
const
{
// Get the number entry field
...
...
This diff is collapsed.
Click to expand it.
gui/gui/src/TGNumberEntry.cxx
+
12
−
0
View file @
f8b99cba
...
...
@@ -1971,6 +1971,8 @@ TGNumberEntry::TGNumberEntry(const TGWindow *parent,
limits
,
min
,
max
);
fNumericEntry
->
Connect
(
"ReturnPressed()"
,
"TGNumberEntry"
,
this
,
"ValueSet(Long_t=0)"
);
fNumericEntry
->
Connect
(
"ReturnPressed()"
,
"TGNumberEntry"
,
this
,
"Modified()"
);
fNumericEntry
->
Associate
(
fMsgWindow
);
AddFrame
(
fNumericEntry
,
0
);
fButtonUp
=
new
TGRepeatFireButton
(
this
,
fPicUp
,
1
,
...
...
@@ -2076,6 +2078,7 @@ Bool_t TGNumberEntry::ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
}
// Emit a signal needed by pad editor
ValueSet
(
10000
*
(
parm1
-
1
)
+
parm2
);
Modified
();
}
break
;
}
...
...
@@ -2122,6 +2125,15 @@ void TGNumberEntry::ValueSet(Long_t val)
Emit
(
"ValueSet(Long_t)"
,
val
);
}
////////////////////////////////////////////////////////////////////////////////
/// Emit Modified() signal. This signal is emitted when the
/// number entry value is changed.
void
TGNumberEntry
::
Modified
()
{
Emit
(
"Modified()"
);
}
////////////////////////////////////////////////////////////////////////////////
/// Save a number entry widget as a C++ statement(s) on output stream out.
...
...
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