2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2008-02-26 01:07:38 +00:00
|
|
|
|
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:
|
2007-06-05 12:10:51 +00:00
|
|
|
// Created: 05/02/2006 12:31:28
|
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
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _ANNOTATE_DIALOG_H_
|
|
|
|
#define _ANNOTATE_DIALOG_H_
|
|
|
|
|
2008-02-26 01:07:38 +00:00
|
|
|
#if defined (__GNUG__) && !defined (NO_GCC_PRAGMA)
|
2007-06-05 12:10:51 +00:00
|
|
|
#pragma interface "annotate_dialog.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
#include "fctsys.h"
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
#include "program.h"
|
|
|
|
#include "libcmp.h"
|
|
|
|
#include "general.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
2008-02-26 01:07:38 +00:00
|
|
|
#define ID_DIALOG 10000
|
|
|
|
#define ID_ENTIRE_SCHEMATIC 10001
|
|
|
|
#define ID_CURRENT_PAGE 10002
|
|
|
|
#define ID_RESET_ANNOTATION 10003
|
|
|
|
#define ID_SORT_BY_POSITION 10004
|
|
|
|
#define ID_SORT_BY_VALUE 10005
|
|
|
|
|
|
|
|
#define ANNOTATE_DIALOG_STYLE wxDEFAULT_DIALOG_STYLE | MAYBE_RESIZE_BORDER
|
|
|
|
#define ANNOTATE_DIALOG_TITLE _( "Annotate" )
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* Compatibility
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
|
|
#define wxCLOSE_BOX 0x1000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_AnnotateFrame class declaration
|
|
|
|
*/
|
|
|
|
|
2008-02-26 01:07:38 +00:00
|
|
|
class WinEDA_AnnotateFrame : public wxDialog
|
|
|
|
{
|
2007-06-05 12:10:51 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_AnnotateFrame )
|
|
|
|
|
|
|
|
public:
|
2008-02-26 01:07:38 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/// Constructors
|
2008-02-26 01:07:38 +00:00
|
|
|
WinEDA_AnnotateFrame();
|
|
|
|
WinEDA_AnnotateFrame( WinEDA_SchematicFrame* parent,
|
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
const wxString& caption = ANNOTATE_DIALOG_TITLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = ANNOTATE_DIALOG_STYLE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Creation
|
2008-02-26 01:07:38 +00:00
|
|
|
bool Create( wxWindow* parent,
|
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
const wxString& caption = ANNOTATE_DIALOG_TITLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = ANNOTATE_DIALOG_STYLE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
2008-02-26 01:07:38 +00:00
|
|
|
void CreateControls();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
2008-02-26 01:07:38 +00:00
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Retrieves icon resources
|
2008-02-26 01:07:38 +00:00
|
|
|
wxIcon GetIconResource( const wxString& name );
|
|
|
|
|
|
|
|
bool GetLevel( void );
|
|
|
|
bool GetResetItems( void );
|
|
|
|
bool GetSortOrder( void );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
|
|
|
|
2008-02-26 01:07:38 +00:00
|
|
|
WinEDA_SchematicFrame* m_Parent;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
private:
|
2008-02-27 19:38:16 +00:00
|
|
|
void CloseDialog( void );
|
|
|
|
|
2008-02-26 01:07:38 +00:00
|
|
|
void OnClear( wxCommandEvent& event );
|
|
|
|
void OnApply( wxCommandEvent& event );
|
2008-02-27 19:38:16 +00:00
|
|
|
void OnCancel( wxCommandEvent& event );
|
2008-02-26 01:07:38 +00:00
|
|
|
|
|
|
|
wxRadioButton* m_rbEntireSchematic;
|
|
|
|
wxRadioButton* m_rbSortByPosition;
|
|
|
|
wxCheckBox* m_cbResetAnnotation;
|
|
|
|
wxButton* m_btnClear;
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2008-02-26 01:07:38 +00:00
|
|
|
|
|
|
|
// _ANNOTATE_DIALOG_H_
|