2017-04-02 12:09:01 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2017-05-08 10:41:46 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Apr 1 2017)
|
2017-04-02 12:09:01 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __DIALOG_BOM_EDITOR_BASE_H__
|
|
|
|
#define __DIALOG_BOM_EDITOR_BASE_H__
|
|
|
|
|
|
|
|
#include <wx/artprov.h>
|
|
|
|
#include <wx/xrc/xmlres.h>
|
|
|
|
#include <wx/intl.h>
|
|
|
|
class DIALOG_SHIM;
|
|
|
|
|
|
|
|
#include "dialog_shim.h"
|
|
|
|
#include <wx/string.h>
|
|
|
|
#include <wx/checkbox.h>
|
|
|
|
#include <wx/gdicmn.h>
|
|
|
|
#include <wx/font.h>
|
|
|
|
#include <wx/colour.h>
|
|
|
|
#include <wx/settings.h>
|
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/sizer.h>
|
|
|
|
#include <wx/statbox.h>
|
|
|
|
#include <wx/dataview.h>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
#include <wx/splitter.h>
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#define OPT_GROUP_COMPONENTS 1000
|
|
|
|
#define ID_BUTTON_REGROUP 1001
|
2017-05-08 10:41:46 +00:00
|
|
|
#define ID_BUTTON_APPLY 1002
|
|
|
|
#define ID_BUTTON_REVERT 1003
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// Class DIALOG_BOM_EDITOR_BASE
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
class DIALOG_BOM_EDITOR_BASE : public DIALOG_SHIM
|
|
|
|
{
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
private:
|
2017-05-08 10:41:46 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
// Private event handlers
|
2017-05-08 10:41:46 +00:00
|
|
|
void _wxFB_OnDialogClosed( wxCloseEvent& event ){ OnDialogClosed( event ); }
|
2017-04-18 09:25:02 +00:00
|
|
|
void _wxFB_OnUpdateUI( wxUpdateUIEvent& event ){ OnUpdateUI( event ); }
|
2017-04-02 12:09:01 +00:00
|
|
|
void _wxFB_OnGroupComponentsToggled( wxCommandEvent& event ){ OnGroupComponentsToggled( event ); }
|
|
|
|
void _wxFB_OnRegroupComponents( wxCommandEvent& event ){ OnRegroupComponents( event ); }
|
|
|
|
void _wxFB_OnColumnItemToggled( wxDataViewEvent& event ){ OnColumnItemToggled( event ); }
|
|
|
|
void _wxFB_OnBomColumReordered( wxDataViewEvent& event ){ OnBomColumReordered( event ); }
|
|
|
|
void _wxFB_OnBomColumnSorted( wxDataViewEvent& event ){ OnBomColumnSorted( event ); }
|
2017-04-25 02:55:49 +00:00
|
|
|
void _wxFB_OnTableItemActivated( wxDataViewEvent& event ){ OnTableItemActivated( event ); }
|
|
|
|
void _wxFB_OnTableItemContextMenu( wxDataViewEvent& event ){ OnTableItemContextMenu( event ); }
|
2017-04-02 12:09:01 +00:00
|
|
|
void _wxFB_OnTableValueChanged( wxDataViewEvent& event ){ OnTableValueChanged( event ); }
|
|
|
|
void _wxFB_OnSelectionChanged( wxDataViewEvent& event ){ OnSelectionChanged( event ); }
|
2017-05-08 10:41:46 +00:00
|
|
|
void _wxFB_OnApplyFieldChanges( wxCommandEvent& event ){ OnApplyFieldChanges( event ); }
|
|
|
|
void _wxFB_OnRevertFieldChanges( wxCommandEvent& event ){ OnRevertFieldChanges( event ); }
|
|
|
|
void _wxFB_OnCloseButton( wxCommandEvent& event ){ OnCloseButton( event ); }
|
|
|
|
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
protected:
|
|
|
|
wxPanel* m_panel;
|
|
|
|
wxSplitterWindow* m_splitter1;
|
|
|
|
wxPanel* m_leftPanel;
|
|
|
|
wxCheckBox* m_groupComponentsBox;
|
|
|
|
wxButton* m_regroupComponentsButton;
|
|
|
|
wxDataViewListCtrl* m_columnListCtrl;
|
|
|
|
wxPanel* m_panel4;
|
|
|
|
wxDataViewCtrl* m_bomView;
|
2017-05-08 10:41:46 +00:00
|
|
|
wxButton* m_applyChangesButton;
|
|
|
|
wxButton* m_revertChangesButton;
|
|
|
|
wxButton* m_closeButton;
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
// Virtual event handlers, overide them in your derived class
|
2017-05-08 10:41:46 +00:00
|
|
|
virtual void OnDialogClosed( wxCloseEvent& event ) { event.Skip(); }
|
2017-04-18 09:25:02 +00:00
|
|
|
virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); }
|
2017-04-02 12:09:01 +00:00
|
|
|
virtual void OnGroupComponentsToggled( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnRegroupComponents( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnColumnItemToggled( wxDataViewEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnBomColumReordered( wxDataViewEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnBomColumnSorted( wxDataViewEvent& event ) { event.Skip(); }
|
2017-04-25 02:55:49 +00:00
|
|
|
virtual void OnTableItemActivated( wxDataViewEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnTableItemContextMenu( wxDataViewEvent& event ) { event.Skip(); }
|
2017-04-02 12:09:01 +00:00
|
|
|
virtual void OnTableValueChanged( wxDataViewEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnSelectionChanged( wxDataViewEvent& event ) { event.Skip(); }
|
2017-05-08 10:41:46 +00:00
|
|
|
virtual void OnApplyFieldChanges( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnRevertFieldChanges( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnCloseButton( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
public:
|
2017-05-08 10:41:46 +00:00
|
|
|
|
|
|
|
DIALOG_BOM_EDITOR_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("BOM editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 775,654 ), long style = wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxRESIZE_BORDER );
|
2017-04-02 12:09:01 +00:00
|
|
|
~DIALOG_BOM_EDITOR_BASE();
|
2017-05-08 10:41:46 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
void m_splitter1OnIdle( wxIdleEvent& )
|
|
|
|
{
|
|
|
|
m_splitter1->SetSashPosition( 231 );
|
|
|
|
m_splitter1->Disconnect( wxEVT_IDLE, wxIdleEventHandler( DIALOG_BOM_EDITOR_BASE::m_splitter1OnIdle ), NULL, this );
|
|
|
|
}
|
2017-05-08 10:41:46 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__DIALOG_BOM_EDITOR_BASE_H__
|