Commit e6717b3f authored by dickelbeck's avatar dickelbeck
Browse files

specctra dialog refinements

parent 6d17236b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -5,6 +5,18 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
email address.


2008-Mar-18 UPDATE  Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+pcbnew
    refined the dialog_freeroute_exchange.pjd file, adding tooltips, wording
    changes, and added this comment also:
    // @todo:
    // 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.


2008-Mar-18 UPDATE  Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+pcbnew
+70 −88
Original line number Diff line number Diff line
@@ -97,14 +97,14 @@ dialog_freeroute_exchange::dialog_freeroute_exchange()
}


dialog_freeroute_exchange::dialog_freeroute_exchange( WinEDA_PcbFrame* parent,
dialog_freeroute_exchange::dialog_freeroute_exchange( wxWindow* parent,
                                                      wxWindowID id,
                                                      const wxString& caption,
                                                      const wxPoint& pos,
                                                      const wxSize& size,
                                                      long style )
{
    m_Parent = parent;
    m_Parent = (WinEDA_PcbFrame*) parent;
    Init();
    Create( parent, id, caption, pos, size, style );
}
@@ -131,7 +131,6 @@ bool dialog_freeroute_exchange::Create( wxWindow* parent,
        GetSizer()->SetSizeHints(this);
    }
    Centre();

////@end dialog_freeroute_exchange creation
    return true;
}
@@ -158,7 +157,6 @@ void dialog_freeroute_exchange::Init()
    m_FreeRouteSetupChanged = false;
    m_FreerouteURLName = NULL;
    m_FreerouteURLCommandString = NULL;

////@end dialog_freeroute_exchange member initialisation
}

@@ -170,78 +168,59 @@ void dialog_freeroute_exchange::Init()
void dialog_freeroute_exchange::CreateControls()
{
////@begin dialog_freeroute_exchange content construction
    // Generated by DialogBlocks, 14/03/2008 16:00:48 (unregistered)
    // Generated by DialogBlocks, Tue 18 Mar 2008 16:15:58 CDT (unregistered)

    dialog_freeroute_exchange* itemDialog1 = this;

    wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxHORIZONTAL);

    itemDialog1->SetSizer(itemBoxSizer2);

    wxBoxSizer* itemBoxSizer3 = new wxBoxSizer(wxVERTICAL);
    itemBoxSizer2->Add(itemBoxSizer3, 0, wxGROW|wxALL, 5);

    wxButton*   itemButton4 = new wxButton( itemDialog1, ID_CREATE_EXPORT_DSN_FILE,
                                            _(
                                                "Create Export Dsn File" ), wxDefaultPosition,
                                            wxDefaultSize, 0 );
    itemButton4->SetHelpText( _( "Create an export DNS file to freeroute" ) );
    wxButton* itemButton4 = new wxButton( itemDialog1, ID_CREATE_EXPORT_DSN_FILE, _("Export a Specctra Design (*.dsn) File"), wxDefaultPosition, wxDefaultSize, 0 );
    if (dialog_freeroute_exchange::ShowToolTips())
        itemButton4->SetToolTip( _( "Create an export DNS file to freeroute" ) );
        itemButton4->SetToolTip(_("Export a Specctra DSN file (to FreeRouter)"));
    itemBoxSizer3->Add(itemButton4, 0, wxGROW|wxALL, 5);

    wxButton* itemButton5 = new wxButton( itemDialog1, ID_RUN_FREEROUTE, _(
                                              "Connect to FreeROUTE" ), wxDefaultPosition,
                                          wxDefaultSize, 0 );
    itemButton5->SetHelpText( _( "Run the WEb Based Freeroute Router" ) );
    wxButton* itemButton5 = new wxButton( itemDialog1, ID_RUN_FREEROUTE, _("Launch FreeRouter via Browser"), wxDefaultPosition, wxDefaultSize, 0 );
    if (dialog_freeroute_exchange::ShowToolTips())
        itemButton5->SetToolTip( _( "Run the WEb Based Freeroute Router" ) );
        itemButton5->SetToolTip(_("User your browser's Java Web Start function to run FreeRouter via Internet"));
    itemBoxSizer3->Add(itemButton5, 0, wxGROW|wxALL, 5);

    wxButton* itemButton6 = new wxButton( itemDialog1, ID_IMPORT_FREEROUTE_DSN_FILE,
                                          _(
                                              "Read Design File" ), wxDefaultPosition,
                                          wxDefaultSize, 0 );
    itemButton6->SetHelpText( _( "Read the design file created by freeroute" ) );
    wxButton* itemButton6 = new wxButton( itemDialog1, ID_IMPORT_FREEROUTE_DSN_FILE, _("Back Import the Specctra Session (*.ses) File"), wxDefaultPosition, wxDefaultSize, 0 );
    if (dialog_freeroute_exchange::ShowToolTips())
        itemButton6->SetToolTip( _( "Read the design file created by freeroute" ) );
        itemButton6->SetToolTip(_("Merge a session file created by FreeRouter with the current board."));
    itemBoxSizer3->Add(itemButton6, 0, wxGROW|wxALL, 5);

    wxButton*   itemButton7 = new wxButton( itemDialog1, wxID_CLOSE, _(
                                                "&Close" ), wxDefaultPosition, wxDefaultSize, 0 );
    wxButton* itemButton7 = new wxButton( itemDialog1, wxID_CLOSE, _("&Close"), wxDefaultPosition, wxDefaultSize, 0 );
    if (dialog_freeroute_exchange::ShowToolTips())
        itemButton7->SetToolTip(_("Close this dialog window"));
    itemBoxSizer3->Add(itemButton7, 0, wxGROW|wxALL, 5);

    wxBoxSizer* itemBoxSizer8 = new wxBoxSizer(wxVERTICAL);
    itemBoxSizer2->Add(itemBoxSizer8, 1, wxGROW|wxALL, 5);

    wxButton*   itemButton9 = new wxButton( itemDialog1, ID_GOTO_FREEROUTE_WEB_SITE,
                                            _(
                                                "Access to FreeROUTE Web Site" ),
                                            wxDefaultPosition, wxDefaultSize, 0 );
    itemButton9->SetHelpText( _( "Run the WEb Based Freeroute Router" ) );
    wxButton* itemButton9 = new wxButton( itemDialog1, ID_GOTO_FREEROUTE_WEB_SITE, _("Visit the FreeRouting.net Website with your Browser"), wxDefaultPosition, wxDefaultSize, 0 );
    if (dialog_freeroute_exchange::ShowToolTips())
        itemButton9->SetToolTip( _( "Run the WEb Based Freeroute Router" ) );
        itemButton9->SetToolTip(_("Launch your browser and go to the FreeRouting.net website"));
    itemBoxSizer8->Add(itemButton9, 0, wxGROW|wxALL, 5);

    wxStaticText* itemStaticText10 = new wxStaticText( itemDialog1, wxID_STATIC,
                                                       _(
                                                           "FreeRoute URL" ), wxDefaultPosition,
                                                       wxDefaultSize, 0 );
    wxStaticText* itemStaticText10 = new wxStaticText( itemDialog1, wxID_STATIC, _("FreeRouting.net URL"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer8->Add(itemStaticText10, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP, 5);

    m_FreerouteURLName = new wxTextCtrl( itemDialog1, ID_TEXT_EDIT_FR_URL, _T(
                                             "" ), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer8->Add( m_FreerouteURLName, 0, wxGROW | wxLEFT | wxRIGHT | wxBOTTOM, 5 );
    m_FreerouteURLName = new wxTextCtrl( itemDialog1, ID_TEXT_EDIT_FR_URL, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
    if (dialog_freeroute_exchange::ShowToolTips())
        m_FreerouteURLName->SetToolTip(_("The URL of the FreeRouting.net website"));
    itemBoxSizer8->Add(m_FreerouteURLName, 1, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);

    wxStaticText* itemStaticText12 = new wxStaticText( itemDialog1, wxID_STATIC,
                                                       _(
                                                           "FreeRoute Command" ),
                                                       wxDefaultPosition, wxDefaultSize, 0 );
    wxStaticText* itemStaticText12 = new wxStaticText( itemDialog1, wxID_STATIC, _("FreeRouting.net Command"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer8->Add(itemStaticText12, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP, 5);

    m_FreerouteURLCommandString = new wxTextCtrl( itemDialog1, ID_TEXT_EDIT_FR_CMD, _T(
                                                      "" ), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer8->Add( m_FreerouteURLCommandString, 0, wxGROW | wxLEFT | wxRIGHT | wxBOTTOM, 5 );
    m_FreerouteURLCommandString = new wxTextCtrl( itemDialog1, ID_TEXT_EDIT_FR_CMD, _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"));
    itemBoxSizer8->Add(m_FreerouteURLCommandString, 1, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);

////@end dialog_freeroute_exchange content construction

@@ -281,7 +260,6 @@ wxBitmap dialog_freeroute_exchange::GetBitmapResource( const wxString& name )
////@begin dialog_freeroute_exchange bitmap retrieval
    wxUnusedVar(name);
    return wxNullBitmap;

////@end dialog_freeroute_exchange bitmap retrieval
}

@@ -296,7 +274,6 @@ wxIcon dialog_freeroute_exchange::GetIconResource( const wxString& name )
////@begin dialog_freeroute_exchange icon retrieval
    wxUnusedVar(name);
    return wxNullIcon;

////@end dialog_freeroute_exchange icon retrieval
}

@@ -329,6 +306,11 @@ void dialog_freeroute_exchange::OnRunFreerouteClick( wxCommandEvent& event )
{
    wxString command = m_FreerouteURLCommandString->GetValue();

    // @todo:
    // 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 );
}

+31 −45
Original line number Diff line number Diff line
@@ -42,13 +42,11 @@
#define ID_GOTO_FREEROUTE_WEB_SITE 10004
#define ID_TEXT_EDIT_FR_URL 10005
#define ID_TEXT_EDIT_FR_CMD 10006
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE    wxCAPTION | wxRESIZE_BORDER | wxTHICK_FRAME |\
    wxSYSTEM_MENU | wxCLOSE_BOX | wxTAB_TRAVERSAL
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE wxCAPTION|wxRESIZE_BORDER|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_SIZE wxSize(400, 300)
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_POSITION wxDefaultPosition

////@end control identifiers


@@ -62,23 +60,12 @@ class dialog_freeroute_exchange : public wxDialog
    DECLARE_EVENT_TABLE()

public:

    /// Constructors
    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( 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 );

    /// 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
    ~dialog_freeroute_exchange();
@@ -127,7 +114,6 @@ public:

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );

////@end dialog_freeroute_exchange member function declarations

    /// Should we show tooltips?
+22 −20
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@
        <long name="locked">0</long>
        <string name="template-name">""</string>
        <bool name="dirty">1</bool>
        <long name="makefile-last-written">0</long>
        <string name="Compiler name">""</string>
        <string name="Build mode">"Debug"</string>
        <string name="Unicode mode">"ANSI"</string>
@@ -169,6 +170,8 @@
        <string name="wxWidgets build command">"%AUTO%"</string>
        <string name="wxWidgets clean command">"%AUTO%"</string>
        <string name="PATH variable">"%AUTO%"</string>
        <bool name="Suppress source rules">0</bool>
        <bool name="Enable makefile generation">1</bool>
      </document>
    </document>
  </data>
@@ -242,7 +245,6 @@
          <bool name="proxy-wxDEFAULT_DIALOG_STYLE">0</bool>
          <bool name="proxy-wxCAPTION">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-wxSTAY_ON_TOP">0</bool>
          <bool name="proxy-wxDIALOG_NO_PARENT">0</bool>
@@ -336,10 +338,10 @@
                <string name="proxy-Implementation filename">""</string>
                <string name="proxy-Header filename">""</string>
                <string name="proxy-Member variable name">""</string>
                <string name="proxy-Label">"Create Export Dsn File"</string>
                <string name="proxy-Label">"Export a Specctra Design (*.dsn) File"</string>
                <bool name="proxy-Default">0</bool>
                <string name="proxy-Help text">"Create an export DNS file to freeroute"</string>
                <string name="proxy-Tooltip text">""</string>
                <string name="proxy-Help text">""</string>
                <string name="proxy-Tooltip text">"Export a Specctra DSN file (to FreeRouter)"</string>
                <string name="proxy-Data variable">""</string>
                <string name="proxy-Data validator">""</string>
                <string name="proxy-Data source">""</string>
@@ -403,10 +405,10 @@
                <string name="proxy-Implementation filename">""</string>
                <string name="proxy-Header filename">""</string>
                <string name="proxy-Member variable name">""</string>
                <string name="proxy-Label">"Connect to FreeROUTE"</string>
                <string name="proxy-Label">"Launch FreeRouter via Browser"</string>
                <bool name="proxy-Default">0</bool>
                <string name="proxy-Help text">"Run the WEb Based Freeroute Router"</string>
                <string name="proxy-Tooltip text">""</string>
                <string name="proxy-Help text">""</string>
                <string name="proxy-Tooltip text">"User your browser's Java Web Start function to run FreeRouter via Internet"</string>
                <string name="proxy-Data variable">""</string>
                <string name="proxy-Data validator">""</string>
                <string name="proxy-Data source">""</string>
@@ -470,10 +472,10 @@
                <string name="proxy-Implementation filename">""</string>
                <string name="proxy-Header filename">""</string>
                <string name="proxy-Member variable name">""</string>
                <string name="proxy-Label">"Read Design File"</string>
                <string name="proxy-Label">"Back Import the Specctra Session (*.ses) File"</string>
                <bool name="proxy-Default">0</bool>
                <string name="proxy-Help text">"Read the design file created by freeroute"</string>
                <string name="proxy-Tooltip text">""</string>
                <string name="proxy-Help text">""</string>
                <string name="proxy-Tooltip text">"Merge a session file created by FreeRouter with the current board."</string>
                <string name="proxy-Data variable">""</string>
                <string name="proxy-Data validator">""</string>
                <string name="proxy-Data source">""</string>
@@ -540,7 +542,7 @@
                <string name="proxy-Label">"&amp;Close"</string>
                <bool name="proxy-Default">0</bool>
                <string name="proxy-Help text">""</string>
                <string name="proxy-Tooltip text">""</string>
                <string name="proxy-Tooltip text">"Close this dialog window"</string>
                <string name="proxy-Data variable">""</string>
                <string name="proxy-Data validator">""</string>
                <string name="proxy-Data source">""</string>
@@ -630,10 +632,10 @@
                <string name="proxy-Implementation filename">""</string>
                <string name="proxy-Header filename">""</string>
                <string name="proxy-Member variable name">""</string>
                <string name="proxy-Label">"Access to FreeROUTE Web Site"</string>
                <string name="proxy-Label">"Visit the FreeRouting.net Website with your Browser"</string>
                <bool name="proxy-Default">0</bool>
                <string name="proxy-Help text">"Run the WEb Based Freeroute Router"</string>
                <string name="proxy-Tooltip text">""</string>
                <string name="proxy-Help text">""</string>
                <string name="proxy-Tooltip text">"Launch your browser and go to the FreeRouting.net website"</string>
                <string name="proxy-Data variable">""</string>
                <string name="proxy-Data validator">""</string>
                <string name="proxy-Data source">""</string>
@@ -696,7 +698,7 @@
                <string name="proxy-Implementation filename">""</string>
                <string name="proxy-Header filename">""</string>
                <string name="proxy-Member variable name">""</string>
                <string name="proxy-Label">"FreeRoute URL"</string>
                <string name="proxy-Label">"FreeRouting.net URL"</string>
                <long name="proxy-Wrapping width">-1</long>
                <string name="proxy-Help text">""</string>
                <string name="proxy-Tooltip text">""</string>
@@ -770,7 +772,7 @@
                <string name="proxy-Initial value">""</string>
                <long name="proxy-Max length">0</long>
                <string name="proxy-Help text">""</string>
                <string name="proxy-Tooltip text">""</string>
                <string name="proxy-Tooltip text">"The URL of the FreeRouting.net website"</string>
                <string name="proxy-Background colour">""</string>
                <string name="proxy-Foreground colour">""</string>
                <string name="proxy-Font">""</string>
@@ -816,7 +818,7 @@
                <long name="proxy-Height">-1</long>
                <string name="proxy-AlignH">"Expand"</string>
                <string name="proxy-AlignV">"Centre"</string>
                <long name="proxy-Stretch factor">0</long>
                <long name="proxy-Stretch factor">1</long>
                <long name="proxy-Border">5</long>
                <bool name="proxy-wxLEFT">1</bool>
                <bool name="proxy-wxRIGHT">1</bool>
@@ -849,7 +851,7 @@
                <string name="proxy-Implementation filename">""</string>
                <string name="proxy-Header filename">""</string>
                <string name="proxy-Member variable name">""</string>
                <string name="proxy-Label">"FreeRoute Command"</string>
                <string name="proxy-Label">"FreeRouting.net Command"</string>
                <long name="proxy-Wrapping width">-1</long>
                <string name="proxy-Help text">""</string>
                <string name="proxy-Tooltip text">""</string>
@@ -923,7 +925,7 @@
                <string name="proxy-Initial value">""</string>
                <long name="proxy-Max length">0</long>
                <string name="proxy-Help text">""</string>
                <string name="proxy-Tooltip text">""</string>
                <string name="proxy-Tooltip text">"The URL of the JNLP file which Java Web Start uses to launch the FreeRouter"</string>
                <string name="proxy-Background colour">""</string>
                <string name="proxy-Foreground colour">""</string>
                <string name="proxy-Font">""</string>
@@ -969,7 +971,7 @@
                <long name="proxy-Height">-1</long>
                <string name="proxy-AlignH">"Expand"</string>
                <string name="proxy-AlignV">"Centre"</string>
                <long name="proxy-Stretch factor">0</long>
                <long name="proxy-Stretch factor">1</long>
                <long name="proxy-Border">5</long>
                <bool name="proxy-wxLEFT">1</bool>
                <bool name="proxy-wxRIGHT">1</bool>