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
K
kumir2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
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
kumir
kumir2
Commits
6d33598d
Commit
6d33598d
authored
Jul 01, 2014
by
Denis Khachko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GrassHopper menu. Save and load env.
parent
4b867291
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
2 deletions
+35
-2
src/actors/grasshopper/grasshopper.json
src/actors/grasshopper/grasshopper.json
+30
-1
src/actors/grasshopper/grasshoppermodule.cpp
src/actors/grasshopper/grasshoppermodule.cpp
+3
-0
src/actors/grasshopper/kuznec.cpp
src/actors/grasshopper/kuznec.cpp
+1
-0
src/actors/grasshopper/kuznec.h
src/actors/grasshopper/kuznec.h
+1
-1
No files found.
src/actors/grasshopper/grasshopper.json
View file @
6d33598d
...
...
@@ -22,7 +22,36 @@
"windows"
:
[
{
"role"
:
"main"
,
"icon"
:
"grasshopper"
},
{
"role"
:
"pult"
,
"icon"
:
"grasshopper-rc"
}
]
],
"menus"
:
[
{
"title"
:
{
"ascii"
:
"Grasshopper"
,
"ru_RU"
:
"Кузнечик"
},
"items"
:
[
{
"title"
:
{
"ascii"
:
"New Environment..."
,
"ru_RU"
:
"Новое задание..."
},
"icon"
:
"file-new"
},
{
"title"
:
{
"ascii"
:
"Load Environment..."
,
"ru_RU"
:
"Загрузить задание..."
},
"icon"
:
"file-open"
},
{
"title"
:
{
"ascii"
:
"Save"
,
"ru_RU"
:
"Сохранить..."
}
}
]
}
]
},
"settings"
:
{
"BackgroundColor"
:
{
...
...
src/actors/grasshopper/grasshoppermodule.cpp
View file @
6d33598d
...
...
@@ -34,6 +34,9 @@ GrasshopperModule::GrasshopperModule(ExtensionSystem::KPlugin * parent)
:
GrasshopperModuleBase
(
parent
)
{
kuznec
=
new
KumKuznec
(
myResourcesDir
());
connect
(
m_actionGrasshopperNewEnvironment
,
SIGNAL
(
triggered
())
,
kuznec
,
SLOT
(
ClearPicture
()));
connect
(
m_actionGrasshopperLoadEnvironment
,
SIGNAL
(
triggered
())
,
kuznec
,
SLOT
(
LoadFromFileActivated
()));
connect
(
m_actionGrasshopperSave
,
SIGNAL
(
triggered
())
,
kuznec
,
SLOT
(
SaveToFileActivated
()));
// Module constructor, called once on plugin load
// TODO implement me
}
...
...
src/actors/grasshopper/kuznec.cpp
View file @
6d33598d
...
...
@@ -2191,6 +2191,7 @@ void KumKuznec::LoadFromFileActivated()
QString
VodFileN
=
QFileDialog
::
getOpenFileName
(
this
,
QString
::
fromUtf8
(
"Открыть файл"
),
curDir
,
"(*.kz)"
);
if
(
VodFileN
.
isEmpty
())
return
;
sett
.
setValue
(
"Last"
,
VodFileN
);
if
(
LoadFromFile
(
VodFileN
)
>
0
){
...
...
src/actors/grasshopper/kuznec.h
View file @
6d33598d
...
...
@@ -475,7 +475,7 @@ void DrawNet();
void
SetLineColor
(
int
LRed
,
int
LGreen
,
int
LBlue
);
bool
SetColorString
(
QString
Color
);
//void ShowInfo();
;
void
CreatePen
(
void
);
bool
moving
;
//void DestroyPen(void);
...
...
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