Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
81e88a78
Commit
81e88a78
authored
May 13, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cut/delete for image values
parent
4f4a901f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
src/gui/value/image.cpp
src/gui/value/image.cpp
+17
-0
src/gui/value/image.hpp
src/gui/value/image.hpp
+3
-1
No files found.
src/gui/value/image.cpp
View file @
81e88a78
...
@@ -85,3 +85,20 @@ bool ImageValueEditor::doPaste() {
...
@@ -85,3 +85,20 @@ bool ImageValueEditor::doPaste() {
sliceImage
(
data
.
GetBitmap
().
ConvertToImage
());
sliceImage
(
data
.
GetBitmap
().
ConvertToImage
());
return
true
;
return
true
;
}
}
bool
ImageValueEditor
::
doDelete
()
{
getSet
().
actions
.
add
(
value_action
(
valueP
(),
FileName
()));
return
true
;
}
bool
ImageValueEditor
::
onChar
(
wxKeyEvent
&
ev
)
{
if
(
ev
.
AltDown
()
||
ev
.
ShiftDown
()
||
ev
.
ControlDown
())
return
false
;
switch
(
ev
.
GetKeyCode
())
{
case
WXK_DELETE
:
doDelete
();
return
true
;
default:
return
false
;
}
}
src/gui/value/image.hpp
View file @
81e88a78
...
@@ -25,10 +25,12 @@ class ImageValueEditor : public ImageValueViewer, public ValueEditor {
...
@@ -25,10 +25,12 @@ class ImageValueEditor : public ImageValueViewer, public ValueEditor {
// --------------------------------------------------- : Clipboard
// --------------------------------------------------- : Clipboard
virtual
bool
canCopy
()
const
;
virtual
bool
canCopy
()
const
;
virtual
bool
canCut
()
const
{
return
false
;
}
virtual
bool
canPaste
()
const
;
virtual
bool
canPaste
()
const
;
virtual
bool
doCopy
();
virtual
bool
doCopy
();
virtual
bool
doPaste
();
virtual
bool
doPaste
();
virtual
bool
doDelete
();
virtual
bool
onChar
(
wxKeyEvent
&
);
private:
private:
// Open the image slice window showing the give image
// Open the image slice window showing the give image
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment