Commit e704c625 authored by CHARRAS's avatar CHARRAS
Browse files

some minor enhancements

parent 0bcc4d34
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -10,6 +10,11 @@ email address.
     if we switch from a long list of footprints to a short list (a filtered footprint list),
     and if the selected item is near the end of the long list,
     the new list is not displayed from the top of the list box
+eeschema:
	Implemented: graying in/out of "Edit/Undo", "Edit/Redo" menu items, 
	when Undo/Redo stack is empty/filled.
+pcbnew:
	Implemented: action for ID_POPUP_PCB_DELETE_MARKER


2007-Oct-27 UPDATE  Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
+25 −12
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ END_EVENT_TABLE()


	/****************/
	/* Constructeur */
	/* Constructor */
	/****************/

WinEDA_SchematicFrame::	WinEDA_SchematicFrame(wxWindow * father, WinEDA_App *parent,
@@ -120,9 +120,9 @@ WinEDA_SchematicFrame:: WinEDA_SchematicFrame(wxWindow * father, WinEDA_App *par
					WinEDA_DrawFrame(father, SCHEMATIC_FRAME, parent, title, pos, size, style)
{
	m_FrameName = wxT("SchematicFrame");
	m_Draw_Axis = FALSE;			// TRUE pour avoir les axes dessines
	m_Draw_Grid = g_ShowGrid;			// TRUE pour avoir la grille dessinee
	m_Draw_Sheet_Ref = TRUE;		// TRUE pour avoir le cartouche dessin
	m_Draw_Axis = FALSE;			// TRUE to show axis
	m_Draw_Grid = g_ShowGrid;			// TRUE to show a grid
	m_Draw_Sheet_Ref = TRUE;		// TRUE to show sheet references

	// Give an icon
	#ifdef __WINDOWS__
@@ -149,7 +149,7 @@ WinEDA_SchematicFrame:: WinEDA_SchematicFrame(wxWindow * father, WinEDA_App *par


	/***************/
	/* Destructeur */
	/* Destructor */
	/***************/

WinEDA_SchematicFrame::~WinEDA_SchematicFrame()
@@ -199,7 +199,7 @@ SCH_SCREEN * screen;
	}

	screen = ScreenSch ;
	while( screen )	// suppression flag modify pour eviter d'autres message
	while( screen )	// Clear "flag modify" to avoid alert messages when closing sub sheets
	{
		screen->ClrModify();
		screen = (SCH_SCREEN*)screen->Pnext;
@@ -210,8 +210,7 @@ SCH_SCREEN * screen;

	ClearProjectDrawList(ScreenSch, TRUE);

	/* Tous les autres SCREEN sont effaces, aussi reselection de
	 l'ecran de base, pour les evenements de refresh gnrs par wxWindows */
	/* allof sub sheets are deleted, only the main sheet is useable */
	m_CurrentScreen = ActiveScreen = ScreenSch;

	SaveSettings();
@@ -226,8 +225,7 @@ SCH_SCREEN * screen;
/********************************************/
void WinEDA_SchematicFrame::SetToolbars()
/********************************************/
/* Active ou desactive les tools du toolbar horizontal, en fonction des commandes
en cours
/* Enable or disable some tools according to current conditions
*/
{
	if( m_HToolBar )
@@ -246,12 +244,27 @@ en cours
		if ( g_BlockSaveDataList ) m_HToolBar->EnableTool(wxID_PASTE,TRUE);
		else m_HToolBar->EnableTool(wxID_PASTE,FALSE);

		wxMenuBar * menuBar = GetMenuBar();
		if ( GetScreen()->m_RedoList )
		{
			m_HToolBar->EnableTool(ID_SCHEMATIC_REDO,TRUE);
		else m_HToolBar->EnableTool(ID_SCHEMATIC_REDO,FALSE);
			menuBar->Enable(ID_SCHEMATIC_REDO,TRUE);
		}
		else
		{
			m_HToolBar->EnableTool(ID_SCHEMATIC_REDO,FALSE);
			menuBar->Enable(ID_SCHEMATIC_REDO,FALSE);
		}
		if ( GetScreen()->m_UndoList )
		{
			m_HToolBar->EnableTool(ID_SCHEMATIC_UNDO,TRUE);
		else m_HToolBar->EnableTool(ID_SCHEMATIC_UNDO,FALSE);
			menuBar->Enable(ID_SCHEMATIC_UNDO,TRUE);
		}
		else
		{
			m_HToolBar->EnableTool(ID_SCHEMATIC_UNDO,FALSE);
			menuBar->Enable(ID_SCHEMATIC_UNDO,FALSE);
		}
	}

	if ( m_OptionsToolBar )
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@

COMMON_GLOBL wxString g_BuildVersion
#ifdef EDA_BASE
	(wxT("(2007-10-21)"))
	(wxT("(2007-10-29)"))
#endif
;

+1 −1
Original line number Diff line number Diff line
@@ -681,7 +681,7 @@ public:
    void                Erase_Textes_Pcb( wxDC* DC, bool query );
    void                Erase_Marqueurs();
    void                UnDeleteItem( wxDC* DC );
    void                RemoveStruct( EDA_BaseStruct* Item, wxDC* DC );
    void                RemoveStruct( BOARD_ITEM* Item, wxDC* DC );
    void                Via_Edit_Control( wxDC* DC, int command_type, SEGVIA* via );

    // Hightlight functions:
−7 B (131 KiB)

File changed.

No diff preview for this file type.

Loading