2007-05-06 16:03:28 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialog_edit_label.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: jean-pierre Charras
|
|
|
|
// Modified by:
|
|
|
|
// Created: 19/02/2006 15:46:26
|
|
|
|
// RCS-ID:
|
|
|
|
// Copyright: License GNU
|
|
|
|
// Licence:
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generated by DialogBlocks (unregistered), 19/02/2006 15:46:26
|
|
|
|
|
|
|
|
#ifndef _DIALOG_EDIT_LABEL_H_
|
|
|
|
#define _DIALOG_EDIT_LABEL_H_
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin includes
|
2007-06-05 12:10:51 +00:00
|
|
|
#include "wx/valgen.h"
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end includes
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin forward declarations
|
|
|
|
////@end forward declarations
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
2007-06-05 12:10:51 +00:00
|
|
|
#define ID_DIALOG 10000
|
|
|
|
#define ID_TEXTCTRL 10001
|
|
|
|
#define ID_RADIOBOX 10003
|
|
|
|
#define ID_RADIOBOX1 10004
|
|
|
|
#define ID_TEXTCTRL1 10002
|
2007-11-07 04:24:25 +00:00
|
|
|
#define SYMBOL_WINEDA_LABELPROPERTIESFRAME_STYLE wxDEFAULT_DIALOG_STYLE|MAYBE_RESIZE_BORDER
|
|
|
|
#define SYMBOL_WINEDA_LABELPROPERTIESFRAME_TITLE _("Dialog")
|
|
|
|
#define SYMBOL_WINEDA_LABELPROPERTIESFRAME_IDNAME ID_DIALOG
|
|
|
|
#define SYMBOL_WINEDA_LABELPROPERTIESFRAME_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_WINEDA_LABELPROPERTIESFRAME_POSITION wxDefaultPosition
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end control identifiers
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Compatibility
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
|
|
#define wxCLOSE_BOX 0x1000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_LabelPropertiesFrame class declaration
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WinEDA_LabelPropertiesFrame: public wxDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_LabelPropertiesFrame )
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
|
|
|
WinEDA_LabelPropertiesFrame( );
|
2007-06-05 12:10:51 +00:00
|
|
|
WinEDA_LabelPropertiesFrame( WinEDA_SchematicFrame* parent,
|
|
|
|
DrawTextStruct * CurrentText,
|
|
|
|
const wxPoint& pos = SYMBOL_WINEDA_LABELPROPERTIESFRAME_POSITION,
|
2007-05-06 16:03:28 +00:00
|
|
|
wxWindowID id = SYMBOL_WINEDA_LABELPROPERTIESFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_LABELPROPERTIESFRAME_TITLE, const wxSize& size = SYMBOL_WINEDA_LABELPROPERTIESFRAME_SIZE, long style = SYMBOL_WINEDA_LABELPROPERTIESFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Creation
|
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_LABELPROPERTIESFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_LABELPROPERTIESFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_LABELPROPERTIESFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_LABELPROPERTIESFRAME_SIZE, long style = SYMBOL_WINEDA_LABELPROPERTIESFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
|
|
|
////@begin WinEDA_LabelPropertiesFrame event handler declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
|
2007-11-07 04:24:25 +00:00
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end WinEDA_LabelPropertiesFrame event handler declarations
|
|
|
|
|
|
|
|
////@begin WinEDA_LabelPropertiesFrame member function declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end WinEDA_LabelPropertiesFrame member function declarations
|
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
2007-06-05 12:10:51 +00:00
|
|
|
void TextPropertiesAccept(wxCommandEvent& event);
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
////@begin WinEDA_LabelPropertiesFrame member variables
|
2007-06-05 12:10:51 +00:00
|
|
|
wxTextCtrl* m_TextLabel;
|
|
|
|
wxRadioBox* m_TextOrient;
|
|
|
|
wxRadioBox* m_TextShape;
|
|
|
|
wxStaticText* m_SizeTitle;
|
|
|
|
wxTextCtrl* m_TextSize;
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end WinEDA_LabelPropertiesFrame member variables
|
|
|
|
|
|
|
|
WinEDA_SchematicFrame * m_Parent;
|
|
|
|
DrawTextStruct * m_CurrentText;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _DIALOG_EDIT_LABEL_H_
|