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
9f815464
Commit
9f815464
authored
Mar 15, 2013
by
Victor Yacovlev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented initial program text
parent
a7afe89d
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
299 additions
and
123 deletions
+299
-123
share/kumir2/editor/default.kum
share/kumir2/editor/default.kum
+4
-0
share/kumir2/translations/ActorRobot_ru.ts
share/kumir2/translations/ActorRobot_ru.ts
+26
-26
share/kumir2/translations/CoreGUI_ru.ts
share/kumir2/translations/CoreGUI_ru.ts
+37
-32
share/kumir2/translations/Editor_ru.ts
share/kumir2/translations/Editor_ru.ts
+41
-6
share/kumir2/translations/KumirAnalizer_ru.ts
share/kumir2/translations/KumirAnalizer_ru.ts
+5
-5
share/kumir2/translations/KumirCodeRun_ru.ts
share/kumir2/translations/KumirCodeRun_ru.ts
+3
-19
src/plugins/coregui/mainwindow.cpp
src/plugins/coregui/mainwindow.cpp
+12
-25
src/plugins/editor/editorplugin.cpp
src/plugins/editor/editorplugin.cpp
+31
-5
src/plugins/editor/editorplugin.h
src/plugins/editor/editorplugin.h
+1
-1
src/plugins/editor/editorstandalonewindow.cpp
src/plugins/editor/editorstandalonewindow.cpp
+2
-2
src/plugins/editor/settingspage.cpp
src/plugins/editor/settingspage.cpp
+50
-0
src/plugins/editor/settingspage.h
src/plugins/editor/settingspage.h
+4
-0
src/plugins/editor/settingspage.ui
src/plugins/editor/settingspage.ui
+82
-1
src/shared/interfaces/editorinterface.h
src/shared/interfaces/editorinterface.h
+1
-1
No files found.
share/kumir2/editor/default.kum
0 → 100644
View file @
9f815464
алг
нач
кон
share/kumir2/translations/ActorRobot_ru.ts
View file @
9f815464
...
...
@@ -4,60 +4,60 @@
<
context
>
<
name
>
ActorRobot
::
RobotModule
<
/name
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
276
4
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
276
5
"
/>
<
source
>
Робот
разбился
:
сверху
стена
!<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
276
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
278
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
280
1
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
281
8
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
276
6
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
278
4
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
280
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
281
9
"
/>
<
source
>
Отказ
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
278
1
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
278
2
"
/>
<
source
>
Робот
разбился
:
снизу
стена
!<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
280
0
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
280
1
"
/>
<
source
>
Робот
разбился
:
слева
стена
!<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
28
19
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
28
20
"
/>
<
source
>
Робот
разбился
:
справа
стена
!<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
284
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
285
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
286
4
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
287
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
288
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
289
6
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
290
7
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
291
8
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
284
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
285
4
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
286
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
287
6
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
288
6
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
289
7
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
290
8
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
291
9
"
/>
<
source
>
да
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
284
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
285
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
286
4
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
287
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
288
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
289
6
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
290
7
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
291
8
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
284
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
285
4
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
286
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
287
6
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
288
6
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
289
7
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
290
8
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
291
9
"
/>
<
source
>
нет
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
293
6
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
303
6
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
293
7
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
303
7
"
/>
<
source
>
Robot
<
/source
>
<
translation
>
Робот
<
/translation
>
<
/message
>
...
...
share/kumir2/translations/CoreGUI_ru.ts
View file @
9f815464
...
...
@@ -150,13 +150,13 @@ p, li { white-space: pre-wrap; }
<
translation
>
Глобальные
в
исполнителе
&
quot
;
%
1
&
quot
;
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/debuggerwindow.cpp
"
line
=
"
73
6
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/debuggerwindow.cpp
"
line
=
"
73
7
"
/>
<
source
>
This
variable
is
a
reference
.
Right
click
to
navigate
target
<
/source
>
<
translation
>
Эта
величина
является
ссылкой
.
Для
перехода
по
ссылке
нажмите
правую
кнопку
мыши
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/debuggerwindow.cpp
"
line
=
"
78
5
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/debuggerwindow.cpp
"
line
=
"
78
6
"
/>
<
source
>
Current
values
available
only
while
running
program
in
step
-
by
-
step
mode
<
/source
>
<
translation
>
Текущие
значения
величин
отображаются
при
выполнении
по
шагам
<
/translation
>
<
/message
>
...
...
@@ -201,7 +201,7 @@ Right click to navigate target</source>
<
translation
>
Без
показа
на
полях
и
обновления
окна
величин
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
2
97
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
2
80
"
/>
<
source
>
This
program
does
not
have
testing
algorithm
<
/source
>
<
translation
>
У
этой
программы
нет
тестирующего
алгоритма
<
/translation
>
<
/message
>
...
...
@@ -230,25 +230,25 @@ Right click to navigate target</source>
<
translation
>
До
конца
алгоритма
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
3
94
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
3
82
"
/>
<
source
>
Unknown
error
<
/source
>
<
translation
>
Нераспознанная
ошибка
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
3
95
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
404
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
43
1
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
3
83
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
392
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
43
2
"
/>
<
source
>
Evaluation
error
<
/source
>
<
translation
>
Ошибка
выполнения
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
404
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
4
39
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
392
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
4
40
"
/>
<
source
>
Evaluation
finished
<
/source
>
<
translation
>
Выполнение
завершено
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
42
2
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/kumirprogram.cpp
"
line
=
"
42
3
"
/>
<
source
>
Evaluation
terminated
<
/source
>
<
translation
>
Выполнение
прервано
<
/translation
>
<
/message
>
...
...
@@ -561,7 +561,7 @@ Right click to navigate target</source>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.ui
"
line
=
"
238
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
87
8
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
87
2
"
/>
<
source
>
Restore
previous
session
<
/source
>
<
translation
>
Восстановить
предыдущий
сеанс
<
/translation
>
<
/message
>
...
...
@@ -621,12 +621,12 @@ Right click to navigate target</source>
<
translation
>
Сохранить
текущий
текст
?
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
87
9
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
87
3
"
/>
<
source
>
Are
you
sure
to
restore
previous
session
?
All
unsaved
changes
will
be
lost
.
<
/source
>
<
translation
>
Вы
уверены
,
что
хотите
восстановить
предыдущий
сеанс
?
Все
открытые
файлы
будут
закрыты
без
сохранения
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1001
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
995
"
/>
<
source
>
The
following
files
have
changes
:
%
1
Save
them
?
<
/source
>
...
...
@@ -635,7 +635,7 @@ Save them?</source>
Сохранить
их
?
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1002
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
996
"
/>
<
source
>
Close
Kumir
<
/source
>
<
translation
>
Выход
из
Кумир
<
/translation
>
<
/message
>
...
...
@@ -660,7 +660,7 @@ Save them?</source>
<
translation
type
=
"
obsolete
"
>
Закрыть
без
сохранения
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
901
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
895
"
/>
<
source
>
Start
<
/source
>
<
translation
>
Начало
<
/translation
>
<
/message
>
...
...
@@ -675,12 +675,12 @@ Using Qt version %2</source>
Использует
Qt
версии
%
2
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
110
9
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
110
3
"
/>
<
source
>
Load
file
...
<
/source
>
<
translation
>
Загрузить
файл
...
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
11
11
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
11
05
"
/>
<
source
>
Kumir
programs
(
*
.
kum
);;
Pascal
programs
(
*
.
pas
*
.
pp
);;
Web
pages
(
*
.
html
*
.
htm
);;
Text
files
(
*
.
txt
);;
All
files
(
*
)
<
/source
>
<
translation
>
Программы
Кумир
(
*
.
kum
);;
Программы
Pascal
(
*
.
pas
*
.
pp
);;
Web
-
страницы
(
*
.
html
*
.
htm
);;
Текстовые
файлы
(
*
.
txt
);;
Все
файлы
(
*
)
<
/translation
>
<
/message
>
...
...
@@ -703,22 +703,22 @@ Using Qt version %2</source>
<
translation
type
=
"
obsolete
"
>
Область
ввода
/
вывода
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
27
3
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
27
2
"
/>
<
source
>
Variables
<
/source
>
<
translation
>
Значения
величин
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
19
8
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
19
7
"
/>
<
source
>
Remote
Control
<
/source
>
<
translation
>
Пульт
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
24
7
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
24
6
"
/>
<
source
>
Help
<
/source
>
<
translation
>
Справка
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
34
6
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
34
5
"
/>
<
source
>
Editing
<
/source
>
<
translation
>
Редактирование
<
/translation
>
<
/message
>
...
...
@@ -804,49 +804,54 @@ p, li { white-space: pre-wrap; }
<
context
>
<
name
>
Terminal
::
OneSession
<
/name
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
8
3
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
12
5
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
8
7
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
12
9
"
/>
<
source
>&
gt
;
&
gt
;
%
1
:
%
2
:
%
3
-
%
4
-
Process
started
<
/source
>
<
translation
>&
gt
;
&
gt
;
%
1
:
%
2
:
%
3
-
%
4
-
Начало
выполнения
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
89
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
13
1
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
93
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
13
5
"
/>
<
source
>&
gt
;
&
gt
;
%
1
:
%
2
:
%
3
-
%
4
-
Process
finished
<
/source
>
<
translation
>&
gt
;
&
gt
;
%
1
:
%
2
:
%
3
-
%
4
-
Выполнение
завершено
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
23
5
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
23
9
"
/>
<
source
>
INPUT
<
/source
>
<
translation
>
ВВОД
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
24
2
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
24
6
"
/>
<
source
>
string
<
/source
>
<
translation
>
лит
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
24
4
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
24
8
"
/>
<
source
>
integer
<
/source
>
<
translation
>
цел
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
2
46
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
2
50
"
/>
<
source
>
real
<
/source
>
<
translation
>
вещ
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
2
48
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
2
52
"
/>
<
source
>
charect
<
/source
>
<
translation
>
сим
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
25
0
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
25
4
"
/>
<
source
>
boolean
<
/source
>
<
translation
>
лог
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
388
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
409
"
/>
<
source
>
Not
a
&
apos
;
%
1
&
apos
;
value
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/terminal_onesession.cpp
"
line
=
"
445
"
/>
<
source
>
RUNTIME
ERROR
:
%
1
<
/source
>
<
translation
>
ОШИБКА
ВЫПОЛНЕНИЯ
:
%
1
<
/translation
>
<
/message
>
...
...
share/kumir2/translations/Editor_ru.ts
View file @
9f815464
...
...
@@ -11,12 +11,17 @@
<
context
>
<
name
>
Editor
::
EditorPlugin
<
/name
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/editorplugin.cpp
"
line
=
"
1
87
"
/>
<
location
filename
=
"
../../../src/plugins/editor/editorplugin.cpp
"
line
=
"
1
94
"
/>
<
source
>
Can
&
apos
;
t
open
file
%
1
for
writing
<
/source
>
<
translation
>
Не
могу
открыть
%
1
для
записи
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/editorplugin.cpp
"
line
=
"
218
"
/>
<
location
filename
=
"
../../../src/plugins/editor/editorplugin.cpp
"
line
=
"
213
"
/>
<
source
>
Can
&
apos
;
t
open
file
%
1
for
reading
<
/source
>
<
translation
>
Не
могу
открыть
%
1
для
чтения
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/editorplugin.cpp
"
line
=
"
244
"
/>
<
source
>
Editor
<
/source
>
<
translation
>
Редактор
<
/translation
>
<
/message
>
...
...
@@ -233,21 +238,51 @@
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.ui
"
line
=
"
548
"
/>
<
source
>
Initial
Text
<
/source
>
<
translation
>
Текст
исходной
программы
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.ui
"
line
=
"
554
"
/>
<
source
>
Browse
...
<
/source
>
<
translation
>
Найти
...
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.ui
"
line
=
"
616
"
/>
<
source
>
Initial
program
template
file
:
<
/source
>
<
translation
>
Имя
файла
с
текстом
исходной
программы
:
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.ui
"
line
=
"
629
"
/>
<
source
>
Other
<
/source
>
<
translation
>
Другое
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.ui
"
line
=
"
554
"
/>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.ui
"
line
=
"
635
"
/>
<
source
>
Force
press
program
text
to
the
left
<
/source
>
<
translation
>
Прижимать
текст
программы
к
левому
краю
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.ui
"
line
=
"
561
"
/>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.ui
"
line
=
"
642
"
/>
<
source
>
Show
trailing
spaces
<
/source
>
<
translation
>
Отображать
пробелы
в
конце
строк
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.cpp
"
line
=
"
265
"
/>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.cpp
"
line
=
"
244
"
/>
<
source
>
File
not
exists
<
/source
>
<
translation
>
Файл
не
найден
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.cpp
"
line
=
"
247
"
/>
<
source
>
File
access
denied
<
/source
>
<
translation
>
Нет
доступа
к
файлу
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.cpp
"
line
=
"
256
"
/>
<
source
>
Choose
initial
program
file
<
/source
>
<
translation
>
Выбор
файла
с
исходным
текстом
программы
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/settingspage.cpp
"
line
=
"
315
"
/>
<
source
>
Choose
color
<
/source
>
<
translation
>
Выберете
цвет
<
/translation
>
<
/message
>
...
...
@@ -321,7 +356,7 @@
<
translation
>
...
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/editor/suggestionswindow.cpp
"
line
=
"
24
3
"
/>
<
location
filename
=
"
../../../src/plugins/editor/suggestionswindow.cpp
"
line
=
"
24
4
"
/>
<
source
>
No
suggestions
<
/source
>
<
translation
>
Ничем
не
могу
помочь
<
/translation
>
<
/message
>
...
...
share/kumir2/translations/KumirAnalizer_ru.ts
View file @
9f815464
...
...
@@ -17,27 +17,27 @@
<
context
>
<
name
>
KumirAnalizer
::
SyntaxAnalizerPrivate
<
/name
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumiranalizer/syntaxanalizer.cpp
"
line
=
"
31
7
"
/>
<
location
filename
=
"
../../../src/plugins/kumiranalizer/syntaxanalizer.cpp
"
line
=
"
31
8
"
/>
<
source
>
Built
-
it
module
%
1
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumiranalizer/syntaxanalizer.cpp
"
line
=
"
32
8
"
/>
<
location
filename
=
"
../../../src/plugins/kumiranalizer/syntaxanalizer.cpp
"
line
=
"
32
9
"
/>
<
source
>
Use
file
&
quot
;
%
1
&
quot
;
as
module
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumiranalizer/syntaxanalizer.cpp
"
line
=
"
33
7
"
/>
<
location
filename
=
"
../../../src/plugins/kumiranalizer/syntaxanalizer.cpp
"
line
=
"
33
8
"
/>
<
source
>
Use
precompiled
file
&
quot
;
%
1
&
quot
;
as
module
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumiranalizer/syntaxanalizer.cpp
"
line
=
"
5
19
"
/>
<
location
filename
=
"
../../../src/plugins/kumiranalizer/syntaxanalizer.cpp
"
line
=
"
5
20
"
/>
<
source
>
Loop
for
variable
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumiranalizer/syntaxanalizer.cpp
"
line
=
"
52
4
"
/>
<
location
filename
=
"
../../../src/plugins/kumiranalizer/syntaxanalizer.cpp
"
line
=
"
52
5
"
/>
<
source
>
Repeat
while
condition
is
true
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
...
...
share/kumir2/translations/KumirCodeRun_ru.ts
View file @
9f815464
...
...
@@ -4,12 +4,12 @@
<
context
>
<
name
>
KumirCodeRun
::
Plugin
<
/name
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumircoderun/plugin.cpp
"
line
=
"
589
"
/>
<
location
filename
=
"
../../../src/plugins/kumircoderun/plugin.cpp
"
line
=
"
497
"
/>
<
source
>
RUNTIME
ERROR
:
<
/source
>
<
translation
>
ОШИБКА
ВЫПОЛНЕНИЯ
:
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumircoderun/plugin.cpp
"
line
=
"
5
92
"
/>
<
location
filename
=
"
../../../src/plugins/kumircoderun/plugin.cpp
"
line
=
"
5
00
"
/>
<
source
>
RUNTIME
ERROR
AT
LINE
<
/source
>
<
translation
>
ОШИБКА
ВЫПОЛНЕНИЯ
В
СТРОКЕ
<
/translation
>
<
/message
>
...
...
@@ -17,24 +17,8 @@
<
context
>
<
name
>
KumirCodeRun
::
Run
<
/name
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumircoderun/run.cpp
"
line
=
"
186
"
/>
<
source
>
Please
enter
%
1
:
<
/source
>
<
translation
>
Введите
%
1
:
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumircoderun/run.cpp
"
line
=
"
194
"
/>
<
source
>
Please
enter
%
1
[
%
2
]:
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumircoderun/run.cpp
"
line
=
"
206
"
/>
<
source
>
Please
enter
%
1
[
%
2
,
%
3
]:
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/kumircoderun/run.cpp
"
line
=
"
220
"
/>
<
source
>
Please
enter
%
1
[
%
2
,
%
3
,
%
4
]:
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
obsolete
"
>
Введите
%
1
:
<
/translation
>
<
/message
>
<
/context
>
<
context
>
...
...
src/plugins/coregui/mainwindow.cpp
View file @
9f815464
...
...
@@ -598,11 +598,9 @@ void MainWindow::newProgram()
if
(
b_notabs
&&
!
closeTab
(
ui
->
tabWidget
->
currentIndex
()))
{
return
;
}
QString
defaultText
=
QString
::
fromUtf8
(
"алг
\n
нач
\n\n
кон"
);
QString
suffix
=
".kum"
;
DocumentType
type
=
Kumir
;
const
QString
initialText
=
m_plugin
->
mySettings
()
->
value
(
Plugin
::
InitialTextKey
,
defaultText
).
toString
();
Shared
::
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
"KumirAnalizer"
,
initialText
,
QDir
::
currentPath
(),
false
);
Shared
::
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
"KumirAnalizer"
,
QDir
::
currentPath
(),
false
);
QWidget
*
vc
=
doc
.
widget
;
int
id
=
doc
.
id
;
vc
->
setProperty
(
"documentId"
,
id
);
...
...
@@ -627,11 +625,9 @@ void MainWindow::newPythonProgram()
if
(
b_notabs
&&
!
closeTab
(
ui
->
tabWidget
->
currentIndex
()))
{
return
;
}
QString
defaultText
=
QString
::
fromUtf8
(
"#!/usr/bin/python3
\n
#coding=utf-8
\n\n
"
);
QString
suffix
=
".py"
;
DocumentType
type
=
Python
;
const
QString
initialText
=
m_plugin
->
mySettings
()
->
value
(
Plugin
::
InitialTextKey
,
defaultText
).
toString
();
Shared
::
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
"Python3Language"
,
initialText
,
QDir
::
currentPath
(),
false
);
DocumentType
type
=
Python
;
Shared
::
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
"Python3Language"
,
QDir
::
currentPath
(),
false
);
QWidget
*
vc
=
doc
.
widget
;
int
id
=
doc
.
id
;
vc
->
setProperty
(
"documentId"
,
id
);
...
...
@@ -658,10 +654,8 @@ void MainWindow::newPascalProgram()
}
QString
suffix
=
".pas"
;
QString
fileName
=
suggestNewFileName
(
suffix
);
QString
defaultText
=
QString
::
fromUtf8
(
"program %1;
\n\n
begin
\n\n
end.
\n
"
).
arg
(
fileName
.
left
(
fileName
.
length
()
-
4
));
DocumentType
type
=
Pascal
;
const
QString
initialText
=
m_plugin
->
mySettings
()
->
value
(
Plugin
::
InitialTextKey
,
defaultText
).
toString
();
Shared
::
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
"PascalAnalizer"
,
initialText
,
QDir
::
currentPath
(),
false
);
Shared
::
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
"PascalAnalizer"
,
QDir
::
currentPath
(),
false
);
QWidget
*
vc
=
doc
.
widget
;
int
id
=
doc
.
id
;
vc
->
setProperty
(
"documentId"
,
id
);
...
...
@@ -687,7 +681,7 @@ void MainWindow::newText()
void
MainWindow
::
newText
(
const
QString
&
fileName
,
const
QString
&
text
)
{
Shared
::
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
""
,
text
,
QDir
::
currentPath
(),
true
);
Shared
::
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
""
,
QDir
::
currentPath
(),
true
);
QWidget
*
vc
=
doc
.
widget
;
int
id
=
doc
.
id
;
vc
->
setProperty
(
"documentId"
,
id
);
...
...
@@ -936,7 +930,7 @@ void MainWindow::restoreSession()
analizerName
=
"PascalAnalizer"
;
doctype
=
Pascal
;
}
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
analizerName
,
QDir
::
currentPath
(),
""
,
false
);
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
analizerName
,
QDir
::
currentPath
(),
false
);
QByteArray
editorSession
=
f
.
readAll
();
QWidget
*
vc
=
doc
.
widget
;
vc
->
setProperty
(
"documentId"
,
doc
.
id
);
...
...
@@ -1189,19 +1183,12 @@ TabWidgetElement * MainWindow::loadFromUrl(const QUrl & url, bool addToRecentFil
if
(
addToRecentFiles
&&
type
!=
WWW
)
addToRecent
(
url
.
toLocalFile
());
if
(
type
==
Kumir
)
{
QFile
f
(
url
.
toLocalFile
());
if
(
f
.
open
(
QIODevice
::
ReadOnly
))
{
QByteArray
rawData
=
f
.
readAll
();
f
.
close
();
QStringList
lines
=
KumFile
::
readRawDataAsString
(
rawData
,
""
).
split
(
"
\n
"
);
for
(
int
i
=
0
;
i
<
lines
.
size
();
i
++
)
{
while
(
lines
[
i
].
startsWith
(
"."
)
||
lines
[
i
].
startsWith
(
" "
))
{
lines
[
i
]
=
lines
[
i
].
mid
(
1
);
}
}
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
"KumirAnalizer"
,
lines
.
join
(
"
\n
"
),
QFileInfo
(
f
).
absoluteDir
().
absolutePath
(),
false
);
QFileInfo
f
(
url
.
toLocalFile
());
if
(
f
.
isReadable
())
{
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
"KumirAnalizer"
,
QFileInfo
(
f
).
absoluteDir
().
absolutePath
(),
false
);
QWidget
*
vc
=
doc
.
widget
;
int
id
=
doc
.
id
;
m_plugin
->
plugin_editor
->
loadDocument
(
id
,
f
.
absoluteFilePath
());
vc
->
setProperty
(
"documentId"
,
id
);
QString
fileName
=
QFileInfo
(
url
.
toLocalFile
()).
fileName
();
vc
->
setProperty
(
"fileName"
,
url
.
toLocalFile
());
...
...
@@ -1227,7 +1214,7 @@ TabWidgetElement * MainWindow::loadFromUrl(const QUrl & url, bool addToRecentFil
ts
.
setAutoDetectUnicode
(
true
);
QString
data
=
ts
.
readAll
();
f
.
close
();
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
"PascalAnalizer"
,
data
,
QFileInfo
(
f
).
absoluteDir
().
absolutePath
(),
false
);
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
"PascalAnalizer"
,
QFileInfo
(
f
).
absoluteDir
().
absolutePath
(),
false
);
QWidget
*
vc
=
doc
.
widget
;
int
id
=
doc
.
id
;
vc
->
setProperty
(
"documentId"
,
id
);
...
...
@@ -1254,7 +1241,7 @@ TabWidgetElement * MainWindow::loadFromUrl(const QUrl & url, bool addToRecentFil
ts
.
setAutoDetectUnicode
(
true
);
QString
data
=
ts
.
readAll
();
f
.
close
();
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
""
,
data
,
""
,
false
);
EditorComponent
doc
=
m_plugin
->
plugin_editor
->
newDocument
(
""
,
""
,
false
);
QWidget
*
vc
=
doc
.
widget
;
int
id
=
doc
.
id
;
vc
->
setProperty
(
"documentId"
,
id
);
...
...
src/plugins/editor/editorplugin.cpp
View file @
9f815464
...
...
@@ -69,7 +69,7 @@ void EditorPlugin::clearMargin(int documentId, int fromLine, int toLine)
ed
->
clearMarginText
(
fromLine
,
toLine
);
}
Shared
::
EditorComponent
EditorPlugin
::
newDocument
(
const
QString
&
analizerName
,
const
QString
&
initia