Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
6a0451e7
Commit
6a0451e7
authored
Sep 29, 2007
by
plyatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"Move block" dialog enhancement (stratification of strings to buttons
eliminated).
parent
8ee7de09
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
36 deletions
+46
-36
kicad.mo
internat/ru/kicad.mo
+0
-0
kicad.po
internat/ru/kicad.po
+3
-3
block.cpp
pcbnew/block.cpp
+43
-33
No files found.
internat/ru/kicad.mo
View file @
6a0451e7
No preview for this file type
internat/ru/kicad.po
View file @
6a0451e7
...
...
@@ -4,8 +4,8 @@ msgid ""
msgstr ""
"Project-Id-Version: kicad\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2007-
10-02 08:1
0+0300\n"
"Last-Translator: \n"
"PO-Revision-Date: 2007-
09-29 18:2
0+0300\n"
"Last-Translator:
Igor Plyatov <plyatov@mail.ru>
\n"
"Language-Team: russian\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
...
...
@@ -9660,7 +9660,7 @@ msgstr "Чертить слои зеркально"
#: /home/plyatov/Projects/Programming/kicad-svn/pcbnew/block.cpp:1020
msgid "Move Block"
msgstr "
Двигать блок
"
msgstr "
Перемещение блока
"
#: /home/plyatov/Projects/Programming/kicad-svn/pcbnew/block.cpp:1032
msgid "Move footprints"
...
...
pcbnew/block.cpp
View file @
6a0451e7
...
...
@@ -33,11 +33,6 @@ static bool Block_Include_Draw_Items = TRUE;
static
bool
Block_Include_Edges_Items
=
TRUE
;
static
bool
Block_Include_PcbTextes
=
TRUE
;
enum
id_block_cmd
{
ID_ACCEPT_BLOCK_COMMAND
=
8000
,
ID_CANCEL_BLOCK_COMMAND
};
/************************************/
/* class WinEDA_ExecBlockCmdFrame */
/************************************/
...
...
@@ -72,8 +67,8 @@ private:
};
BEGIN_EVENT_TABLE
(
WinEDA_ExecBlockCmdFrame
,
wxDialog
)
EVT_BUTTON
(
ID_ACCEPT_BLOCK_COMMAND
,
WinEDA_ExecBlockCmdFrame
::
ExecuteCommand
)
EVT_BUTTON
(
ID_CANCEL_BLOCK_COMMAND
,
WinEDA_ExecBlockCmdFrame
::
Cancel
)
EVT_BUTTON
(
wxID_OK
,
WinEDA_ExecBlockCmdFrame
::
ExecuteCommand
)
EVT_BUTTON
(
wxID_CANCEL
,
WinEDA_ExecBlockCmdFrame
::
Cancel
)
END_EVENT_TABLE
()
...
...
@@ -102,54 +97,69 @@ static bool InstallBlockCmdFrame( WinEDA_BasePcbFrame* parent,
/******************************************************************************/
WinEDA_ExecBlockCmdFrame
::
WinEDA_ExecBlockCmdFrame
(
WinEDA_BasePcbFrame
*
parent
,
const
wxString
&
title
)
:
wxDialog
(
parent
,
-
1
,
title
,
wxPoint
(
-
1
,
-
1
),
wx
Size
(
280
,
220
)
,
wxDialog
(
parent
,
-
1
,
title
,
wxPoint
(
-
1
,
-
1
),
wx
DefaultSize
,
DIALOG_STYLE
)
/******************************************************************************/
{
wxPoint
pos
;
wxButton
*
Button
;
wxButton
*
m_button1
;
wxButton
*
m_button2
;
m_Parent
=
parent
;
SetFont
(
*
g_DialogFont
);
Centre
();
/* Creation des boutons de commande */
pos
.
x
=
170
;
pos
.
y
=
10
;
Button
=
new
wxButton
(
this
,
ID_ACCEPT_BLOCK_COMMAND
,
_
(
"Ok"
),
pos
);
Button
->
SetForegroundColour
(
*
wxRED
);
pos
.
y
+=
Button
->
GetDefaultSize
().
y
+
20
;
Button
=
new
wxButton
(
this
,
ID_CANCEL_BLOCK_COMMAND
,
_
(
"Cancel"
),
pos
);
Button
->
SetForegroundColour
(
*
wxBLUE
);
pos
.
x
=
5
;
pos
.
y
=
20
;
/* Sizer 1 creation */
wxFlexGridSizer
*
fgSizer1
;
fgSizer1
=
new
wxFlexGridSizer
(
1
,
1
,
0
,
0
);
fgSizer1
->
SetFlexibleDirection
(
wxBOTH
);
fgSizer1
->
SetNonFlexibleGrowMode
(
wxFLEX_GROWMODE_SPECIFIED
);
// Selection des options :
m_Include_Modules
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include Modules"
),
pos
);
m_Include_Modules
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include Modules"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_Include_Modules
->
SetValue
(
Block_Include_Modules
);
fgSizer1
->
Add
(
m_Include_Modules
,
0
,
wxALL
,
5
);
pos
.
y
+=
20
;
m_Include_Tracks
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include tracks"
),
pos
);
m_Include_Tracks
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include tracks"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_Include_Tracks
->
SetValue
(
Block_Include_Tracks
);
fgSizer1
->
Add
(
m_Include_Tracks
,
0
,
wxALL
,
5
);
pos
.
y
+=
20
;
m_Include_Zones
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include zones"
),
pos
);
m_Include_Zones
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include zones"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_Include_Zones
->
SetValue
(
Block_Include_Zones
);
fgSizer1
->
Add
(
m_Include_Zones
,
0
,
wxALL
,
5
);
pos
.
y
+=
20
;
m_Include_PcbTextes
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include Text on copper layers"
),
pos
);
_
(
"Include Text on copper layers"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_Include_PcbTextes
->
SetValue
(
Block_Include_PcbTextes
);
fgSizer1
->
Add
(
m_Include_PcbTextes
,
0
,
wxALL
,
5
);
pos
.
y
+=
20
;
m_Include_Draw_Items
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include drawings"
),
pos
);
m_Include_Draw_Items
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include drawings"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_Include_Draw_Items
->
SetValue
(
Block_Include_Draw_Items
);
fgSizer1
->
Add
(
m_Include_Draw_Items
,
0
,
wxALL
,
5
);
pos
.
y
+=
20
;
m_Include_Edges_Items
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include egde layer"
),
pos
);
m_Include_Edges_Items
=
new
wxCheckBox
(
this
,
-
1
,
_
(
"Include egde layer"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_Include_Edges_Items
->
SetValue
(
Block_Include_Edges_Items
);
fgSizer1
->
Add
(
m_Include_Edges_Items
,
0
,
wxALL
,
5
);
/* Sizer 2 creation */
wxFlexGridSizer
*
fgSizer2
;
fgSizer2
=
new
wxFlexGridSizer
(
1
,
2
,
0
,
0
);
fgSizer2
->
SetFlexibleDirection
(
wxBOTH
);
fgSizer2
->
SetNonFlexibleGrowMode
(
wxFLEX_GROWMODE_SPECIFIED
);
/* Creation des boutons de commande */
m_button2
=
new
wxButton
(
this
,
wxID_CANCEL
,
_
(
"Cancel"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_button2
->
SetForegroundColour
(
*
wxBLUE
);
fgSizer2
->
Add
(
m_button2
,
0
,
wxALL
,
5
);
m_button1
=
new
wxButton
(
this
,
wxID_OK
,
_
(
"Ok"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_button1
->
SetForegroundColour
(
*
wxRED
);
m_button1
->
SetDefault
();
fgSizer2
->
Add
(
m_button1
,
0
,
wxALL
,
5
);
fgSizer1
->
Add
(
fgSizer2
,
1
,
wxALIGN_RIGHT
,
5
);
this
->
SetSizer
(
fgSizer1
);
this
->
Layout
();
fgSizer1
->
Fit
(
this
);
}
...
...
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