2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: annotate_dialog.h
|
2008-02-26 01:07:38 +00:00
|
|
|
// Purpose:
|
2007-06-05 12:10:51 +00:00
|
|
|
// Author: jean-pierre Charras
|
2008-02-26 01:07:38 +00:00
|
|
|
// Modified by:
|
2008-04-16 17:21:01 +00:00
|
|
|
// Created: 16/04/2008 17:50:59
|
2008-02-26 01:07:38 +00:00
|
|
|
// RCS-ID:
|
2007-06-05 12:10:51 +00:00
|
|
|
// Copyright: License GNU
|
2008-02-26 01:07:38 +00:00
|
|
|
// Licence:
|
2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-04-16 17:21:01 +00:00
|
|
|
// Generated by DialogBlocks (unregistered), 16/04/2008 17:50:59
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#ifndef _ANNOTATE_DIALOG_H_
|
|
|
|
#define _ANNOTATE_DIALOG_H_
|
|
|
|
|
2008-04-16 17:21:01 +00:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2007-06-05 12:10:51 +00:00
|
|
|
#pragma interface "annotate_dialog.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
2008-04-16 17:21:01 +00:00
|
|
|
////@begin includes
|
2008-04-21 14:03:20 +00:00
|
|
|
#include "wx/statline.h"
|
2008-04-16 17:21:01 +00:00
|
|
|
////@end includes
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/*!
|
2008-04-16 17:21:01 +00:00
|
|
|
* Forward declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
*/
|
|
|
|
|
2008-04-16 17:21:01 +00:00
|
|
|
////@begin forward declarations
|
|
|
|
class wxBoxSizer;
|
2009-02-04 15:25:03 +00:00
|
|
|
class WinEDA_SchematicFrame;
|
2008-04-16 17:21:01 +00:00
|
|
|
////@end forward declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/*!
|
2008-04-16 17:21:01 +00:00
|
|
|
* Control identifiers
|
2007-06-05 12:10:51 +00:00
|
|
|
*/
|
|
|
|
|
2008-04-16 17:21:01 +00:00
|
|
|
////@begin control identifiers
|
|
|
|
#define ID_DIALOG 10000
|
|
|
|
#define ID_ENTIRE_SCHEMATIC 10002
|
|
|
|
#define ID_CURRENT_PAGE 10003
|
2008-04-21 14:03:20 +00:00
|
|
|
#define ID_KEEP_ANNOTATION 10009
|
2008-04-16 17:21:01 +00:00
|
|
|
#define ID_RESET_ANNOTATION 10009
|
2008-04-21 14:03:20 +00:00
|
|
|
#define ID_SORT_BY_X_POSITION 10001
|
|
|
|
#define ID_SORT_BY_Y_POSITION 10001
|
2008-04-16 17:21:01 +00:00
|
|
|
#define ID_SORT_BY_VALUE 10011
|
|
|
|
#define ID_CLEAR_ANNOTATION_CMP 10004
|
|
|
|
#define SYMBOL_WINEDA_ANNOTATEFRAME_STYLE wxDEFAULT_DIALOG_STYLE|MAYBE_RESIZE_BORDER
|
|
|
|
#define SYMBOL_WINEDA_ANNOTATEFRAME_TITLE _("EESchema Annotation")
|
|
|
|
#define SYMBOL_WINEDA_ANNOTATEFRAME_IDNAME ID_DIALOG
|
|
|
|
#define SYMBOL_WINEDA_ANNOTATEFRAME_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_WINEDA_ANNOTATEFRAME_POSITION wxDefaultPosition
|
|
|
|
////@end control identifiers
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_AnnotateFrame class declaration
|
|
|
|
*/
|
|
|
|
|
2008-04-16 17:21:01 +00:00
|
|
|
class WinEDA_AnnotateFrame: public wxDialog
|
2008-02-26 01:07:38 +00:00
|
|
|
{
|
2007-06-05 12:10:51 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_AnnotateFrame )
|
2008-04-16 17:21:01 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
2008-02-26 01:07:38 +00:00
|
|
|
WinEDA_AnnotateFrame();
|
2008-04-16 17:21:01 +00:00
|
|
|
WinEDA_AnnotateFrame( WinEDA_SchematicFrame* parent, wxWindowID id = SYMBOL_WINEDA_ANNOTATEFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_ANNOTATEFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_ANNOTATEFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_ANNOTATEFRAME_SIZE, long style = SYMBOL_WINEDA_ANNOTATEFRAME_STYLE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Creation
|
2008-04-16 17:21:01 +00:00
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_ANNOTATEFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_ANNOTATEFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_ANNOTATEFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_ANNOTATEFRAME_SIZE, long style = SYMBOL_WINEDA_ANNOTATEFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Destructor
|
|
|
|
~WinEDA_AnnotateFrame();
|
|
|
|
|
|
|
|
/// Initialises member variables
|
|
|
|
void Init();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
2008-04-16 17:21:01 +00:00
|
|
|
void CreateControls();
|
|
|
|
|
|
|
|
////@begin WinEDA_AnnotateFrame event handler declarations
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CLEAR_ANNOTATION_CMP
|
|
|
|
void OnClearAnnotationCmpClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY
|
|
|
|
void OnApplyClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
////@end WinEDA_AnnotateFrame event handler declarations
|
|
|
|
|
|
|
|
////@begin WinEDA_AnnotateFrame member function declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
2008-04-16 17:21:01 +00:00
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Retrieves icon resources
|
2008-04-16 17:21:01 +00:00
|
|
|
wxIcon GetIconResource( const wxString& name );
|
|
|
|
////@end WinEDA_AnnotateFrame member function declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
|
|
|
|
2008-04-16 17:21:01 +00:00
|
|
|
// User functions:
|
|
|
|
bool GetLevel( void );
|
|
|
|
bool GetResetItems( void );
|
2008-04-21 14:03:20 +00:00
|
|
|
int GetSortOrder( void );
|
2008-02-26 01:07:38 +00:00
|
|
|
|
2008-04-16 17:21:01 +00:00
|
|
|
////@begin WinEDA_AnnotateFrame member variables
|
2008-02-26 01:07:38 +00:00
|
|
|
wxRadioButton* m_rbEntireSchematic;
|
2008-04-21 14:03:20 +00:00
|
|
|
wxRadioButton* m_rbKeepAnnotation;
|
|
|
|
wxRadioButton* m_rbResetAnnotation;
|
|
|
|
wxRadioButton* m_rbSortBy_X_Position;
|
|
|
|
wxRadioButton* m_rbSortBy_Y_Position;
|
2008-04-16 17:21:01 +00:00
|
|
|
wxRadioButton* rbSortByValue;
|
|
|
|
wxBoxSizer* sizerDialogButtons;
|
|
|
|
wxButton* m_btnClose;
|
2008-02-26 01:07:38 +00:00
|
|
|
wxButton* m_btnClear;
|
2008-04-16 17:21:01 +00:00
|
|
|
wxButton* m_btnApply;
|
|
|
|
////@end WinEDA_AnnotateFrame member variables
|
|
|
|
|
|
|
|
WinEDA_SchematicFrame * m_Parent;
|
2008-02-26 01:07:38 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2008-04-16 17:21:01 +00:00
|
|
|
// _ANNOTATE_DIALOG_H_
|