2009-10-27 19:30:32 +00:00
|
|
|
/*
|
2011-10-07 14:41:30 +00:00
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
2009-10-27 19:30:32 +00:00
|
|
|
*
|
2011-10-07 14:41:30 +00:00
|
|
|
* Copyright (C) 1992-2009 KiCad Developers, see change_log.txt for contributors.
|
2009-10-27 19:30:32 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#ifndef _ANNOTATE_DIALOG_H_
|
|
|
|
#define _ANNOTATE_DIALOG_H_
|
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <dialog_annotate_base.h>
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2010-11-10 15:30:12 +00:00
|
|
|
|
2010-12-08 20:12:46 +00:00
|
|
|
class SCH_EDIT_FRAME;
|
2010-11-10 15:30:12 +00:00
|
|
|
class wxConfig;
|
|
|
|
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/*!
|
2009-10-27 19:30:32 +00:00
|
|
|
* DIALOG_ANNOTATE class declaration
|
2007-06-05 12:10:51 +00:00
|
|
|
*/
|
|
|
|
|
2009-10-27 19:30:32 +00:00
|
|
|
class DIALOG_ANNOTATE: public DIALOG_ANNOTATE_BASE
|
2008-02-26 01:07:38 +00:00
|
|
|
{
|
2009-10-27 19:30:32 +00:00
|
|
|
private:
|
2010-12-08 20:12:46 +00:00
|
|
|
SCH_EDIT_FRAME * m_Parent;
|
2009-10-27 19:30:32 +00:00
|
|
|
wxConfig* m_Config;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
public:
|
2010-12-08 20:12:46 +00:00
|
|
|
DIALOG_ANNOTATE( SCH_EDIT_FRAME* parent );
|
2009-10-27 19:30:32 +00:00
|
|
|
~DIALOG_ANNOTATE(){};
|
2008-04-16 17:21:01 +00:00
|
|
|
|
|
|
|
/// Initialises member variables
|
2009-10-27 19:30:32 +00:00
|
|
|
void InitValues();
|
2008-04-16 17:21:01 +00:00
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
void OnClearAnnotationCmpClick( wxCommandEvent& event );
|
|
|
|
void OnApplyClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
// User functions:
|
|
|
|
bool GetLevel( void );
|
|
|
|
bool GetResetItems( void );
|
2008-04-21 14:03:20 +00:00
|
|
|
int GetSortOrder( void );
|
2011-01-04 20:27:52 +00:00
|
|
|
int GetAnnotateAlgo( void );
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2008-04-16 17:21:01 +00:00
|
|
|
// _ANNOTATE_DIALOG_H_
|