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
37c3ef50
Commit
37c3ef50
authored
Oct 17, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix expansion of dialog on stretching and initial view
parent
e8ee2634
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
18 deletions
+22
-18
dialog_lib_edit_text_base.cpp
eeschema/dialogs/dialog_lib_edit_text_base.cpp
+11
-9
dialog_lib_edit_text_base.fbp
eeschema/dialogs/dialog_lib_edit_text_base.fbp
+8
-8
dialog_lib_edit_text_base.h
eeschema/dialogs/dialog_lib_edit_text_base.h
+3
-1
No files found.
eeschema/dialogs/dialog_lib_edit_text_base.cpp
View file @
37c3ef50
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr
11 2012
)
// C++ code generated with wxFormBuilder (version Apr
30 2013
)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
...
@@ -30,6 +30,7 @@ DIALOG_LIB_EDIT_TEXT_BASE::DIALOG_LIB_EDIT_TEXT_BASE( wxWindow* parent, wxWindow
...
@@ -30,6 +30,7 @@ DIALOG_LIB_EDIT_TEXT_BASE::DIALOG_LIB_EDIT_TEXT_BASE( wxWindow* parent, wxWindow
bTextValueBoxSizer
->
Add
(
m_staticText1
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
bTextValueBoxSizer
->
Add
(
m_staticText1
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
m_TextValue
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_TextValue
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_TextValue
->
SetMaxLength
(
0
);
m_TextValue
->
SetMinSize
(
wxSize
(
200
,
-
1
)
);
m_TextValue
->
SetMinSize
(
wxSize
(
200
,
-
1
)
);
bTextValueBoxSizer
->
Add
(
m_TextValue
,
1
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
|
wxEXPAND
,
5
);
bTextValueBoxSizer
->
Add
(
m_TextValue
,
1
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
|
wxEXPAND
,
5
);
...
@@ -45,6 +46,7 @@ DIALOG_LIB_EDIT_TEXT_BASE::DIALOG_LIB_EDIT_TEXT_BASE( wxWindow* parent, wxWindow
...
@@ -45,6 +46,7 @@ DIALOG_LIB_EDIT_TEXT_BASE::DIALOG_LIB_EDIT_TEXT_BASE( wxWindow* parent, wxWindow
bTextSizeSizer
->
Add
(
m_TextSizeText
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
bTextSizeSizer
->
Add
(
m_TextSizeText
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
m_TextSize
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_TextSize
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_TextSize
->
SetMaxLength
(
0
);
bTextSizeSizer
->
Add
(
m_TextSize
,
0
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
bTextSizeSizer
->
Add
(
m_TextSize
,
0
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
...
@@ -57,7 +59,7 @@ DIALOG_LIB_EDIT_TEXT_BASE::DIALOG_LIB_EDIT_TEXT_BASE( wxWindow* parent, wxWindow
...
@@ -57,7 +59,7 @@ DIALOG_LIB_EDIT_TEXT_BASE::DIALOG_LIB_EDIT_TEXT_BASE( wxWindow* parent, wxWindow
bBottomtBoxSizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
bBottomtBoxSizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxStaticBoxSizer
*
sOptionsSizer
;
wxStaticBoxSizer
*
sOptionsSizer
;
sOptionsSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"
Text Options :
"
)
),
wxVERTICAL
);
sOptionsSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"
Text Options:
"
)
),
wxVERTICAL
);
m_Orient
=
new
wxCheckBox
(
this
,
wxID_ANY
,
_
(
"Vertical"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_Orient
=
new
wxCheckBox
(
this
,
wxID_ANY
,
_
(
"Vertical"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
sOptionsSizer
->
Add
(
m_Orient
,
0
,
wxALL
,
5
);
sOptionsSizer
->
Add
(
m_Orient
,
0
,
wxALL
,
5
);
...
@@ -75,28 +77,28 @@ DIALOG_LIB_EDIT_TEXT_BASE::DIALOG_LIB_EDIT_TEXT_BASE( wxWindow* parent, wxWindow
...
@@ -75,28 +77,28 @@ DIALOG_LIB_EDIT_TEXT_BASE::DIALOG_LIB_EDIT_TEXT_BASE( wxWindow* parent, wxWindow
sOptionsSizer
->
Add
(
m_Invisible
,
0
,
wxALL
,
5
);
sOptionsSizer
->
Add
(
m_Invisible
,
0
,
wxALL
,
5
);
bBottomtBoxSizer
->
Add
(
sOptionsSizer
,
0
,
wxALL
|
wxEXPAND
,
5
);
bBottomtBoxSizer
->
Add
(
sOptionsSizer
,
1
,
wxALL
|
wxEXPAND
,
5
);
wxString
m_TextShapeOptChoices
[]
=
{
_
(
"Normal"
),
_
(
"Italic"
),
_
(
"Bold"
),
_
(
"Bold Italic"
)
};
wxString
m_TextShapeOptChoices
[]
=
{
_
(
"Normal"
),
_
(
"Italic"
),
_
(
"Bold"
),
_
(
"Bold Italic"
)
};
int
m_TextShapeOptNChoices
=
sizeof
(
m_TextShapeOptChoices
)
/
sizeof
(
wxString
);
int
m_TextShapeOptNChoices
=
sizeof
(
m_TextShapeOptChoices
)
/
sizeof
(
wxString
);
m_TextShapeOpt
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Text Shape:"
),
wxDefaultPosition
,
wxDefaultSize
,
m_TextShapeOptNChoices
,
m_TextShapeOptChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_TextShapeOpt
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Text Shape:"
),
wxDefaultPosition
,
wxDefaultSize
,
m_TextShapeOptNChoices
,
m_TextShapeOptChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_TextShapeOpt
->
SetSelection
(
0
);
m_TextShapeOpt
->
SetSelection
(
0
);
bBottomtBoxSizer
->
Add
(
m_TextShapeOpt
,
0
,
wxALL
|
wxEXPAND
,
5
);
bBottomtBoxSizer
->
Add
(
m_TextShapeOpt
,
1
,
wxALL
|
wxEXPAND
,
5
);
wxString
m_TextHJustificationOptChoices
[]
=
{
_
(
"Align left"
),
_
(
"Align center"
),
_
(
"Align right"
)
};
wxString
m_TextHJustificationOptChoices
[]
=
{
_
(
"Align left"
),
_
(
"Align center"
),
_
(
"Align right"
)
};
int
m_TextHJustificationOptNChoices
=
sizeof
(
m_TextHJustificationOptChoices
)
/
sizeof
(
wxString
);
int
m_TextHJustificationOptNChoices
=
sizeof
(
m_TextHJustificationOptChoices
)
/
sizeof
(
wxString
);
m_TextHJustificationOpt
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Horiz. Justify"
),
wxDefaultPosition
,
wxDefaultSize
,
m_TextHJustificationOptNChoices
,
m_TextHJustificationOptChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_TextHJustificationOpt
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Horiz. Justify
:
"
),
wxDefaultPosition
,
wxDefaultSize
,
m_TextHJustificationOptNChoices
,
m_TextHJustificationOptChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_TextHJustificationOpt
->
SetSelection
(
1
);
m_TextHJustificationOpt
->
SetSelection
(
1
);
bBottomtBoxSizer
->
Add
(
m_TextHJustificationOpt
,
0
,
wxALL
|
wxEXPAND
,
5
);
bBottomtBoxSizer
->
Add
(
m_TextHJustificationOpt
,
1
,
wxALL
|
wxEXPAND
,
5
);
wxString
m_TextVJustificationOptChoices
[]
=
{
_
(
"Align bottom"
),
_
(
"Align center"
),
_
(
"Align top"
)
};
wxString
m_TextVJustificationOptChoices
[]
=
{
_
(
"Align bottom"
),
_
(
"Align center"
),
_
(
"Align top"
)
};
int
m_TextVJustificationOptNChoices
=
sizeof
(
m_TextVJustificationOptChoices
)
/
sizeof
(
wxString
);
int
m_TextVJustificationOptNChoices
=
sizeof
(
m_TextVJustificationOptChoices
)
/
sizeof
(
wxString
);
m_TextVJustificationOpt
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Vert. Justify"
),
wxDefaultPosition
,
wxDefaultSize
,
m_TextVJustificationOptNChoices
,
m_TextVJustificationOptChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_TextVJustificationOpt
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Vert. Justify
:
"
),
wxDefaultPosition
,
wxDefaultSize
,
m_TextVJustificationOptNChoices
,
m_TextVJustificationOptChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_TextVJustificationOpt
->
SetSelection
(
1
);
m_TextVJustificationOpt
->
SetSelection
(
1
);
bBottomtBoxSizer
->
Add
(
m_TextVJustificationOpt
,
0
,
wxALL
|
wxEXPAND
,
5
);
bBottomtBoxSizer
->
Add
(
m_TextVJustificationOpt
,
1
,
wxALL
|
wxEXPAND
,
5
);
bPropertiesSizer
->
Add
(
bBottomtBoxSizer
,
1
,
wxEXPAND
,
5
);
bPropertiesSizer
->
Add
(
bBottomtBoxSizer
,
1
,
wx
ALIGN_CENTER
|
wx
EXPAND
,
5
);
wxBoxSizer
*
bRightSizer
;
wxBoxSizer
*
bRightSizer
;
bRightSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
bRightSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
...
...
eeschema/dialogs/dialog_lib_edit_text_base.fbp
View file @
37c3ef50
...
@@ -483,7 +483,7 @@
...
@@ -483,7 +483,7 @@
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"flag"
>
wx
ALIGN_CENTER|wx
EXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"minimum_size"
></property>
...
@@ -493,10 +493,10 @@
...
@@ -493,10 +493,10 @@
<object
class=
"sizeritem"
expanded=
"1"
>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxStaticBoxSizer"
expanded=
"1"
>
<object
class=
"wxStaticBoxSizer"
expanded=
"1"
>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Text Options :
</property>
<property
name=
"label"
>
Text Options:
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
sOptionsSizer
</property>
<property
name=
"name"
>
sOptionsSizer
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
...
@@ -940,7 +940,7 @@
...
@@ -940,7 +940,7 @@
<object
class=
"sizeritem"
expanded=
"0"
>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
...
@@ -1030,7 +1030,7 @@
...
@@ -1030,7 +1030,7 @@
<object
class=
"sizeritem"
expanded=
"0"
>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
...
@@ -1060,7 +1060,7 @@
...
@@ -1060,7 +1060,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Horiz. Justify
</property>
<property
name=
"label"
>
Horiz. Justify
:
</property>
<property
name=
"majorDimension"
>
1
</property>
<property
name=
"majorDimension"
>
1
</property>
<property
name=
"max_size"
></property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximize_button"
>
0
</property>
...
@@ -1120,7 +1120,7 @@
...
@@ -1120,7 +1120,7 @@
<object
class=
"sizeritem"
expanded=
"0"
>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
...
@@ -1150,7 +1150,7 @@
...
@@ -1150,7 +1150,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Vert. Justify
</property>
<property
name=
"label"
>
Vert. Justify
:
</property>
<property
name=
"majorDimension"
>
1
</property>
<property
name=
"majorDimension"
>
1
</property>
<property
name=
"max_size"
></property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximize_button"
>
0
</property>
...
...
eeschema/dialogs/dialog_lib_edit_text_base.h
View file @
37c3ef50
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr
11 2012
)
// C++ code generated with wxFormBuilder (version Apr
30 2013
)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
#include <wx/artprov.h>
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include <wx/intl.h>
class
DIALOG_SHIM
;
#include "dialog_shim.h"
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/stattext.h>
...
...
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