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
8a71b1ae
Commit
8a71b1ae
authored
Mar 14, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
a6006ef3
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
252 additions
and
116 deletions
+252
-116
dialog_freeroute_exchange.cpp
pcbnew/dialog_freeroute_exchange.cpp
+179
-78
dialog_freeroute_exchange.h
pcbnew/dialog_freeroute_exchange.h
+62
-32
dialog_freeroute_exchange.pjd
pcbnew/dialog_freeroute_exchange.pjd
+11
-6
No files found.
pcbnew/dialog_freeroute_exchange.cpp
View file @
8a71b1ae
This diff is collapsed.
Click to expand it.
pcbnew/dialog_freeroute_exchange.h
View file @
8a71b1ae
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Name: dialog_freeroute_exchange.h
// Name: dialog_freeroute_exchange.h
// Purpose:
// Purpose:
// Author: jean-pierre Charras
// Author: jean-pierre Charras
...
@@ -39,13 +40,15 @@
...
@@ -39,13 +40,15 @@
#define ID_RUN_FREEROUTE 10002
#define ID_RUN_FREEROUTE 10002
#define ID_IMPORT_FREEROUTE_DSN_FILE 10003
#define ID_IMPORT_FREEROUTE_DSN_FILE 10003
#define ID_GOTO_FREEROUTE_WEB_SITE 10004
#define ID_GOTO_FREEROUTE_WEB_SITE 10004
#define ID_TEXTCTRL1 10005
#define ID_TEXT_EDIT_FR_URL 10005
#define ID_TEXTCTRL 10006
#define ID_TEXT_EDIT_FR_CMD 10006
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE wxCAPTION | wxRESIZE_BORDER | wxTHICK_FRAME |\
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_TITLE _("dialog_freeroute_exchange")
wxSYSTEM_MENU
|
wxCLOSE_BOX
|
wxTAB_TRAVERSAL
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_TITLE _( "dialog_freeroute_exchange" )
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_IDNAME ID_DIALOG_FREEROUTE_EXCHANGE
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_IDNAME ID_DIALOG_FREEROUTE_EXCHANGE
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_SIZE
wxSize(400, 300
)
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_SIZE
wxSize( 400, 300
)
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_POSITION wxDefaultPosition
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_POSITION wxDefaultPosition
////@end control identifiers
////@end control identifiers
...
@@ -53,18 +56,29 @@
...
@@ -53,18 +56,29 @@
* dialog_freeroute_exchange class declaration
* dialog_freeroute_exchange class declaration
*/
*/
class
dialog_freeroute_exchange
:
public
wxDialog
class
dialog_freeroute_exchange
:
public
wxDialog
{
{
DECLARE_DYNAMIC_CLASS
(
dialog_freeroute_exchange
)
DECLARE_DYNAMIC_CLASS
(
dialog_freeroute_exchange
)
DECLARE_EVENT_TABLE
()
DECLARE_EVENT_TABLE
()
public
:
public
:
/// Constructors
/// Constructors
dialog_freeroute_exchange
();
dialog_freeroute_exchange
();
dialog_freeroute_exchange
(
WinEDA_PcbFrame
*
parent
,
wxWindowID
id
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_IDNAME
,
const
wxString
&
caption
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_POSITION
,
const
wxSize
&
size
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_SIZE
,
long
style
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE
);
dialog_freeroute_exchange
(
WinEDA_PcbFrame
*
parent
,
wxWindowID
id
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_IDNAME
,
const
wxString
&
caption
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_POSITION
,
const
wxSize
&
size
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_SIZE
,
long
style
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE
);
/// Creation
/// Creation
bool
Create
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_IDNAME
,
const
wxString
&
caption
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_POSITION
,
const
wxSize
&
size
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_SIZE
,
long
style
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE
);
bool
Create
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_IDNAME
,
const
wxString
&
caption
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_POSITION
,
const
wxSize
&
size
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_SIZE
,
long
style
=
SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE
);
/// Destructor
/// Destructor
~
dialog_freeroute_exchange
();
~
dialog_freeroute_exchange
();
...
@@ -77,6 +91,9 @@ public:
...
@@ -77,6 +91,9 @@ public:
////@begin dialog_freeroute_exchange event handler declarations
////@begin dialog_freeroute_exchange event handler declarations
/// wxEVT_CLOSE_WINDOW event handler for ID_DIALOG_FREEROUTE_EXCHANGE
void
OnCloseWindow
(
wxCloseEvent
&
event
);
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CREATE_EXPORT_DSN_FILE
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CREATE_EXPORT_DSN_FILE
void
OnCreateExportDsnFileClick
(
wxCommandEvent
&
event
);
void
OnCreateExportDsnFileClick
(
wxCommandEvent
&
event
);
...
@@ -92,15 +109,25 @@ public:
...
@@ -92,15 +109,25 @@ public:
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GOTO_FREEROUTE_WEB_SITE
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GOTO_FREEROUTE_WEB_SITE
void
OnGotoFreerouteWebSiteClick
(
wxCommandEvent
&
event
);
void
OnGotoFreerouteWebSiteClick
(
wxCommandEvent
&
event
);
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXT_EDIT_FR_URL
void
OnTextEditFrUrlUpdated
(
wxCommandEvent
&
event
);
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXT_EDIT_FR_CMD
void
OnTextEditFrCmdUpdated
(
wxCommandEvent
&
event
);
////@end dialog_freeroute_exchange event handler declarations
////@end dialog_freeroute_exchange event handler declarations
////@begin dialog_freeroute_exchange member function declarations
////@begin dialog_freeroute_exchange member function declarations
bool
GetFreeRouteSetupChanged
()
const
{
return
m_FreeRouteSetupChanged
;
}
void
SetFreeRouteSetupChanged
(
bool
value
)
{
m_FreeRouteSetupChanged
=
value
;
}
/// Retrieves bitmap resources
/// Retrieves bitmap resources
wxBitmap
GetBitmapResource
(
const
wxString
&
name
);
wxBitmap
GetBitmapResource
(
const
wxString
&
name
);
/// Retrieves icon resources
/// Retrieves icon resources
wxIcon
GetIconResource
(
const
wxString
&
name
);
wxIcon
GetIconResource
(
const
wxString
&
name
);
////@end dialog_freeroute_exchange member function declarations
////@end dialog_freeroute_exchange member function declarations
/// Should we show tooltips?
/// Should we show tooltips?
...
@@ -109,10 +136,13 @@ public:
...
@@ -109,10 +136,13 @@ public:
////@begin dialog_freeroute_exchange member variables
////@begin dialog_freeroute_exchange member variables
wxTextCtrl
*
m_FreerouteURLName
;
wxTextCtrl
*
m_FreerouteURLName
;
wxTextCtrl
*
m_FreerouteURLCommandString
;
wxTextCtrl
*
m_FreerouteURLCommandString
;
private
:
bool
m_FreeRouteSetupChanged
;
// Flag set to true if Freeroute config changed
////@end dialog_freeroute_exchange member variables
////@end dialog_freeroute_exchange member variables
WinEDA_PcbFrame
*
m_Parent
;
WinEDA_PcbFrame
*
m_Parent
;
};
};
#endif
#endif
// _DIALOG_FREEROUTE_EXCHANGE_H_
// _DIALOG_FREEROUTE_EXCHANGE_H_
pcbnew/dialog_freeroute_exchange.pjd
View file @
8a71b1ae
...
@@ -210,6 +210,8 @@
...
@@ -210,6 +210,8 @@
<string
name=
"id-suffix"
>
""
</string>
<string
name=
"id-suffix"
>
""
</string>
<long
name=
"use-xrc"
>
0
</long>
<long
name=
"use-xrc"
>
0
</long>
<long
name=
"working-mode"
>
0
</long>
<long
name=
"working-mode"
>
0
</long>
<string
name=
"variable-0"
>
"m_FreeRouteSetupChanged|bool|FreeRouteSetupChanged|false|2|0|Flag set to true if Freeroute config changed"
</string>
<string
name=
"event-handler-0"
>
"wxEVT_CLOSE_WINDOW|OnCloseWindow|NONE||"
</string>
<string
name=
"proxy-Id name"
>
"ID_DIALOG_FREEROUTE_EXCHANGE"
</string>
<string
name=
"proxy-Id name"
>
"ID_DIALOG_FREEROUTE_EXCHANGE"
</string>
<long
name=
"proxy-Id value"
>
10000
</long>
<long
name=
"proxy-Id value"
>
10000
</long>
<string
name=
"proxy-Class"
>
"dialog_freeroute_exchange"
</string>
<string
name=
"proxy-Class"
>
"dialog_freeroute_exchange"
</string>
...
@@ -240,6 +242,7 @@
...
@@ -240,6 +242,7 @@
<bool
name=
"proxy-wxDEFAULT_DIALOG_STYLE"
>
0
</bool>
<bool
name=
"proxy-wxDEFAULT_DIALOG_STYLE"
>
0
</bool>
<bool
name=
"proxy-wxCAPTION"
>
1
</bool>
<bool
name=
"proxy-wxCAPTION"
>
1
</bool>
<bool
name=
"proxy-wxRESIZE_BORDER"
>
1
</bool>
<bool
name=
"proxy-wxRESIZE_BORDER"
>
1
</bool>
<bool
name=
"proxy-wxTHICK_FRAME"
>
1
</bool>
<bool
name=
"proxy-wxSYSTEM_MENU"
>
1
</bool>
<bool
name=
"proxy-wxSYSTEM_MENU"
>
1
</bool>
<bool
name=
"proxy-wxSTAY_ON_TOP"
>
0
</bool>
<bool
name=
"proxy-wxSTAY_ON_TOP"
>
0
</bool>
<bool
name=
"proxy-wxDIALOG_NO_PARENT"
>
0
</bool>
<bool
name=
"proxy-wxDIALOG_NO_PARENT"
>
0
</bool>
...
@@ -300,7 +303,7 @@
...
@@ -300,7 +303,7 @@
<string
name=
"proxy-Orientation"
>
"Vertical"
</string>
<string
name=
"proxy-Orientation"
>
"Vertical"
</string>
<string
name=
"proxy-Member variable name"
>
""
</string>
<string
name=
"proxy-Member variable name"
>
""
</string>
<string
name=
"proxy-AlignH"
>
"Centre"
</string>
<string
name=
"proxy-AlignH"
>
"Centre"
</string>
<string
name=
"proxy-AlignV"
>
"
Centre
"
</string>
<string
name=
"proxy-AlignV"
>
"
Expand
"
</string>
<long
name=
"proxy-Stretch factor"
>
0
</long>
<long
name=
"proxy-Stretch factor"
>
0
</long>
<long
name=
"proxy-Border"
>
5
</long>
<long
name=
"proxy-Border"
>
5
</long>
<bool
name=
"proxy-wxLEFT"
>
1
</bool>
<bool
name=
"proxy-wxLEFT"
>
1
</bool>
...
@@ -595,7 +598,7 @@
...
@@ -595,7 +598,7 @@
<string
name=
"proxy-Member variable name"
>
""
</string>
<string
name=
"proxy-Member variable name"
>
""
</string>
<string
name=
"proxy-AlignH"
>
"Centre"
</string>
<string
name=
"proxy-AlignH"
>
"Centre"
</string>
<string
name=
"proxy-AlignV"
>
"Expand"
</string>
<string
name=
"proxy-AlignV"
>
"Expand"
</string>
<long
name=
"proxy-Stretch factor"
>
0
</long>
<long
name=
"proxy-Stretch factor"
>
1
</long>
<long
name=
"proxy-Border"
>
5
</long>
<long
name=
"proxy-Border"
>
5
</long>
<bool
name=
"proxy-wxLEFT"
>
1
</bool>
<bool
name=
"proxy-wxLEFT"
>
1
</bool>
<bool
name=
"proxy-wxRIGHT"
>
1
</bool>
<bool
name=
"proxy-wxRIGHT"
>
1
</bool>
...
@@ -743,7 +746,7 @@
...
@@ -743,7 +746,7 @@
<string
name=
"proxy-Custom ctor arguments"
>
""
</string>
<string
name=
"proxy-Custom ctor arguments"
>
""
</string>
</document>
</document>
<document>
<document>
<string
name=
"title"
>
"wxTextCtrl: ID_TEXT
CTRL1
"
</string>
<string
name=
"title"
>
"wxTextCtrl: ID_TEXT
_EDIT_FR_URL
"
</string>
<string
name=
"type"
>
"dialog-control-document"
</string>
<string
name=
"type"
>
"dialog-control-document"
</string>
<string
name=
"filename"
>
""
</string>
<string
name=
"filename"
>
""
</string>
<string
name=
"icon-name"
>
"textctrl"
</string>
<string
name=
"icon-name"
>
"textctrl"
</string>
...
@@ -753,7 +756,8 @@
...
@@ -753,7 +756,8 @@
<long
name=
"locked"
>
0
</long>
<long
name=
"locked"
>
0
</long>
<string
name=
"created"
>
"14/3/2008"
</string>
<string
name=
"created"
>
"14/3/2008"
</string>
<string
name=
"proxy-type"
>
"wbTextCtrlProxy"
</string>
<string
name=
"proxy-type"
>
"wbTextCtrlProxy"
</string>
<string
name=
"proxy-Id name"
>
"ID_TEXTCTRL1"
</string>
<string
name=
"event-handler-0"
>
"wxEVT_COMMAND_TEXT_UPDATED|OnTextEditFrUrlUpdated|NONE||dialog_freeroute_exchange"
</string>
<string
name=
"proxy-Id name"
>
"ID_TEXT_EDIT_FR_URL"
</string>
<long
name=
"proxy-Id value"
>
10005
</long>
<long
name=
"proxy-Id value"
>
10005
</long>
<string
name=
"proxy-Name"
>
""
</string>
<string
name=
"proxy-Name"
>
""
</string>
<string
name=
"proxy-Class"
>
"wxTextCtrl"
</string>
<string
name=
"proxy-Class"
>
"wxTextCtrl"
</string>
...
@@ -895,7 +899,7 @@
...
@@ -895,7 +899,7 @@
<string
name=
"proxy-Custom ctor arguments"
>
""
</string>
<string
name=
"proxy-Custom ctor arguments"
>
""
</string>
</document>
</document>
<document>
<document>
<string
name=
"title"
>
"wxTextCtrl: ID_TEXT
CTRL
"
</string>
<string
name=
"title"
>
"wxTextCtrl: ID_TEXT
_EDIT_FR_CMD
"
</string>
<string
name=
"type"
>
"dialog-control-document"
</string>
<string
name=
"type"
>
"dialog-control-document"
</string>
<string
name=
"filename"
>
""
</string>
<string
name=
"filename"
>
""
</string>
<string
name=
"icon-name"
>
"textctrl"
</string>
<string
name=
"icon-name"
>
"textctrl"
</string>
...
@@ -905,7 +909,8 @@
...
@@ -905,7 +909,8 @@
<long
name=
"locked"
>
0
</long>
<long
name=
"locked"
>
0
</long>
<string
name=
"created"
>
"14/3/2008"
</string>
<string
name=
"created"
>
"14/3/2008"
</string>
<string
name=
"proxy-type"
>
"wbTextCtrlProxy"
</string>
<string
name=
"proxy-type"
>
"wbTextCtrlProxy"
</string>
<string
name=
"proxy-Id name"
>
"ID_TEXTCTRL"
</string>
<string
name=
"event-handler-0"
>
"wxEVT_COMMAND_TEXT_UPDATED|OnTextEditFrCmdUpdated|NONE||dialog_freeroute_exchange"
</string>
<string
name=
"proxy-Id name"
>
"ID_TEXT_EDIT_FR_CMD"
</string>
<long
name=
"proxy-Id value"
>
10006
</long>
<long
name=
"proxy-Id value"
>
10006
</long>
<string
name=
"proxy-Name"
>
""
</string>
<string
name=
"proxy-Name"
>
""
</string>
<string
name=
"proxy-Class"
>
"wxTextCtrl"
</string>
<string
name=
"proxy-Class"
>
"wxTextCtrl"
</string>
...
...
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