~andrew-plumb/kicad/kicad

« back to all changes in this revision

Viewing changes to pcbnew/dialogs/dialog_fp_lib_table_base.h

  • Committer: Dick Hollenbeck
  • Date: 2013-10-03 22:12:56 UTC
  • Revision ID: dick@softplc.com-20131003221256-ny7xs3ucnjlj12j1
DIALOG_FP_LIB_TABLE does not use wxSplitterWindow, it would not obey.
Paste popup menu in this dialog now allows pasting a (fp_lib_table)
s-expression element holding (lib) elements.  This provides an 
opportunity for GITHUB library publishers to put the table description
into their README.md file as a (fp_lib_table) element where it can
be quickly copied to clipboard and pasted into the fp lib table dialog.
This is a paste operation, and overwrites from the initial cursor position.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <wx/aui/auibook.h>
29
29
#include <wx/button.h>
30
30
#include <wx/statbox.h>
31
 
#include <wx/splitter.h>
32
31
#include <wx/dialog.h>
33
32
 
34
33
///////////////////////////////////////////////////////////////////////////
42
41
        private:
43
42
        
44
43
        protected:
45
 
                wxSplitterWindow* m_splitter;
46
 
                wxPanel* m_top;
47
44
                wxAuiNotebook* m_auinotebook;
48
45
                wxPanel* m_global_panel;
49
46
                wxGrid* m_global_grid;
54
51
                wxButton* m_move_up_button;
55
52
                wxButton* m_move_down_button;
56
53
                wxButton* m_edit_options;
57
 
                wxPanel* m_bottom;
58
54
                wxGrid* m_path_subs_grid;
59
55
                wxStdDialogButtonSizer* m_sdbSizer1;
60
56
                wxButton* m_sdbSizer1OK;
61
57
                wxButton* m_sdbSizer1Cancel;
62
58
                
63
59
                // Virtual event handlers, overide them in your derived class
 
60
                virtual void onInitDialog( wxInitDialogEvent& event ) { event.Skip(); }
64
61
                virtual void pageChangedHandler( wxAuiNotebookEvent& event ) { event.Skip(); }
65
62
                virtual void onGridCellLeftClick( wxGridEvent& event ) { event.Skip(); }
66
63
                virtual void onGridCellLeftDClick( wxGridEvent& event ) { event.Skip(); }
77
74
        
78
75
        public:
79
76
                
80
 
                DIALOG_FP_LIB_TABLE_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("PCB Library Tables"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 996,652 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); 
 
77
                DIALOG_FP_LIB_TABLE_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("PCB Library Tables"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 700,700 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU ); 
81
78
                ~DIALOG_FP_LIB_TABLE_BASE();
82
 
                
83
 
                void m_splitterOnIdle( wxIdleEvent& )
84
 
                {
85
 
                        m_splitter->SetSashPosition( 398 );
86
 
                        m_splitter->Disconnect( wxEVT_IDLE, wxIdleEventHandler( DIALOG_FP_LIB_TABLE_BASE::m_splitterOnIdle ), NULL, this );
87
 
                }
88
79
        
89
80
};
90
81