set eol-style native on new files
This commit is contained in:
parent
094c411aa2
commit
02b7362970
96
AUTHORS.txt
96
AUTHORS.txt
|
@ -1,48 +1,48 @@
|
||||||
* Copyright (C) 1992-2008 Jean-Pierre Charras, jean-pierre.charras@inpg.fr
|
* Copyright (C) 1992-2008 Jean-Pierre Charras, jean-pierre.charras@inpg.fr
|
||||||
* Copyright (C) 1992-2008 Kicad Developers
|
* Copyright (C) 1992-2008 Kicad Developers
|
||||||
* under GNU General Public License (see copyright.txt)
|
* under GNU General Public License (see copyright.txt)
|
||||||
|
|
||||||
Main author:
|
Main author:
|
||||||
Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
|
Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
|
||||||
Maitre de Conferences
|
Maitre de Conferences
|
||||||
IUT1 GEII2
|
IUT1 GEII2
|
||||||
Universite Joseph Fourier (U.J.F.)
|
Universite Joseph Fourier (U.J.F.)
|
||||||
Saint Martin d'Hères (38402)
|
Saint Martin d'Hères (38402)
|
||||||
Laboratiore GIPSA-Lab
|
Laboratiore GIPSA-Lab
|
||||||
Saint Martin d'Hères
|
Saint Martin d'Hères
|
||||||
|
|
||||||
Contributors
|
Contributors
|
||||||
Dick Hollenbeck <dick@softplc.com>
|
Dick Hollenbeck <dick@softplc.com>
|
||||||
Jerry Jacobs <jerkejacobs@gmail.com>
|
Jerry Jacobs <jerkejacobs@gmail.com>
|
||||||
Jonas Diemer <diemer@gmx.de>
|
Jonas Diemer <diemer@gmx.de>
|
||||||
KBool Library http://boolean.klaasholwerda.nl/bool.html
|
KBool Library http://boolean.klaasholwerda.nl/bool.html
|
||||||
Rok Markovic <rok@kanardia.eu>
|
Rok Markovic <rok@kanardia.eu>
|
||||||
Tim Hanson <sideskate@gmail.com>
|
Tim Hanson <sideskate@gmail.com>
|
||||||
Vesa Solonen <vesa.solonen@hut.fi>
|
Vesa Solonen <vesa.solonen@hut.fi>
|
||||||
Wayne Stambaugh <stambaughw@verizon.net>
|
Wayne Stambaugh <stambaughw@verizon.net>
|
||||||
|
|
||||||
See also CHANGELOG.txt for contributors.
|
See also CHANGELOG.txt for contributors.
|
||||||
|
|
||||||
|
|
||||||
Document writers
|
Document writers
|
||||||
Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
|
Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
|
||||||
Igor Plyatov <plyatov@gmail.com>
|
Igor Plyatov <plyatov@gmail.com>
|
||||||
|
|
||||||
Translators
|
Translators
|
||||||
Czech (CZ) Martin Kratoška <martin@ok1rr.com>
|
Czech (CZ) Martin Kratoška <martin@ok1rr.com>
|
||||||
Dutch (NL) Jerry Jacobs <jerkejacobs@gmail.com>
|
Dutch (NL) Jerry Jacobs <jerkejacobs@gmail.com>
|
||||||
French (FR) Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
|
French (FR) Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
|
||||||
Polish (PL) Mateusz Skowroński <skowri@gmail.com>
|
Polish (PL) Mateusz Skowroński <skowri@gmail.com>
|
||||||
Portuguese (PT) Renie Marquet <reniemarquet@uol.com.br>"
|
Portuguese (PT) Renie Marquet <reniemarquet@uol.com.br>"
|
||||||
Russian (RU) Igor Plyatov <plyatov@gmail.com>
|
Russian (RU) Igor Plyatov <plyatov@gmail.com>
|
||||||
Spanish (ES) Pedro Martin del Valle <pkicad@yahoo.es>
|
Spanish (ES) Pedro Martin del Valle <pkicad@yahoo.es>
|
||||||
Spanish (ES) Iñigo Zuluaga <inigo_zuluaga@yahoo.es>
|
Spanish (ES) Iñigo Zuluaga <inigo_zuluaga@yahoo.es>
|
||||||
|
|
||||||
Remy Halvick
|
Remy Halvick
|
||||||
David Briscoe
|
David Briscoe
|
||||||
Dominique Laigle
|
Dominique Laigle
|
||||||
Paul Burke
|
Paul Burke
|
||||||
|
|
||||||
Programm credits for icons and others
|
Programm credits for icons and others
|
||||||
Icons by Iñigo Zuluaga
|
Icons by Iñigo Zuluaga
|
||||||
3D modules by Renie Marquet <reniemarquet@uol.com.br>
|
3D modules by Renie Marquet <reniemarquet@uol.com.br>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,121 +1,121 @@
|
||||||
update=29/8/2008-13:10:03
|
update=29/8/2008-13:10:03
|
||||||
last_client=pcbnew
|
last_client=pcbnew
|
||||||
[general]
|
[general]
|
||||||
version=1
|
version=1
|
||||||
RootSch=kit-dev-coldfire_5213.sch
|
RootSch=kit-dev-coldfire_5213.sch
|
||||||
BoardNm=kit-dev-coldfire_5213.brd
|
BoardNm=kit-dev-coldfire_5213.brd
|
||||||
[eeschema]
|
[eeschema]
|
||||||
version=1
|
version=1
|
||||||
LibDir=
|
LibDir=
|
||||||
NetFmt=1
|
NetFmt=1
|
||||||
HPGLSpd=20
|
HPGLSpd=20
|
||||||
HPGLDm=15
|
HPGLDm=15
|
||||||
HPGLNum=1
|
HPGLNum=1
|
||||||
offX_A4=0
|
offX_A4=0
|
||||||
offY_A4=0
|
offY_A4=0
|
||||||
offX_A3=0
|
offX_A3=0
|
||||||
offY_A3=0
|
offY_A3=0
|
||||||
offX_A2=0
|
offX_A2=0
|
||||||
offY_A2=0
|
offY_A2=0
|
||||||
offX_A1=0
|
offX_A1=0
|
||||||
offY_A1=0
|
offY_A1=0
|
||||||
offX_A0=0
|
offX_A0=0
|
||||||
offY_A0=0
|
offY_A0=0
|
||||||
offX_A=0
|
offX_A=0
|
||||||
offY_A=0
|
offY_A=0
|
||||||
offX_B=0
|
offX_B=0
|
||||||
offY_B=0
|
offY_B=0
|
||||||
offX_C=0
|
offX_C=0
|
||||||
offY_C=0
|
offY_C=0
|
||||||
offX_D=0
|
offX_D=0
|
||||||
offY_D=0
|
offY_D=0
|
||||||
offX_E=0
|
offX_E=0
|
||||||
offY_E=0
|
offY_E=0
|
||||||
RptD_X=0
|
RptD_X=0
|
||||||
RptD_Y=100
|
RptD_Y=100
|
||||||
RptLab=1
|
RptLab=1
|
||||||
SimCmd=
|
SimCmd=
|
||||||
UseNetN=0
|
UseNetN=0
|
||||||
LabSize=60
|
LabSize=60
|
||||||
[eeschema/libraries]
|
[eeschema/libraries]
|
||||||
LibName1=power
|
LibName1=power
|
||||||
LibName2=device
|
LibName2=device
|
||||||
LibName3=transistors
|
LibName3=transistors
|
||||||
LibName4=conn
|
LibName4=conn
|
||||||
LibName5=linear
|
LibName5=linear
|
||||||
LibName6=regul
|
LibName6=regul
|
||||||
LibName7=74xx
|
LibName7=74xx
|
||||||
LibName8=cmos4000
|
LibName8=cmos4000
|
||||||
LibName9=adc-dac
|
LibName9=adc-dac
|
||||||
LibName10=memory
|
LibName10=memory
|
||||||
LibName11=xilinx
|
LibName11=xilinx
|
||||||
LibName12=special
|
LibName12=special
|
||||||
LibName13=microcontrollers
|
LibName13=microcontrollers
|
||||||
LibName14=dsp
|
LibName14=dsp
|
||||||
LibName15=microchip
|
LibName15=microchip
|
||||||
LibName16=analog_switches
|
LibName16=analog_switches
|
||||||
LibName17=motorola
|
LibName17=motorola
|
||||||
LibName18=texas
|
LibName18=texas
|
||||||
LibName19=intel
|
LibName19=intel
|
||||||
LibName20=audio
|
LibName20=audio
|
||||||
LibName21=interface
|
LibName21=interface
|
||||||
LibName22=digital-audio
|
LibName22=digital-audio
|
||||||
LibName23=philips
|
LibName23=philips
|
||||||
LibName24=display
|
LibName24=display
|
||||||
LibName25=cypress
|
LibName25=cypress
|
||||||
LibName26=siliconi
|
LibName26=siliconi
|
||||||
LibName27=contrib
|
LibName27=contrib
|
||||||
LibName28=valves
|
LibName28=valves
|
||||||
[pcbnew]
|
[pcbnew]
|
||||||
version=1
|
version=1
|
||||||
PadDrlX=0
|
PadDrlX=0
|
||||||
PadDimH=160
|
PadDimH=160
|
||||||
PadDimV=500
|
PadDimV=500
|
||||||
PadForm=1
|
PadForm=1
|
||||||
PadMask=14745599
|
PadMask=14745599
|
||||||
ViaDiam=350
|
ViaDiam=350
|
||||||
ViaDril=150
|
ViaDril=150
|
||||||
MViaDia=200
|
MViaDia=200
|
||||||
MViaDrl=80
|
MViaDrl=80
|
||||||
Isol=60
|
Isol=60
|
||||||
Countlayer=4
|
Countlayer=4
|
||||||
Lpiste=300
|
Lpiste=300
|
||||||
RouteTo=15
|
RouteTo=15
|
||||||
RouteBo=0
|
RouteBo=0
|
||||||
TypeVia=3
|
TypeVia=3
|
||||||
Segm45=1
|
Segm45=1
|
||||||
Racc45=1
|
Racc45=1
|
||||||
SgPcb45=1
|
SgPcb45=1
|
||||||
TxtPcbV=800
|
TxtPcbV=800
|
||||||
TxtPcbH=600
|
TxtPcbH=600
|
||||||
TxtModV=600
|
TxtModV=600
|
||||||
TxtModH=600
|
TxtModH=600
|
||||||
TxtModW=120
|
TxtModW=120
|
||||||
HPGLnum=1
|
HPGLnum=1
|
||||||
HPGdiam=15
|
HPGdiam=15
|
||||||
HPGLSpd=20
|
HPGLSpd=20
|
||||||
HPGLrec=2
|
HPGLrec=2
|
||||||
HPGLorg=0
|
HPGLorg=0
|
||||||
VEgarde=100
|
VEgarde=100
|
||||||
DrawLar=150
|
DrawLar=150
|
||||||
EdgeLar=150
|
EdgeLar=150
|
||||||
TxtLar=120
|
TxtLar=120
|
||||||
MSegLar=60
|
MSegLar=60
|
||||||
WpenSer=10
|
WpenSer=10
|
||||||
UserGrX=0
|
UserGrX=0
|
||||||
UserGrY=0
|
UserGrY=0
|
||||||
UserGrU=1
|
UserGrU=1
|
||||||
DivGrPc=1
|
DivGrPc=1
|
||||||
TimeOut=600
|
TimeOut=600
|
||||||
ShowRat=0
|
ShowRat=0
|
||||||
ShowMRa=1
|
ShowMRa=1
|
||||||
[pcbnew/libraries]
|
[pcbnew/libraries]
|
||||||
LibDir=
|
LibDir=
|
||||||
LibName1=supports
|
LibName1=supports
|
||||||
LibName2=connect
|
LibName2=connect
|
||||||
LibName3=discret
|
LibName3=discret
|
||||||
LibName4=pin_array
|
LibName4=pin_array
|
||||||
LibName5=divers
|
LibName5=divers
|
||||||
LibName6=libcms
|
LibName6=libcms
|
||||||
LibName7=display
|
LibName7=display
|
||||||
LibName8=valves
|
LibName8=valves
|
||||||
|
|
|
@ -1,304 +1,304 @@
|
||||||
/**********************
|
/**********************
|
||||||
* class_base_screen.h
|
* class_base_screen.h
|
||||||
**********************/
|
**********************/
|
||||||
|
|
||||||
/* define :
|
/* define :
|
||||||
* class DrawBlockStruct used to handle block commands
|
* class DrawBlockStruct used to handle block commands
|
||||||
* class BASE_SCREEN to handle how to draw a screen (a board, a schematic ...)
|
* class BASE_SCREEN to handle how to draw a screen (a board, a schematic ...)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CLASS_BASE_SCREEN_H__
|
#ifndef __CLASS_BASE_SCREEN_H__
|
||||||
#define __CLASS_BASE_SCREEN_H__
|
#define __CLASS_BASE_SCREEN_H__
|
||||||
|
|
||||||
#include "base_struct.h"
|
#include "base_struct.h"
|
||||||
|
|
||||||
|
|
||||||
// Forward declarations:
|
// Forward declarations:
|
||||||
class SCH_ITEM;
|
class SCH_ITEM;
|
||||||
class Ki_PageDescr;
|
class Ki_PageDescr;
|
||||||
|
|
||||||
|
|
||||||
/**************************/
|
/**************************/
|
||||||
/* class DrawBlockStruct */
|
/* class DrawBlockStruct */
|
||||||
/**************************/
|
/**************************/
|
||||||
/* Definition d'un block pour les fonctions sur block (block move, ..) */
|
/* Definition d'un block pour les fonctions sur block (block move, ..) */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
/* definition de l'etat du block */
|
/* definition de l'etat du block */
|
||||||
STATE_NO_BLOCK, /* Block non initialise */
|
STATE_NO_BLOCK, /* Block non initialise */
|
||||||
STATE_BLOCK_INIT, /* Block initialise: 1er point defini */
|
STATE_BLOCK_INIT, /* Block initialise: 1er point defini */
|
||||||
STATE_BLOCK_END, /* Block initialise: 2eme point defini */
|
STATE_BLOCK_END, /* Block initialise: 2eme point defini */
|
||||||
STATE_BLOCK_MOVE, /* Block en deplacement */
|
STATE_BLOCK_MOVE, /* Block en deplacement */
|
||||||
STATE_BLOCK_STOP /* Block fixe (fin de deplacement) */
|
STATE_BLOCK_STOP /* Block fixe (fin de deplacement) */
|
||||||
} BlockState;
|
} BlockState;
|
||||||
|
|
||||||
/* codes des differentes commandes sur block: */
|
/* codes des differentes commandes sur block: */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
BLOCK_IDLE,
|
BLOCK_IDLE,
|
||||||
BLOCK_MOVE,
|
BLOCK_MOVE,
|
||||||
BLOCK_COPY,
|
BLOCK_COPY,
|
||||||
BLOCK_SAVE,
|
BLOCK_SAVE,
|
||||||
BLOCK_DELETE,
|
BLOCK_DELETE,
|
||||||
BLOCK_PASTE,
|
BLOCK_PASTE,
|
||||||
BLOCK_DRAG,
|
BLOCK_DRAG,
|
||||||
BLOCK_ROTATE,
|
BLOCK_ROTATE,
|
||||||
BLOCK_INVERT,
|
BLOCK_INVERT,
|
||||||
BLOCK_ZOOM,
|
BLOCK_ZOOM,
|
||||||
BLOCK_ABORT,
|
BLOCK_ABORT,
|
||||||
BLOCK_PRESELECT_MOVE,
|
BLOCK_PRESELECT_MOVE,
|
||||||
BLOCK_SELECT_ITEMS_ONLY,
|
BLOCK_SELECT_ITEMS_ONLY,
|
||||||
BLOCK_MIRROR_X,
|
BLOCK_MIRROR_X,
|
||||||
BLOCK_MIRROR_Y
|
BLOCK_MIRROR_Y
|
||||||
} CmdBlockType;
|
} CmdBlockType;
|
||||||
|
|
||||||
|
|
||||||
class DrawBlockStruct : public EDA_BaseStruct, public EDA_Rect
|
class DrawBlockStruct : public EDA_BaseStruct, public EDA_Rect
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BlockState m_State; /* Etat (enum BlockState) du block */
|
BlockState m_State; /* Etat (enum BlockState) du block */
|
||||||
CmdBlockType m_Command; /* Type (enum CmdBlockType) d'operation */
|
CmdBlockType m_Command; /* Type (enum CmdBlockType) d'operation */
|
||||||
EDA_BaseStruct* m_BlockDrawStruct; /* pointeur sur la structure
|
EDA_BaseStruct* m_BlockDrawStruct; /* pointeur sur la structure
|
||||||
* selectionnee dans le bloc */
|
* selectionnee dans le bloc */
|
||||||
int m_Color; /* Block Color */
|
int m_Color; /* Block Color */
|
||||||
wxPoint m_MoveVector; /* Move distance in move, drag, copy ... command */
|
wxPoint m_MoveVector; /* Move distance in move, drag, copy ... command */
|
||||||
wxPoint m_BlockLastCursorPosition; /* Last Mouse position in block command
|
wxPoint m_BlockLastCursorPosition; /* Last Mouse position in block command
|
||||||
* = last cursor position in move commands
|
* = last cursor position in move commands
|
||||||
* = 0,0 in block paste */
|
* = 0,0 in block paste */
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DrawBlockStruct();
|
DrawBlockStruct();
|
||||||
~DrawBlockStruct();
|
~DrawBlockStruct();
|
||||||
void SetMessageBlock( WinEDA_DrawFrame* frame );
|
void SetMessageBlock( WinEDA_DrawFrame* frame );
|
||||||
void Draw( WinEDA_DrawPanel* panel, wxDC* DC );
|
void Draw( WinEDA_DrawPanel* panel, wxDC* DC );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* Simple class for handling grid arrays. */
|
/* Simple class for handling grid arrays. */
|
||||||
class GRID_TYPE
|
class GRID_TYPE
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
int m_Id;
|
int m_Id;
|
||||||
wxRealPoint m_Size;
|
wxRealPoint m_Size;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* Declare array of wxSize for grid list implementation. */
|
/* Declare array of wxSize for grid list implementation. */
|
||||||
#include <wx/dynarray.h>
|
#include <wx/dynarray.h>
|
||||||
WX_DECLARE_OBJARRAY( GRID_TYPE, GridArray );
|
WX_DECLARE_OBJARRAY( GRID_TYPE, GridArray );
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************/
|
/*******************************************************************/
|
||||||
/* Class to handle how to draw a screen (a board, a schematic ...) */
|
/* Class to handle how to draw a screen (a board, a schematic ...) */
|
||||||
/*******************************************************************/
|
/*******************************************************************/
|
||||||
class BASE_SCREEN : public EDA_BaseStruct
|
class BASE_SCREEN : public EDA_BaseStruct
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxPoint m_DrawOrg; /* offsets pour tracer le circuit sur l'ecran */
|
wxPoint m_DrawOrg; /* offsets pour tracer le circuit sur l'ecran */
|
||||||
wxPoint m_Curseur; /* Screen cursor coordinate (on grid) in user units. */
|
wxPoint m_Curseur; /* Screen cursor coordinate (on grid) in user units. */
|
||||||
wxPoint m_MousePosition; /* Mouse cursor coordinate (off grid) in user units. */
|
wxPoint m_MousePosition; /* Mouse cursor coordinate (off grid) in user units. */
|
||||||
wxPoint m_MousePositionInPixels; /* Mouse cursor coordinate (off grid) in pixels. */
|
wxPoint m_MousePositionInPixels; /* Mouse cursor coordinate (off grid) in pixels. */
|
||||||
wxPoint m_O_Curseur; /* Relative Screen cursor coordinate (on grid) in user units.
|
wxPoint m_O_Curseur; /* Relative Screen cursor coordinate (on grid) in user units.
|
||||||
* (coordinates from last reset position)*/
|
* (coordinates from last reset position)*/
|
||||||
wxPoint m_ScrollbarPos; // Position effective des Curseurs de scroll
|
wxPoint m_ScrollbarPos; // Position effective des Curseurs de scroll
|
||||||
wxSize m_ScrollbarNumber; /* Valeur effective des Nombres de Scrool
|
wxSize m_ScrollbarNumber; /* Valeur effective des Nombres de Scrool
|
||||||
* c.a.d taille en unites de scroll de la surface totale affichable */
|
* c.a.d taille en unites de scroll de la surface totale affichable */
|
||||||
wxPoint m_StartVisu; // Coord absolues du 1er pixel visualis<69>a l'ecran (en nombre de pixels)
|
wxPoint m_StartVisu; // Coord absolues du 1er pixel visualis<69>a l'ecran (en nombre de pixels)
|
||||||
|
|
||||||
wxSize m_SizeVisu; /* taille en pixels de l'ecran (fenetre de visu
|
wxSize m_SizeVisu; /* taille en pixels de l'ecran (fenetre de visu
|
||||||
* Utile pour recadrer les affichages lors de la
|
* Utile pour recadrer les affichages lors de la
|
||||||
* navigation dans la hierarchie */
|
* navigation dans la hierarchie */
|
||||||
bool m_Center; /* fix the coordinate (0,0) position on screen : if TRUE (0,0) in centered on screen
|
bool m_Center; /* fix the coordinate (0,0) position on screen : if TRUE (0,0) in centered on screen
|
||||||
* TRUE: when coordiantaes can be < 0 and > 0 all but schematic
|
* TRUE: when coordiantaes can be < 0 and > 0 all but schematic
|
||||||
* FALSE: when coordinates can be only >= 0 Schematic
|
* FALSE: when coordinates can be only >= 0 Schematic
|
||||||
*/
|
*/
|
||||||
bool m_FirstRedraw;
|
bool m_FirstRedraw;
|
||||||
|
|
||||||
/* Gestion des editions */
|
/* Gestion des editions */
|
||||||
SCH_ITEM* EEDrawList; /* Object list (main data) for schematic */
|
SCH_ITEM* EEDrawList; /* Object list (main data) for schematic */
|
||||||
EDA_BaseStruct* m_UndoList; /* Object list for the undo command (old data) */
|
EDA_BaseStruct* m_UndoList; /* Object list for the undo command (old data) */
|
||||||
EDA_BaseStruct* m_RedoList; /* Object list for the redo command (old data) */
|
EDA_BaseStruct* m_RedoList; /* Object list for the redo command (old data) */
|
||||||
int m_UndoRedoCountMax; /* undo/Redo command Max depth */
|
int m_UndoRedoCountMax; /* undo/Redo command Max depth */
|
||||||
|
|
||||||
/* block control */
|
/* block control */
|
||||||
DrawBlockStruct BlockLocate; /* Bock description for block commands */
|
DrawBlockStruct BlockLocate; /* Bock description for block commands */
|
||||||
|
|
||||||
/* Page description */
|
/* Page description */
|
||||||
Ki_PageDescr* m_CurrentSheetDesc;
|
Ki_PageDescr* m_CurrentSheetDesc;
|
||||||
int m_ScreenNumber;
|
int m_ScreenNumber;
|
||||||
int m_NumberOfScreen;
|
int m_NumberOfScreen;
|
||||||
|
|
||||||
wxString m_FileName;
|
wxString m_FileName;
|
||||||
wxString m_Title; /* titre de la feuille */
|
wxString m_Title; /* titre de la feuille */
|
||||||
wxString m_Date; /* date de mise a jour */
|
wxString m_Date; /* date de mise a jour */
|
||||||
wxString m_Revision; /* code de revision */
|
wxString m_Revision; /* code de revision */
|
||||||
wxString m_Company; /* nom du proprietaire */
|
wxString m_Company; /* nom du proprietaire */
|
||||||
wxString m_Commentaire1;
|
wxString m_Commentaire1;
|
||||||
wxString m_Commentaire2;
|
wxString m_Commentaire2;
|
||||||
wxString m_Commentaire3;
|
wxString m_Commentaire3;
|
||||||
wxString m_Commentaire4;
|
wxString m_Commentaire4;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/* indicateurs divers */
|
/* indicateurs divers */
|
||||||
char m_FlagRefreshReq; /* indique que l'ecran doit redessine */
|
char m_FlagRefreshReq; /* indique que l'ecran doit redessine */
|
||||||
char m_FlagModified; // indique modif du PCB,utilise pour eviter une sortie sans sauvegarde
|
char m_FlagModified; // indique modif du PCB,utilise pour eviter une sortie sans sauvegarde
|
||||||
char m_FlagSave; // indique sauvegarde auto faite
|
char m_FlagSave; // indique sauvegarde auto faite
|
||||||
EDA_BaseStruct* m_CurrentItem; ///< Currently selected object
|
EDA_BaseStruct* m_CurrentItem; ///< Currently selected object
|
||||||
|
|
||||||
/* Valeurs du pas de grille et du zoom */
|
/* Valeurs du pas de grille et du zoom */
|
||||||
public:
|
public:
|
||||||
wxRealPoint m_Grid; /* Current grid. */
|
wxRealPoint m_Grid; /* Current grid. */
|
||||||
GridArray m_GridList;
|
GridArray m_GridList;
|
||||||
bool m_UserGridIsON;
|
bool m_UserGridIsON;
|
||||||
|
|
||||||
wxArrayInt m_ZoomList; /* Array of standard zoom coefficients. */
|
wxArrayInt m_ZoomList; /* Array of standard zoom coefficients. */
|
||||||
int m_Zoom; /* Current zoom coefficient. */
|
int m_Zoom; /* Current zoom coefficient. */
|
||||||
int m_ZoomScalar; /* Allow zooming to non-integer increments. */
|
int m_ZoomScalar; /* Allow zooming to non-integer increments. */
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BASE_SCREEN( KICAD_T aType = SCREEN_STRUCT_TYPE );
|
BASE_SCREEN( KICAD_T aType = SCREEN_STRUCT_TYPE );
|
||||||
~BASE_SCREEN();
|
~BASE_SCREEN();
|
||||||
|
|
||||||
BASE_SCREEN* Next() const { return (BASE_SCREEN*) Pnext; }
|
BASE_SCREEN* Next() const { return (BASE_SCREEN*) Pnext; }
|
||||||
BASE_SCREEN* Back() const { return (BASE_SCREEN*) Pback; }
|
BASE_SCREEN* Back() const { return (BASE_SCREEN*) Pback; }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function setCurItem
|
* Function setCurItem
|
||||||
* sets the currently selected object, m_CurrentItem.
|
* sets the currently selected object, m_CurrentItem.
|
||||||
* @param current Any object derived from EDA_BaseStruct
|
* @param current Any object derived from EDA_BaseStruct
|
||||||
*/
|
*/
|
||||||
void SetCurItem( EDA_BaseStruct* current ) { m_CurrentItem = current; }
|
void SetCurItem( EDA_BaseStruct* current ) { m_CurrentItem = current; }
|
||||||
EDA_BaseStruct* GetCurItem() const { return m_CurrentItem; }
|
EDA_BaseStruct* GetCurItem() const { return m_CurrentItem; }
|
||||||
|
|
||||||
void InitDatas(); /* Inits completes des variables */
|
void InitDatas(); /* Inits completes des variables */
|
||||||
|
|
||||||
wxSize ReturnPageSize( void );
|
wxSize ReturnPageSize( void );
|
||||||
virtual int GetInternalUnits( void );
|
virtual int GetInternalUnits( void );
|
||||||
|
|
||||||
/** Function CursorRealPosition
|
/** Function CursorRealPosition
|
||||||
* @return the position in user units of location ScreenPos
|
* @return the position in user units of location ScreenPos
|
||||||
* @param ScreenPos = the screen (in pixel) position co convert
|
* @param ScreenPos = the screen (in pixel) position co convert
|
||||||
*/
|
*/
|
||||||
wxPoint CursorRealPosition( const wxPoint& ScreenPos );
|
wxPoint CursorRealPosition( const wxPoint& ScreenPos );
|
||||||
|
|
||||||
/* general Undo/Redo command control */
|
/* general Undo/Redo command control */
|
||||||
virtual void ClearUndoRedoList();
|
virtual void ClearUndoRedoList();
|
||||||
virtual void AddItemToUndoList( EDA_BaseStruct* item );
|
virtual void AddItemToUndoList( EDA_BaseStruct* item );
|
||||||
virtual void AddItemToRedoList( EDA_BaseStruct* item );
|
virtual void AddItemToRedoList( EDA_BaseStruct* item );
|
||||||
virtual EDA_BaseStruct* GetItemFromUndoList();
|
virtual EDA_BaseStruct* GetItemFromUndoList();
|
||||||
virtual EDA_BaseStruct* GetItemFromRedoList();
|
virtual EDA_BaseStruct* GetItemFromRedoList();
|
||||||
|
|
||||||
/* Manipulation des flags */
|
/* Manipulation des flags */
|
||||||
void SetRefreshReq() { m_FlagRefreshReq = 1; }
|
void SetRefreshReq() { m_FlagRefreshReq = 1; }
|
||||||
void ClrRefreshReq() { m_FlagRefreshReq = 0; }
|
void ClrRefreshReq() { m_FlagRefreshReq = 0; }
|
||||||
void SetModify() { m_FlagModified = 1; m_FlagSave = 0; }
|
void SetModify() { m_FlagModified = 1; m_FlagSave = 0; }
|
||||||
void ClrModify() { m_FlagModified = 0; m_FlagSave = 1; }
|
void ClrModify() { m_FlagModified = 0; m_FlagSave = 1; }
|
||||||
void SetSave() { m_FlagSave = 1; }
|
void SetSave() { m_FlagSave = 1; }
|
||||||
void ClrSave() { m_FlagSave = 0; }
|
void ClrSave() { m_FlagSave = 0; }
|
||||||
int IsModify() { return m_FlagModified & 1; }
|
int IsModify() { return m_FlagModified & 1; }
|
||||||
int IsRefreshReq() { return m_FlagRefreshReq & 1; }
|
int IsRefreshReq() { return m_FlagRefreshReq & 1; }
|
||||||
int IsSave() { return m_FlagSave & 1; }
|
int IsSave() { return m_FlagSave & 1; }
|
||||||
|
|
||||||
|
|
||||||
//----<zoom stuff>----------------------------------------------------------
|
//----<zoom stuff>----------------------------------------------------------
|
||||||
|
|
||||||
/** Function GetScalingFactor
|
/** Function GetScalingFactor
|
||||||
* @return the the current scale used to draw items on screen
|
* @return the the current scale used to draw items on screen
|
||||||
* draw coordinates are user coordinates * GetScalingFactor( )
|
* draw coordinates are user coordinates * GetScalingFactor( )
|
||||||
*/
|
*/
|
||||||
double GetScalingFactor()
|
double GetScalingFactor()
|
||||||
{
|
{
|
||||||
return (double) m_ZoomScalar / GetZoom();
|
return (double) m_ZoomScalar / GetZoom();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Function SetScalingFactor
|
/** Function SetScalingFactor
|
||||||
* @param the the current scale used to draw items on screen
|
* @param the the current scale used to draw items on screen
|
||||||
* draw coordinates are user coordinates * GetScalingFactor( )
|
* draw coordinates are user coordinates * GetScalingFactor( )
|
||||||
*/
|
*/
|
||||||
void SetScalingFactor( double aScale );
|
void SetScalingFactor( double aScale );
|
||||||
|
|
||||||
/** Function GetZoom
|
/** Function GetZoom
|
||||||
* @return the current zoom factor
|
* @return the current zoom factor
|
||||||
* Note: the zoom factor is NOT the scaling factor
|
* Note: the zoom factor is NOT the scaling factor
|
||||||
* the scaling factor is m_ZoomScalar * GetZoom()
|
* the scaling factor is m_ZoomScalar * GetZoom()
|
||||||
*/
|
*/
|
||||||
int GetZoom() const;
|
int GetZoom() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function SetZoom
|
* Function SetZoom
|
||||||
* adjusts the current zoom factor
|
* adjusts the current zoom factor
|
||||||
*/
|
*/
|
||||||
bool SetZoom( int coeff );
|
bool SetZoom( int coeff );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function SetZoomList
|
* Function SetZoomList
|
||||||
* sets the list of zoom factors.
|
* sets the list of zoom factors.
|
||||||
* @param aZoomList An array of zoom factors in ascending order, zero terminated
|
* @param aZoomList An array of zoom factors in ascending order, zero terminated
|
||||||
*/
|
*/
|
||||||
void SetZoomList( const wxArrayInt& zoomlist );
|
void SetZoomList( const wxArrayInt& zoomlist );
|
||||||
|
|
||||||
int Scale( int coord );
|
int Scale( int coord );
|
||||||
void Scale( wxPoint& pt );
|
void Scale( wxPoint& pt );
|
||||||
void Scale( wxSize& sz );
|
void Scale( wxSize& sz );
|
||||||
void Scale( wxRealPoint& sz );
|
void Scale( wxRealPoint& sz );
|
||||||
|
|
||||||
int Unscale( int coord );
|
int Unscale( int coord );
|
||||||
void Unscale( wxPoint& pt );
|
void Unscale( wxPoint& pt );
|
||||||
void Unscale( wxSize& sz );
|
void Unscale( wxSize& sz );
|
||||||
|
|
||||||
bool SetNextZoom(); /* ajuste le prochain coeff de zoom */
|
bool SetNextZoom(); /* ajuste le prochain coeff de zoom */
|
||||||
bool SetPreviousZoom(); /* ajuste le precedent coeff de zoom */
|
bool SetPreviousZoom(); /* ajuste le precedent coeff de zoom */
|
||||||
bool SetFirstZoom(); /* ajuste le coeff de zoom a 1*/
|
bool SetFirstZoom(); /* ajuste le coeff de zoom a 1*/
|
||||||
bool SetLastZoom(); /* ajuste le coeff de zoom au max */
|
bool SetLastZoom(); /* ajuste le coeff de zoom au max */
|
||||||
|
|
||||||
//----<grid stuff>----------------------------------------------------------
|
//----<grid stuff>----------------------------------------------------------
|
||||||
wxRealPoint GetGrid(); /* retourne la grille */
|
wxRealPoint GetGrid(); /* retourne la grille */
|
||||||
void SetGrid( const wxRealPoint& size );
|
void SetGrid( const wxRealPoint& size );
|
||||||
void SetGrid( int );
|
void SetGrid( int );
|
||||||
void SetGridList( GridArray& sizelist );
|
void SetGridList( GridArray& sizelist );
|
||||||
void AddGrid( const GRID_TYPE& grid );
|
void AddGrid( const GRID_TYPE& grid );
|
||||||
void AddGrid( const wxRealPoint& size, int id );
|
void AddGrid( const wxRealPoint& size, int id );
|
||||||
void AddGrid( const wxRealPoint& size, int units, int id );
|
void AddGrid( const wxRealPoint& size, int units, int id );
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function RefPos
|
* Function RefPos
|
||||||
* returns the reference position, coming from either the mouse position or the
|
* returns the reference position, coming from either the mouse position or the
|
||||||
* the cursor position.
|
* the cursor position.
|
||||||
* @param useMouse If true, return mouse position, else cursor's.
|
* @param useMouse If true, return mouse position, else cursor's.
|
||||||
* @return wxPoint - The reference point, either the mouse position or
|
* @return wxPoint - The reference point, either the mouse position or
|
||||||
* the cursor position.
|
* the cursor position.
|
||||||
*/
|
*/
|
||||||
wxPoint RefPos( bool useMouse )
|
wxPoint RefPos( bool useMouse )
|
||||||
{
|
{
|
||||||
return useMouse ? m_MousePosition : m_Curseur;
|
return useMouse ? m_MousePosition : m_Curseur;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function GetClass
|
* Function GetClass
|
||||||
* returns the class name.
|
* returns the class name.
|
||||||
* @return wxString
|
* @return wxString
|
||||||
*/
|
*/
|
||||||
virtual wxString GetClass() const
|
virtual wxString GetClass() const
|
||||||
{
|
{
|
||||||
return wxT( "BASE_SCREEN" );
|
return wxT( "BASE_SCREEN" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if defined(DEBUG)
|
#if defined(DEBUG)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function Show
|
* Function Show
|
||||||
* is used to output the object tree, currently for debugging only.
|
* is used to output the object tree, currently for debugging only.
|
||||||
* @param nestLevel An aid to prettier tree indenting, and is the level
|
* @param nestLevel An aid to prettier tree indenting, and is the level
|
||||||
* of nesting of this object within the overall tree.
|
* of nesting of this object within the overall tree.
|
||||||
* @param os The ostream& to output to.
|
* @param os The ostream& to output to.
|
||||||
*/
|
*/
|
||||||
void Show( int nestLevel, std::ostream& os );
|
void Show( int nestLevel, std::ostream& os );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* #ifndef __CLASS_BASE_SCREEN_H__ */
|
#endif /* #ifndef __CLASS_BASE_SCREEN_H__ */
|
||||||
|
|
Loading…
Reference in New Issue