Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Khanat code
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tycho Brahe
Khanat code
Commits
b9ab826f
Commit
b9ab826f
authored
Jan 21, 2017
by
Nimetu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added: copy_to_clipboard action handler
parent
b724f969
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
code/nel/src/gui/action_handler.cpp
code/nel/src/gui/action_handler.cpp
+12
-1
No files found.
code/nel/src/gui/action_handler.cpp
View file @
b9ab826f
...
...
@@ -23,6 +23,7 @@
#include "nel/gui/db_manager.h"
#include "nel/gui/interface_link.h"
#include "nel/gui/widget_manager.h"
#include "nel/gui/view_renderer.h"
using
namespace
std
;
using
namespace
NLMISC
;
...
...
@@ -742,4 +743,14 @@ namespace NLGUI
};
REGISTER_ACTION_HANDLER
(
CAHUnlockAllContainer
,
"unlock_all_container"
);
}
\ No newline at end of file
// ------------------------------------------------------------------------------------------------
class
CAHCopyToClipboard
:
public
IActionHandler
{
virtual
void
execute
(
CCtrlBase
*
pCaller
,
const
std
::
string
&
params
)
{
if
(
!
CViewRenderer
::
getInstance
()
->
getDriver
()
->
copyTextToClipboard
(
params
))
nlwarning
(
"Copy to clipboard failed: '%s'"
,
params
.
c_str
());
}
};
REGISTER_ACTION_HANDLER
(
CAHCopyToClipboard
,
"copy_to_clipboard"
);
}
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