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
9e35d3ef
Commit
9e35d3ef
authored
Mar 20, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refined the dialog_freeroute_exchange. See changelog
parent
44751743
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
3932 additions
and
5679 deletions
+3932
-5679
CMakeLists.txt
CMakeLists.txt
+2
-0
change_log.txt
change_log.txt
+8
-1
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+3899
-3894
dialog_freeroute_exchange.cpp
pcbnew/dialog_freeroute_exchange.cpp
+20
-44
dialog_freeroute_exchange.h
pcbnew/dialog_freeroute_exchange.h
+0
-5
dialog_freeroute_exchange.pjd
pcbnew/dialog_freeroute_exchange.pjd
+3
-159
gr_basic.cpp.notused
share/gr_basic.cpp.notused
+0
-1576
No files found.
CMakeLists.txt
View file @
9e35d3ef
...
@@ -107,6 +107,8 @@ add_subdirectory(internat)
...
@@ -107,6 +107,8 @@ add_subdirectory(internat)
add_subdirectory
(
template
)
add_subdirectory
(
template
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/install.txt DESTINATION
${
KICAD_DOCS
}
COMPONENT resources
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/install.txt DESTINATION
${
KICAD_DOCS
}
COMPONENT resources
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/freeroute.jnlp DESTINATION
${
KICAD_BIN
}
COMPONENT resources
)
if
(
UNIX
)
if
(
UNIX
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/share/kicad.desktop
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/share/kicad.desktop
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/applications COMPONENT resources
)
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/applications COMPONENT resources
)
...
...
change_log.txt
View file @
9e35d3ef
...
@@ -5,6 +5,13 @@ Started 2007-June-11
...
@@ -5,6 +5,13 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.
2008-Mar-20 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+pcbnew
refined the dialog_freeroute_exchange
If possible (i.e. if freeroute.jnlp is found in kicad binary directory) javaws is called insteed of the default browser)
So @todo removed
2008-Mar-19 UPDATE Dick Hollenbeck <dick@softplc.com>
2008-Mar-19 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
================================================================================
+eeschema
+eeschema
...
@@ -35,7 +42,7 @@ email address.
...
@@ -35,7 +42,7 @@ email address.
* how-to-build-for-windows.txt deprecated.
* how-to-build-for-windows.txt deprecated.
2008-Mar-18 UPDATE
Jean-Pierre Charras <jean-pierre.charras@inpg.fr
>
2008-Mar-18 UPDATE
Dick Hollenbeck <dick@softplc.com
>
================================================================================
================================================================================
+pcbnew
+pcbnew
refined the dialog_freeroute_exchange.pjd file, adding tooltips, wording
refined the dialog_freeroute_exchange.pjd file, adding tooltips, wording
...
...
internat/fr/kicad.mo
View file @
9e35d3ef
No preview for this file type
internat/fr/kicad.po
View file @
9e35d3ef
This diff is collapsed.
Click to expand it.
pcbnew/dialog_freeroute_exchange.cpp
View file @
9e35d3ef
...
@@ -79,8 +79,6 @@ BEGIN_EVENT_TABLE( dialog_freeroute_exchange, wxDialog )
...
@@ -79,8 +79,6 @@ BEGIN_EVENT_TABLE( dialog_freeroute_exchange, wxDialog )
EVT_TEXT
(
ID_TEXTCTRL2
,
dialog_freeroute_exchange
::
OnTextEditFrUrlUpdated
)
EVT_TEXT
(
ID_TEXTCTRL2
,
dialog_freeroute_exchange
::
OnTextEditFrUrlUpdated
)
EVT_TEXT
(
ID_TEXTCTRL3
,
dialog_freeroute_exchange
::
OnTextEditFrCmdUpdated
)
EVT_BUTTON
(
wxID_CANCEL
,
dialog_freeroute_exchange
::
OnCancelClick
)
EVT_BUTTON
(
wxID_CANCEL
,
dialog_freeroute_exchange
::
OnCancelClick
)
////@end dialog_freeroute_exchange event table entries
////@end dialog_freeroute_exchange event table entries
...
@@ -158,7 +156,6 @@ void dialog_freeroute_exchange::Init()
...
@@ -158,7 +156,6 @@ void dialog_freeroute_exchange::Init()
m_FreeRouteSetupChanged
=
false
;
m_FreeRouteSetupChanged
=
false
;
m_ExportDSN
=
NULL
;
m_ExportDSN
=
NULL
;
m_FreerouteURLName
=
NULL
;
m_FreerouteURLName
=
NULL
;
m_FreerouteURLCommandString
=
NULL
;
////@end dialog_freeroute_exchange member initialisation
////@end dialog_freeroute_exchange member initialisation
}
}
...
@@ -170,7 +167,7 @@ void dialog_freeroute_exchange::Init()
...
@@ -170,7 +167,7 @@ void dialog_freeroute_exchange::Init()
void
dialog_freeroute_exchange
::
CreateControls
()
void
dialog_freeroute_exchange
::
CreateControls
()
{
{
////@begin dialog_freeroute_exchange content construction
////@begin dialog_freeroute_exchange content construction
// Generated by DialogBlocks,
Wed 19 Mar 2008 10:23:32 CDT
(unregistered)
// Generated by DialogBlocks,
20/03/2008 09:26:34
(unregistered)
dialog_freeroute_exchange
*
itemDialog1
=
this
;
dialog_freeroute_exchange
*
itemDialog1
=
this
;
...
@@ -192,9 +189,9 @@ void dialog_freeroute_exchange::CreateControls()
...
@@ -192,9 +189,9 @@ void dialog_freeroute_exchange::CreateControls()
m_ExportDSN
->
SetToolTip
(
_
(
"Export a Specctra DSN file (to FreeRouter)"
));
m_ExportDSN
->
SetToolTip
(
_
(
"Export a Specctra DSN file (to FreeRouter)"
));
itemStaticBoxSizer5
->
Add
(
m_ExportDSN
,
0
,
wxGROW
|
wxALL
,
5
);
itemStaticBoxSizer5
->
Add
(
m_ExportDSN
,
0
,
wxGROW
|
wxALL
,
5
);
wxButton
*
itemButton7
=
new
wxButton
(
itemPanel3
,
ID_BUTTON5
,
_
(
"Launch FreeRouter via
Browser
"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
wxButton
*
itemButton7
=
new
wxButton
(
itemPanel3
,
ID_BUTTON5
,
_
(
"Launch FreeRouter via
Java Web Start
"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
if
(
dialog_freeroute_exchange
::
ShowToolTips
())
if
(
dialog_freeroute_exchange
::
ShowToolTips
())
itemButton7
->
SetToolTip
(
_
(
"Use
r your browser's Java Web Start function to run FreeRouter via Internet
"
));
itemButton7
->
SetToolTip
(
_
(
"Use
Java Web Start function to run FreeRouter via Internet (or your Browser if not found)
"
));
itemStaticBoxSizer5
->
Add
(
itemButton7
,
0
,
wxGROW
|
wxALL
,
5
);
itemStaticBoxSizer5
->
Add
(
itemButton7
,
0
,
wxGROW
|
wxALL
,
5
);
wxButton
*
itemButton8
=
new
wxButton
(
itemPanel3
,
ID_BUTTON6
,
_
(
"Back Import the Specctra Session (*.ses) File"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
wxButton
*
itemButton8
=
new
wxButton
(
itemPanel3
,
ID_BUTTON6
,
_
(
"Back Import the Specctra Session (*.ses) File"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
...
@@ -204,7 +201,7 @@ void dialog_freeroute_exchange::CreateControls()
...
@@ -204,7 +201,7 @@ void dialog_freeroute_exchange::CreateControls()
wxStaticBox
*
itemStaticBoxSizer9Static
=
new
wxStaticBox
(
itemPanel3
,
wxID_ANY
,
_T
(
""
));
wxStaticBox
*
itemStaticBoxSizer9Static
=
new
wxStaticBox
(
itemPanel3
,
wxID_ANY
,
_T
(
""
));
wxStaticBoxSizer
*
itemStaticBoxSizer9
=
new
wxStaticBoxSizer
(
itemStaticBoxSizer9Static
,
wxVERTICAL
);
wxStaticBoxSizer
*
itemStaticBoxSizer9
=
new
wxStaticBoxSizer
(
itemStaticBoxSizer9Static
,
wxVERTICAL
);
itemBoxSizer4
->
Add
(
itemStaticBoxSizer9
,
1
,
wx
GROW
|
wxALL
,
5
);
itemBoxSizer4
->
Add
(
itemStaticBoxSizer9
,
1
,
wx
ALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
wxButton
*
itemButton10
=
new
wxButton
(
itemPanel3
,
ID_BUTTON7
,
_
(
"Visit the FreeRouting.net Website with your Browser"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
wxButton
*
itemButton10
=
new
wxButton
(
itemPanel3
,
ID_BUTTON7
,
_
(
"Visit the FreeRouting.net Website with your Browser"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
if
(
dialog_freeroute_exchange
::
ShowToolTips
())
if
(
dialog_freeroute_exchange
::
ShowToolTips
())
...
@@ -217,23 +214,15 @@ void dialog_freeroute_exchange::CreateControls()
...
@@ -217,23 +214,15 @@ void dialog_freeroute_exchange::CreateControls()
m_FreerouteURLName
=
new
wxTextCtrl
(
itemPanel3
,
ID_TEXTCTRL2
,
_T
(
""
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_FreerouteURLName
=
new
wxTextCtrl
(
itemPanel3
,
ID_TEXTCTRL2
,
_T
(
""
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
if
(
dialog_freeroute_exchange
::
ShowToolTips
())
if
(
dialog_freeroute_exchange
::
ShowToolTips
())
m_FreerouteURLName
->
SetToolTip
(
_
(
"The URL of the FreeRouting.net website"
));
m_FreerouteURLName
->
SetToolTip
(
_
(
"The URL of the FreeRouting.net website"
));
itemStaticBoxSizer9
->
Add
(
m_FreerouteURLName
,
1
,
wxGROW
|
wxLEFT
|
wxRIGHT
|
wxBOTTOM
,
5
);
itemStaticBoxSizer9
->
Add
(
m_FreerouteURLName
,
0
,
wxGROW
|
wxLEFT
|
wxRIGHT
|
wxBOTTOM
,
5
);
wxStaticText
*
itemStaticText13
=
new
wxStaticText
(
itemPanel3
,
wxID_STATIC
,
_
(
"FreeRouting.net Command"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
itemStaticBoxSizer9
->
Add
(
itemStaticText13
,
0
,
wxGROW
|
wxLEFT
|
wxRIGHT
|
wxTOP
,
5
);
m_FreerouteURLCommandString
=
new
wxTextCtrl
(
itemPanel3
,
ID_TEXTCTRL3
,
_T
(
""
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
if
(
dialog_freeroute_exchange
::
ShowToolTips
())
m_FreerouteURLCommandString
->
SetToolTip
(
_
(
"The URL of the JNLP file which Java Web Start uses to launch the FreeRouter"
));
itemStaticBoxSizer9
->
Add
(
m_FreerouteURLCommandString
,
1
,
wxGROW
|
wxLEFT
|
wxRIGHT
|
wxBOTTOM
,
5
);
wxStdDialogButtonSizer
*
itemStdDialogButtonSizer1
5
=
new
wxStdDialogButtonSizer
;
wxStdDialogButtonSizer
*
itemStdDialogButtonSizer1
3
=
new
wxStdDialogButtonSizer
;
itemBoxSizer2
->
Add
(
itemStdDialogButtonSizer1
5
,
0
,
wxGROW
|
wxALL
,
5
);
itemBoxSizer2
->
Add
(
itemStdDialogButtonSizer1
3
,
0
,
wxGROW
|
wxALL
,
5
);
wxButton
*
itemButton1
6
=
new
wxButton
(
itemDialog1
,
wxID_CANCEL
,
_
(
"&Close"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
wxButton
*
itemButton1
4
=
new
wxButton
(
itemDialog1
,
wxID_CANCEL
,
_
(
"&Close"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
itemStdDialogButtonSizer1
5
->
AddButton
(
itemButton16
);
itemStdDialogButtonSizer1
3
->
AddButton
(
itemButton14
);
itemStdDialogButtonSizer1
5
->
Realize
();
itemStdDialogButtonSizer1
3
->
Realize
();
////@end dialog_freeroute_exchange content construction
////@end dialog_freeroute_exchange content construction
...
@@ -243,13 +232,6 @@ void dialog_freeroute_exchange::CreateControls()
...
@@ -243,13 +232,6 @@ void dialog_freeroute_exchange::CreateControls()
m_FreerouteURLName
->
SetValue
(
wxT
(
"http://www.freerouting.net/"
)
);
m_FreerouteURLName
->
SetValue
(
wxT
(
"http://www.freerouting.net/"
)
);
else
else
m_FreerouteURLName
->
SetValue
(
msg
);
m_FreerouteURLName
->
SetValue
(
msg
);
msg
.
Empty
();
m_Parent
->
m_Parent
->
m_EDA_Config
->
Read
(
FREEROUTE_RUN_KEY
,
&
msg
);
if
(
msg
.
IsEmpty
()
)
m_FreerouteURLCommandString
->
SetValue
(
wxT
(
"http://www.freerouting.net/java/freeroute.jnlp"
)
);
else
m_FreerouteURLCommandString
->
SetValue
(
msg
);
}
}
...
@@ -317,12 +299,17 @@ void dialog_freeroute_exchange::OnButton6Click( wxCommandEvent& event )
...
@@ -317,12 +299,17 @@ void dialog_freeroute_exchange::OnButton6Click( wxCommandEvent& event )
void
dialog_freeroute_exchange
::
OnButton5Click
(
wxCommandEvent
&
event
)
void
dialog_freeroute_exchange
::
OnButton5Click
(
wxCommandEvent
&
event
)
{
{
wxString
command
=
m_FreerouteURLCommandString
->
GetValue
();
wxString
FullFileName
=
FindKicadFile
(
wxT
(
"freeroute.jnlp"
)
);
wxString
command
;
if
(
wxFileExists
(
FullFileName
)
)
{
command
<<
wxT
(
"javaws"
)
<<
wxT
(
" "
)
+
FullFileName
;
wxExecute
(
command
);
return
;
}
// @todo:
command
=
m_FreerouteURLName
->
GetValue
()
+
wxT
(
"/java/freeroute.jnlp"
);
// 1) add freeroute.jnlp to the Kicad project
// 2) change this next C++ line simply run $ "javaws freeroute.jnlp" as a system
// command, bypassing the browser altogether. Merely need a PATH to javaws.
wxLaunchDefaultBrowser
(
command
);
wxLaunchDefaultBrowser
(
command
);
}
}
...
@@ -363,8 +350,6 @@ void dialog_freeroute_exchange::OnCloseWindow( wxCloseEvent& event )
...
@@ -363,8 +350,6 @@ void dialog_freeroute_exchange::OnCloseWindow( wxCloseEvent& event )
{
{
m_Parent
->
m_Parent
->
m_EDA_Config
->
Write
(
FREEROUTE_URL_KEY
,
m_Parent
->
m_Parent
->
m_EDA_Config
->
Write
(
FREEROUTE_URL_KEY
,
m_FreerouteURLName
->
GetValue
()
);
m_FreerouteURLName
->
GetValue
()
);
m_Parent
->
m_Parent
->
m_EDA_Config
->
Write
(
FREEROUTE_RUN_KEY
,
m_FreerouteURLCommandString
->
GetValue
()
);
}
}
Destroy
();
Destroy
();
...
@@ -381,15 +366,6 @@ void dialog_freeroute_exchange::OnTextEditFrUrlUpdated( wxCommandEvent& event )
...
@@ -381,15 +366,6 @@ void dialog_freeroute_exchange::OnTextEditFrUrlUpdated( wxCommandEvent& event )
}
}
/*!
* wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXT_EDIT_FR_CMD
*/
void
dialog_freeroute_exchange
::
OnTextEditFrCmdUpdated
(
wxCommandEvent
&
event
)
{
m_FreeRouteSetupChanged
=
true
;
}
/*!
/*!
* wxEVT_INIT_DIALOG event handler for ID_DIALOG_FREEROUTE_EXCHANGE
* wxEVT_INIT_DIALOG event handler for ID_DIALOG_FREEROUTE_EXCHANGE
...
...
pcbnew/dialog_freeroute_exchange.h
View file @
9e35d3ef
...
@@ -42,7 +42,6 @@
...
@@ -42,7 +42,6 @@
#define ID_BUTTON6 10004
#define ID_BUTTON6 10004
#define ID_BUTTON7 10005
#define ID_BUTTON7 10005
#define ID_TEXTCTRL2 10006
#define ID_TEXTCTRL2 10006
#define ID_TEXTCTRL3 10013
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE wxCAPTION|wxRESIZE_BORDER|wxCLOSE_BOX|wxTAB_TRAVERSAL
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE wxCAPTION|wxRESIZE_BORDER|wxCLOSE_BOX|wxTAB_TRAVERSAL
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_TITLE _("dialog_freeroute_exchange")
#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
...
@@ -100,9 +99,6 @@ public:
...
@@ -100,9 +99,6 @@ public:
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL2
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL2
void
OnTextEditFrUrlUpdated
(
wxCommandEvent
&
event
);
void
OnTextEditFrUrlUpdated
(
wxCommandEvent
&
event
);
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL3
void
OnTextEditFrCmdUpdated
(
wxCommandEvent
&
event
);
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
void
OnCancelClick
(
wxCommandEvent
&
event
);
void
OnCancelClick
(
wxCommandEvent
&
event
);
...
@@ -126,7 +122,6 @@ public:
...
@@ -126,7 +122,6 @@ public:
////@begin dialog_freeroute_exchange member variables
////@begin dialog_freeroute_exchange member variables
wxButton
*
m_ExportDSN
;
wxButton
*
m_ExportDSN
;
wxTextCtrl
*
m_FreerouteURLName
;
wxTextCtrl
*
m_FreerouteURLName
;
wxTextCtrl
*
m_FreerouteURLCommandString
;
private
:
private
:
bool
m_FreeRouteSetupChanged
;
// Flag set to true if Freeroute config changed
bool
m_FreeRouteSetupChanged
;
// Flag set to true if Freeroute config changed
////@end dialog_freeroute_exchange member variables
////@end dialog_freeroute_exchange member variables
...
...
pcbnew/dialog_freeroute_exchange.pjd
View file @
9e35d3ef
This diff is collapsed.
Click to expand it.
share/gr_basic.cpp.notused
deleted
100644 → 0
View file @
44751743
This diff is collapsed.
Click to expand it.
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