2007-06-13 18:04:33 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: cleaningoptions_dialog.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: jean-pierre Charras
|
|
|
|
// Modified by:
|
|
|
|
// Created: 25/05/2007 14:24:54
|
|
|
|
// RCS-ID:
|
|
|
|
// Copyright: GNU License
|
|
|
|
// Licence:
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generated by DialogBlocks (unregistered), 25/05/2007 14:24:54
|
|
|
|
|
|
|
|
#ifndef _CLEANINGOPTIONS_DIALOG_H_
|
|
|
|
#define _CLEANINGOPTIONS_DIALOG_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "cleaningoptions_dialog.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin includes
|
|
|
|
#include "wx/valgen.h"
|
|
|
|
////@end includes
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin forward declarations
|
|
|
|
////@end forward declarations
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
|
|
|
#define ID_WIN_EDA_CLEANINGOPTIONSFRAME 10000
|
|
|
|
#define ID_CHECKBOX_CLEAN_VIAS 10001
|
|
|
|
#define ID_CHECKBOX_MERGE_SEGMENTS 10003
|
|
|
|
#define ID_CHECKBOX1 10005
|
|
|
|
#define ID_CHECKBOX 10004
|
|
|
|
#define ID_BUTTON_EXECUTE 10006
|
2007-10-22 00:26:05 +00:00
|
|
|
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
|
2007-06-13 18:04:33 +00:00
|
|
|
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_TITLE _("Cleaning options")
|
|
|
|
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_IDNAME ID_WIN_EDA_CLEANINGOPTIONSFRAME
|
|
|
|
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_POSITION wxDefaultPosition
|
|
|
|
////@end control identifiers
|
|
|
|
|
2008-02-12 21:12:46 +00:00
|
|
|
class WinEDA_PcbFrame;
|
2007-06-13 18:04:33 +00:00
|
|
|
|
2008-02-12 21:12:46 +00:00
|
|
|
/*declared in clean.cpp:
|
|
|
|
extern static bool s_CleanVias;
|
|
|
|
extern static bool s_MergeSegments;
|
|
|
|
extern static bool s_DeleteUnconnectedSegm;
|
|
|
|
void Clean_Pcb_Items( WinEDA_PcbFrame* frame, wxDC* DC );
|
|
|
|
//end clean.cpp */
|
2007-06-13 18:04:33 +00:00
|
|
|
/*!
|
|
|
|
* WinEDA_CleaningOptionsFrame class declaration
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WinEDA_CleaningOptionsFrame: public wxDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_CleaningOptionsFrame )
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
|
|
|
WinEDA_CleaningOptionsFrame();
|
|
|
|
WinEDA_CleaningOptionsFrame( WinEDA_PcbFrame * parent, wxDC * DC,
|
|
|
|
wxWindowID id = SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_SIZE, long style = SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Creation
|
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_SIZE, long style = SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Destructor
|
|
|
|
~WinEDA_CleaningOptionsFrame();
|
|
|
|
|
|
|
|
/// Initialises member variables
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
|
|
|
////@begin WinEDA_CleaningOptionsFrame event handler declarations
|
|
|
|
|
|
|
|
/// wxEVT_CLOSE_WINDOW event handler for ID_WIN_EDA_CLEANINGOPTIONSFRAME
|
|
|
|
void OnCloseWindow( wxCloseEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_EXECUTE
|
|
|
|
void OnButtonExecuteClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
////@end WinEDA_CleaningOptionsFrame event handler declarations
|
|
|
|
|
|
|
|
////@begin WinEDA_CleaningOptionsFrame member function declarations
|
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
|
|
|
////@end WinEDA_CleaningOptionsFrame member function declarations
|
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
|
|
|
|
|
|
|
////@begin WinEDA_CleaningOptionsFrame member variables
|
|
|
|
wxCheckBox* m_CleanViasOpt;
|
|
|
|
wxCheckBox* m_MergetSegmOpt;
|
|
|
|
wxCheckBox* m_DeleteunconnectedOpt;
|
|
|
|
wxCheckBox* m_ConnectToPadsOpt;
|
|
|
|
////@end WinEDA_CleaningOptionsFrame member variables
|
|
|
|
WinEDA_PcbFrame * m_Parent;
|
|
|
|
wxDC * m_DC;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _CLEANINGOPTIONS_DIALOG_H_
|