From dac25cdbf9689fa7e1f4e75761671d5c578a1850 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Tue, 2 Oct 2007 15:35:31 +0000 Subject: [PATCH] resizeable borders option --- change_log.txt | 12 ++++++++++++ common/displlst.cpp | 3 +-- cvpcb/dialog_cvpcb_config.h | 3 +-- cvpcb/dialog_display_options.h | 3 +-- eeschema/annotate_dialog.h | 3 +-- eeschema/dialog_build_BOM.h | 3 +-- eeschema/dialog_cmp_graphic_properties.h | 3 +-- eeschema/dialog_create_component.h | 3 +-- eeschema/dialog_edit_component_in_lib.h | 3 +-- eeschema/dialog_edit_component_in_schematic.h | 3 +-- eeschema/dialog_edit_label.h | 3 +-- eeschema/dialog_eeschema_config.h | 3 +-- eeschema/dialog_erc.h | 5 +++-- eeschema/dialog_find.h | 3 +-- eeschema/dialog_options.h | 3 +-- eeschema/netlist_control.cpp | 3 +-- eeschema/pinedit-dialog.h | 3 +-- eeschema/plotps.h | 3 +-- eeschema/sheet.h | 3 +-- eeschema/symbtext.h | 3 +-- include/fctsys.h | 6 ++++++ pcbnew/cleaningoptions_dialog.h | 3 +-- pcbnew/dialog_display_options.h | 3 +-- pcbnew/dialog_drc.h | 3 +-- pcbnew/dialog_edit_mod_text.h | 3 +-- pcbnew/dialog_general_options.h | 3 +-- pcbnew/dialog_graphic_items_options.h | 3 +-- pcbnew/dialog_initpcb.h | 3 +-- pcbnew/dialog_netlist.h | 3 +-- pcbnew/dialog_setup_libs.h | 3 +-- pcbnew/dialog_track_options.h | 3 +-- pcbnew/find.h | 3 +-- pcbnew/set_grid.h | 3 +-- pcbnew/zones.h | 2 +- share/dialog_print.h | 3 +-- share/svg_print.h | 3 +-- 36 files changed, 54 insertions(+), 67 deletions(-) diff --git a/change_log.txt b/change_log.txt index 3e36dbf2b2..c1a563218a 100644 --- a/change_log.txt +++ b/change_log.txt @@ -4,6 +4,18 @@ Started 2007-June-11 Please add newer entries at the top, list the date and your name with email address. + +2007-Oct-2 UPDATE Dick Hollenbeck +================================================================================ ++ all + The lack of border resizing in dialogs has been a problem. In my world, + dialog boxes are resizable. I use large fonts, I like to see stuff. + So now for __UNIX__ they are resizeable, for windows not. + See fctsys.h and the #define for MAYBE_RESIZE_BORDER. For windows it defaults + to zero which means resizeable is not featured. A compiler command line + option of "USE_RESIZE_BORDER" can override this windows default. + + 2007-Oct-01 UPDATE Jean-Pierre Charras ================================================================================ + pcbnew/eeschema diff --git a/common/displlst.cpp b/common/displlst.cpp index 1108933358..2a9c256a4d 100644 --- a/common/displlst.cpp +++ b/common/displlst.cpp @@ -47,8 +47,7 @@ WinEDAListBox::WinEDAListBox( WinEDA_DrawFrame * parent, const wxString & title, void(* movefct)(wxString & Text), const wxColour & colour, wxPoint dialog_position): wxDialog(parent, -1, title, dialog_position, wxDefaultSize, - wxDEFAULT_DIALOG_STYLE -// |wxRESIZE_BORDER + wxDEFAULT_DIALOG_STYLE | MAYBE_RESIZE_BORDER ) { wxSize size; diff --git a/cvpcb/dialog_cvpcb_config.h b/cvpcb/dialog_cvpcb_config.h index 3e2c0061d1..b27a919b9d 100644 --- a/cvpcb/dialog_cvpcb_config.h +++ b/cvpcb/dialog_cvpcb_config.h @@ -35,8 +35,7 @@ class wxBoxSizer; ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_KICONFIGCVPCBFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_KICONFIGCVPCBFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_KICONFIGCVPCBFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_KICONFIGCVPCBFRAME_TITLE _("Dialog") #define SYMBOL_KICONFIGCVPCBFRAME_IDNAME ID_DIALOG #define SYMBOL_KICONFIGCVPCBFRAME_SIZE wxSize(400, 300) diff --git a/cvpcb/dialog_display_options.h b/cvpcb/dialog_display_options.h index 59c68b2f78..50ef6d9fa1 100644 --- a/cvpcb/dialog_display_options.h +++ b/cvpcb/dialog_display_options.h @@ -39,8 +39,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_KIDISPLAYOPTIONSFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_KIDISPLAYOPTIONSFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_KIDISPLAYOPTIONSFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_KIDISPLAYOPTIONSFRAME_TITLE _("Options") #define SYMBOL_KIDISPLAYOPTIONSFRAME_IDNAME ID_DIALOG #define SYMBOL_KIDISPLAYOPTIONSFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/annotate_dialog.h b/eeschema/annotate_dialog.h index 946a37c74a..4d5a3e3bda 100644 --- a/eeschema/annotate_dialog.h +++ b/eeschema/annotate_dialog.h @@ -49,8 +49,7 @@ #define ID_RADIOBOX2 10005 #define ID_ANNOTATE_CMP 10003 #define ID_DEANNOTATE_CMP 10004 -// #define SYMBOL_WINEDA_ANNOTATEFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_ANNOTATEFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_ANNOTATEFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|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) diff --git a/eeschema/dialog_build_BOM.h b/eeschema/dialog_build_BOM.h index ee2c6b736a..21c4e51e41 100644 --- a/eeschema/dialog_build_BOM.h +++ b/eeschema/dialog_build_BOM.h @@ -54,8 +54,7 @@ #define ID_CHECKBOX_FIELD6 10012 #define ID_CHECKBOX_FIELD7 10013 #define ID_CHECKBOX_FIELD8 10014 -// #define SYMBOL_WINEDA_BUILD_BOM_FRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxSTAY_ON_TOP|wxCLOSE_BOX -#define SYMBOL_WINEDA_BUILD_BOM_FRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_BUILD_BOM_FRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_BUILD_BOM_FRAME_TITLE _("List of Material") #define SYMBOL_WINEDA_BUILD_BOM_FRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_BUILD_BOM_FRAME_SIZE wxSize(400, 300) diff --git a/eeschema/dialog_cmp_graphic_properties.h b/eeschema/dialog_cmp_graphic_properties.h index 7888b1365e..855691fb43 100644 --- a/eeschema/dialog_cmp_graphic_properties.h +++ b/eeschema/dialog_cmp_graphic_properties.h @@ -39,8 +39,7 @@ class wxBoxSizer; #define ID_CHECKBOX 10001 #define ID_CHECKBOX1 10002 #define ID_RADIOBOX 10003 -// #define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_TITLE _("Graphic shape properties") #define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/dialog_create_component.h b/eeschema/dialog_create_component.h index c6a189fba3..79b086d0af 100644 --- a/eeschema/dialog_create_component.h +++ b/eeschema/dialog_create_component.h @@ -41,8 +41,7 @@ class wxSpinCtrl; ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_CREATECMPDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxSTAY_ON_TOP|wxCLOSE_BOX -#define SYMBOL_WINEDA_CREATECMPDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_CREATECMPDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_CREATECMPDIALOG_TITLE _("Component Creation") #define SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME ID_DIALOG #define SYMBOL_WINEDA_CREATECMPDIALOG_SIZE wxSize(400, 300) diff --git a/eeschema/dialog_edit_component_in_lib.h b/eeschema/dialog_edit_component_in_lib.h index 531a5da0dd..9a635ebbfd 100644 --- a/eeschema/dialog_edit_component_in_lib.h +++ b/eeschema/dialog_edit_component_in_lib.h @@ -39,8 +39,7 @@ class wxSpinCtrl; ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_PARTPROPERTIESFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_PARTPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_PARTPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_PARTPROPERTIESFRAME_TITLE _("Lib Component Properties") #define SYMBOL_WINEDA_PARTPROPERTIESFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_PARTPROPERTIESFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/dialog_edit_component_in_schematic.h b/eeschema/dialog_edit_component_in_schematic.h index 95c51f34e4..3cb12a1175 100644 --- a/eeschema/dialog_edit_component_in_schematic.h +++ b/eeschema/dialog_edit_component_in_schematic.h @@ -48,8 +48,7 @@ class wxNotebook; #define ID_CHECKBOX_SHOW_FILED 10010 #define ID_CHECKBOX_FILED_ORIENT 10011 #define ID_RESTORE_CMP_DEFAULTS 10006 -// #define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_TITLE _("Component properties") #define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/dialog_edit_label.h b/eeschema/dialog_edit_label.h index f8d7cf88f2..0c35d53bf9 100644 --- a/eeschema/dialog_edit_label.h +++ b/eeschema/dialog_edit_label.h @@ -36,8 +36,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_LABELPROPERTIESFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_LABELPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_LABELPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_LABELPROPERTIESFRAME_TITLE _("Dialog") #define SYMBOL_WINEDA_LABELPROPERTIESFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_LABELPROPERTIESFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/dialog_eeschema_config.h b/eeschema/dialog_eeschema_config.h index 3e8b0cf675..c6d4d1796e 100644 --- a/eeschema/dialog_eeschema_config.h +++ b/eeschema/dialog_eeschema_config.h @@ -46,8 +46,7 @@ #define ID_LIST_LIBS 10005 #define ID_TEXTCTRL 10007 #define ID_LIB_PATH_SEL 10008 -// #define SYMBOL_KICONFIGEESCHEMAFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_KICONFIGEESCHEMAFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_KICONFIGEESCHEMAFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_KICONFIGEESCHEMAFRAME_TITLE _("Dialog") #define SYMBOL_KICONFIGEESCHEMAFRAME_IDNAME ID_DIALOG #define SYMBOL_KICONFIGEESCHEMAFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/dialog_erc.h b/eeschema/dialog_erc.h index 81b6299891..3e6c923cb6 100644 --- a/eeschema/dialog_erc.h +++ b/eeschema/dialog_erc.h @@ -53,8 +53,9 @@ class wxStaticLine; #define ID_ERASE_DRC_MARKERS 10003 #define ID_PANEL1 10005 #define ID_RESET_MATRIX 10007 -// #define SYMBOL_WINEDA_ERCFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_ERCFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX + +#define SYMBOL_WINEDA_ERCFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER + #define SYMBOL_WINEDA_ERCFRAME_TITLE _("EESchema Erc") #define SYMBOL_WINEDA_ERCFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_ERCFRAME_SIZE wxDefaultSize diff --git a/eeschema/dialog_find.h b/eeschema/dialog_find.h index 5c2d782876..3018f60bd9 100644 --- a/eeschema/dialog_find.h +++ b/eeschema/dialog_find.h @@ -35,8 +35,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_FINDFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_FINDFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_FINDFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_FINDFRAME_TITLE _("EESchema Locate") #define SYMBOL_WINEDA_FINDFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_FINDFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/dialog_options.h b/eeschema/dialog_options.h index c53529454c..033ff7d371 100644 --- a/eeschema/dialog_options.h +++ b/eeschema/dialog_options.h @@ -51,8 +51,7 @@ class wxSpinCtrl; #define ID_TEXTCTRL 10008 #define ID_TEXTCTRL1 10009 #define ID_SPINCTRL 10010 -// #define SYMBOL_WINEDA_SETOPTIONSFRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxSTAY_ON_TOP|wxCLOSE_BOX -#define SYMBOL_WINEDA_SETOPTIONSFRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_SETOPTIONSFRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_SETOPTIONSFRAME_TITLE _("General Options") #define SYMBOL_WINEDA_SETOPTIONSFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_SETOPTIONSFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/netlist_control.cpp b/eeschema/netlist_control.cpp index 9c8597487c..077ea59353 100644 --- a/eeschema/netlist_control.cpp +++ b/eeschema/netlist_control.cpp @@ -178,8 +178,7 @@ void InstallNetlistFrame(WinEDA_SchematicFrame *parent, wxPoint & pos) /*************************************************************************************/ WinEDA_NetlistFrame::WinEDA_NetlistFrame(WinEDA_SchematicFrame *parent, wxPoint& framepos): - wxDialog(parent, -1, _("Netlist"), framepos, wxSize(H_SIZE, V_SIZE), DIALOG_STYLE) -// DIALOG_STYLE|wxRESIZE_BORDER) + wxDialog(parent, -1, _("Netlist"), framepos, wxSize(H_SIZE, V_SIZE), DIALOG_STYLE | MAYBE_RESIZE_BORDER) /*************************************************************************************/ /* Constructor for the netlist generation dialog box */ diff --git a/eeschema/pinedit-dialog.h b/eeschema/pinedit-dialog.h index 4e73325f84..7c93dda337 100644 --- a/eeschema/pinedit-dialog.h +++ b/eeschema/pinedit-dialog.h @@ -61,8 +61,7 @@ class wxSpinCtrl; #define ID_RADIOBOX 10009 #define ID_RADIOBOX1 10012 #define ID_RADIOBOX2 10013 -// #define SYMBOL_WINEDA_PINPROPERTIESFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_PINPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_PINPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_PINPROPERTIESFRAME_TITLE _("Pin properties") #define SYMBOL_WINEDA_PINPROPERTIESFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_PINPROPERTIESFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/plotps.h b/eeschema/plotps.h index 28acfc9f27..c670b54646 100644 --- a/eeschema/plotps.h +++ b/eeschema/plotps.h @@ -46,8 +46,7 @@ class wxBoxSizer; #define ID_PLOT_PS_CURRENT_EXECUTE 10003 #define ID_PLOT_PS_ALL_EXECUTE 10004 #define ID_TEXTCTRL 10006 -// #define SYMBOL_WINEDA_PLOTPSFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxSTAY_ON_TOP|wxCLOSE_BOX -#define SYMBOL_WINEDA_PLOTPSFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_PLOTPSFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_PLOTPSFRAME_TITLE _("EESchema Plot PS") #define SYMBOL_WINEDA_PLOTPSFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_PLOTPSFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/sheet.h b/eeschema/sheet.h index 605b8e046c..41470214ca 100644 --- a/eeschema/sheet.h +++ b/eeschema/sheet.h @@ -39,8 +39,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_TITLE _("Sheet properties") #define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_SIZE wxSize(400, 300) diff --git a/eeschema/symbtext.h b/eeschema/symbtext.h index b59df6b831..a5940a8f5b 100644 --- a/eeschema/symbtext.h +++ b/eeschema/symbtext.h @@ -38,8 +38,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_BODYTEXT_PROPERTIESFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_BODYTEXT_PROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_BODYTEXT_PROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_BODYTEXT_PROPERTIESFRAME_TITLE _("Graphic text properties") #define SYMBOL_WINEDA_BODYTEXT_PROPERTIESFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_BODYTEXT_PROPERTIESFRAME_SIZE wxSize(400, 300) diff --git a/include/fctsys.h b/include/fctsys.h index da72d2b168..d9639d1028 100644 --- a/include/fctsys.h +++ b/include/fctsys.h @@ -75,4 +75,10 @@ #endif +#if defined(__UNIX__) || defined(USE_RESIZE_BORDER) +#define MAYBE_RESIZE_BORDER wxRESIZE_BORDER // linux users like resizeable borders +#else +#define MAYBE_RESIZE_BORDER 0 // no resizeable border +#endif + #endif /* FCTSYS_H */ diff --git a/pcbnew/cleaningoptions_dialog.h b/pcbnew/cleaningoptions_dialog.h index 9b014c2389..26d42f1176 100644 --- a/pcbnew/cleaningoptions_dialog.h +++ b/pcbnew/cleaningoptions_dialog.h @@ -44,8 +44,7 @@ #define ID_CHECKBOX1 10005 #define ID_CHECKBOX 10004 #define ID_BUTTON_EXECUTE 10006 -// #define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_TITLE _("Cleaning options") #define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_IDNAME ID_WIN_EDA_CLEANINGOPTIONSFRAME #define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_SIZE wxSize(400, 300) diff --git a/pcbnew/dialog_display_options.h b/pcbnew/dialog_display_options.h index 0d319eff41..54d8ad9a60 100644 --- a/pcbnew/dialog_display_options.h +++ b/pcbnew/dialog_display_options.h @@ -39,8 +39,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_DISPLAYOPTIONSDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_DISPLAYOPTIONSDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_DISPLAYOPTIONSDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_DISPLAYOPTIONSDIALOG_TITLE _("Display Options") #define SYMBOL_WINEDA_DISPLAYOPTIONSDIALOG_IDNAME ID_DIALOG #define SYMBOL_WINEDA_DISPLAYOPTIONSDIALOG_SIZE wxSize(400, 300) diff --git a/pcbnew/dialog_drc.h b/pcbnew/dialog_drc.h index 16199b7a74..e59b5e0054 100644 --- a/pcbnew/dialog_drc.h +++ b/pcbnew/dialog_drc.h @@ -52,8 +52,7 @@ class wxBoxSizer; #define ID_BUTTON_BROWSE_RPT_FILE 10011 #define ID_TEXTCTRL_GET_RPT_FILENAME 10010 #define ID_TEXTCTRL 10001 -// #define SYMBOL_WINEDA_DRCFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_DRCFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_DRCFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_DRCFRAME_TITLE _("DRC Control") #define SYMBOL_WINEDA_DRCFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_DRCFRAME_SIZE wxSize(400, 300) diff --git a/pcbnew/dialog_edit_mod_text.h b/pcbnew/dialog_edit_mod_text.h index 674539a49c..49456996d3 100644 --- a/pcbnew/dialog_edit_mod_text.h +++ b/pcbnew/dialog_edit_mod_text.h @@ -39,8 +39,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_TITLE _("TextMod properties") #define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_SIZE wxSize(400, 300) diff --git a/pcbnew/dialog_general_options.h b/pcbnew/dialog_general_options.h index e84c9586ad..ef448006b7 100644 --- a/pcbnew/dialog_general_options.h +++ b/pcbnew/dialog_general_options.h @@ -40,8 +40,7 @@ class wxSpinCtrl; */ ////@begin control identifiers -// #define SYMBOL_WINEDA_PCBGENERALOPTIONSFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_PCBGENERALOPTIONSFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_PCBGENERALOPTIONSFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_PCBGENERALOPTIONSFRAME_TITLE _("General Options") #define SYMBOL_WINEDA_PCBGENERALOPTIONSFRAME_IDNAME wxID_CANCEL #define SYMBOL_WINEDA_PCBGENERALOPTIONSFRAME_SIZE wxSize(400, 300) diff --git a/pcbnew/dialog_graphic_items_options.h b/pcbnew/dialog_graphic_items_options.h index 88b596ca0c..b4b9834123 100644 --- a/pcbnew/dialog_graphic_items_options.h +++ b/pcbnew/dialog_graphic_items_options.h @@ -34,8 +34,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_TITLE _("Texts and Drawings") #define SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_IDNAME ID_DIALOG #define SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_SIZE wxSize(400, 300) diff --git a/pcbnew/dialog_initpcb.h b/pcbnew/dialog_initpcb.h index a538e0b225..23c359b6f6 100644 --- a/pcbnew/dialog_initpcb.h +++ b/pcbnew/dialog_initpcb.h @@ -34,8 +34,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_PCBGLOBALDELETEFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_PCBGLOBALDELETEFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_PCBGLOBALDELETEFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_PCBGLOBALDELETEFRAME_TITLE _("Global Delete") #define SYMBOL_WINEDA_PCBGLOBALDELETEFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_PCBGLOBALDELETEFRAME_SIZE wxSize(400, 300) diff --git a/pcbnew/dialog_netlist.h b/pcbnew/dialog_netlist.h index a66990c363..11cb505c7e 100644 --- a/pcbnew/dialog_netlist.h +++ b/pcbnew/dialog_netlist.h @@ -36,8 +36,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_NETLISTFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_NETLISTFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_NETLISTFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_NETLISTFRAME_TITLE _("Netlist: ") #define SYMBOL_WINEDA_NETLISTFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_NETLISTFRAME_SIZE wxSize(400, 300) diff --git a/pcbnew/dialog_setup_libs.h b/pcbnew/dialog_setup_libs.h index c82b7c0659..32ad259921 100644 --- a/pcbnew/dialog_setup_libs.h +++ b/pcbnew/dialog_setup_libs.h @@ -39,8 +39,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_KICONFIGPCBNEWFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_KICONFIGPCBNEWFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_KICONFIGPCBNEWFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_KICONFIGPCBNEWFRAME_TITLE _("Dialog") #define SYMBOL_KICONFIGPCBNEWFRAME_IDNAME ID_DIALOG #define SYMBOL_KICONFIGPCBNEWFRAME_SIZE wxSize(400, 300) diff --git a/pcbnew/dialog_track_options.h b/pcbnew/dialog_track_options.h index 34b178b8cf..7cc94e3f6d 100644 --- a/pcbnew/dialog_track_options.h +++ b/pcbnew/dialog_track_options.h @@ -38,8 +38,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_PCBTRACKSDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_PCBTRACKSDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_PCBTRACKSDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_PCBTRACKSDIALOG_TITLE _("Tracks and Vias Sizes") #define SYMBOL_WINEDA_PCBTRACKSDIALOG_IDNAME ID_DIALOG #define SYMBOL_WINEDA_PCBTRACKSDIALOG_SIZE wxSize(400, 300) diff --git a/pcbnew/find.h b/pcbnew/find.h index 4469869c01..2702720567 100644 --- a/pcbnew/find.h +++ b/pcbnew/find.h @@ -34,8 +34,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_PCBFINDFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_PCBFINDFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_PCBFINDFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_PCBFINDFRAME_TITLE _("Find") #define SYMBOL_WINEDA_PCBFINDFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_PCBFINDFRAME_SIZE wxSize(400, 300) diff --git a/pcbnew/set_grid.h b/pcbnew/set_grid.h index ec6305e9f2..13c67e25eb 100644 --- a/pcbnew/set_grid.h +++ b/pcbnew/set_grid.h @@ -35,8 +35,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 -// #define SYMBOL_WINEDA_PCBGRIDFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_PCBGRIDFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_PCBGRIDFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_PCBGRIDFRAME_TITLE _("User Grid Size") #define SYMBOL_WINEDA_PCBGRIDFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_PCBGRIDFRAME_SIZE wxSize(400, 300) diff --git a/pcbnew/zones.h b/pcbnew/zones.h index 25f68807cc..4e8615033f 100644 --- a/pcbnew/zones.h +++ b/pcbnew/zones.h @@ -50,7 +50,7 @@ ////@begin control identifiers #define ID_DIALOG 10000 // #define SYMBOL_WINEDA_ZONEFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxSTAY_ON_TOP|wxCLOSE_BOX -#define SYMBOL_WINEDA_ZONEFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_ZONEFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_ZONEFRAME_TITLE _("Fill Zones Options") #define SYMBOL_WINEDA_ZONEFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_ZONEFRAME_SIZE wxSize(400, 300) diff --git a/share/dialog_print.h b/share/dialog_print.h index 75bb65685e..f3a4cfcecd 100644 --- a/share/dialog_print.h +++ b/share/dialog_print.h @@ -47,8 +47,7 @@ class wxBoxSizer; #define ID_PRINT_SETUP 10001 #define ID_PRINT_PREVIEW 10002 #define ID_PRINT_EXECUTE 10003 -// #define SYMBOL_WINEDA_PRINTFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX -#define SYMBOL_WINEDA_PRINTFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX +#define SYMBOL_WINEDA_PRINTFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_PRINTFRAME_TITLE _("Print") #define SYMBOL_WINEDA_PRINTFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_PRINTFRAME_SIZE wxSize(400, 300) diff --git a/share/svg_print.h b/share/svg_print.h index 01a18533b4..04089a018f 100644 --- a/share/svg_print.h +++ b/share/svg_print.h @@ -46,8 +46,7 @@ class wxBoxSizer; #define ID_PRINT_EXECUTE 10002 #define ID_TEXTCTRL 10001 #define ID_TEXTCTRL1 10006 -// #define SYMBOL_WINEDA_PRINTSVGFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxFRAME_FLOAT_ON_PARENT -#define SYMBOL_WINEDA_PRINTSVGFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxFRAME_FLOAT_ON_PARENT +#define SYMBOL_WINEDA_PRINTSVGFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxFRAME_FLOAT_ON_PARENT|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_PRINTSVGFRAME_TITLE _("Create SVG file") #define SYMBOL_WINEDA_PRINTSVGFRAME_IDNAME ID_DIALOG #define SYMBOL_WINEDA_PRINTSVGFRAME_SIZE wxSize(400, 300)