Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Show more breadcrumbs
Mattias Ellert
CMake
Commits
cca4d066
Commit
cca4d066
authored
23 years ago
by
Luis Ibanez
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Clearing and redrawing the property list after a build to load the new cache.
parent
446ea3b9
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
Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
+12
-1
12 additions, 1 deletion
Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
Source/FLTKDialog/FLTKPropertyItemRow.cxx
+2
-2
2 additions, 2 deletions
Source/FLTKDialog/FLTKPropertyItemRow.cxx
with
14 additions
and
3 deletions
Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
+
12
−
1
View file @
cca4d066
...
...
@@ -352,8 +352,10 @@ CMakeSetupGUIImplementation
// update the GUI with any new values in the caused by the
// generation process
this
->
LoadCacheFromDiskToGUI
();
// path is up-to-date now
m_BuildPathChanged
=
false
;
// put the cursor back
fl_cursor
(
FL_CURSOR_DEFAULT
,
FL_BLACK
,
FL_WHITE
);
fl_message
(
"Done !"
);
...
...
@@ -405,6 +407,8 @@ CMakeSetupGUIImplementation
{
// Prepare to add rows to the scroll
m_CacheEntriesList
.
RemoveAll
();
propertyListPack
->
clear
();
propertyListPack
->
begin
();
const
cmCacheManager
::
CacheEntryMap
&
cache
=
...
...
@@ -415,7 +419,6 @@ CMakeSetupGUIImplementation
const
char
*
key
=
i
->
first
.
c_str
();
const
cmCacheManager
::
CacheEntry
&
value
=
i
->
second
;
switch
(
value
.
m_Type
)
{
case
cmCacheManager
::
BOOL
:
...
...
@@ -453,6 +456,10 @@ CMakeSetupGUIImplementation
fltk
::
PropertyList
::
EDIT
,
""
);
break
;
case
cmCacheManager
::
INTERNAL
:
m_CacheEntriesList
.
AddProperty
(
key
,
value
.
m_Value
.
c_str
(),
value
.
m_HelpString
.
c_str
(),
fltk
::
PropertyList
::
EDIT
,
""
);
break
;
}
...
...
@@ -462,6 +469,10 @@ CMakeSetupGUIImplementation
propertyListPack
->
init_sizes
();
cacheValuesScroll
->
position
(
0
,
0
);
propertyListPack
->
redraw
();
Fl
::
check
();
this
->
UpdateData
(
false
);
}
...
...
This diff is collapsed.
Click to expand it.
Source/FLTKDialog/FLTKPropertyItemRow.cxx
+
2
−
2
View file @
cca4d066
...
...
@@ -189,8 +189,8 @@ NameButtonCallback( Fl_Widget * widget, void * data)
static
Fl_Menu_Button
*
popupMenu
=
0
;
if
(
!
popupMenu
)
{
int
lastMousePositionX
=
Fl
::
event_x
_root
();
int
lastMousePositionY
=
Fl
::
event_y
_root
();
int
lastMousePositionX
=
Fl
::
event_x
();
int
lastMousePositionY
=
Fl
::
event_y
();
popupMenu
=
new
Fl_Menu_Button
(
lastMousePositionX
,
lastMousePositionY
,
100
,
200
);
}
...
...
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