From b709b2a2d3451ec48d454a895a459dadf7c184e5 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 16 Feb 2021 15:48:50 +0100 Subject: Remove FL_CFG_WIN_COCOA preprocessor variable from Fl_Tree_Prefs.cxx --- src/drivers/Darwin/Fl_Darwin_System_Driver.cxx | 50 ++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'src/drivers/Darwin') diff --git a/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx b/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx index e9c45d1d7..f567b34f7 100644 --- a/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx +++ b/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx @@ -22,6 +22,8 @@ #include #include #include +#include +#include #include "../Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H" #include #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 @@ -372,3 +374,51 @@ Fl_Sys_Menu_Bar_Driver *Fl_Darwin_System_Driver::sys_menu_bar_driver() { return Fl_MacOS_Sys_Menu_Bar_Driver::driver(); } + +const char * const Fl_Darwin_System_Driver::tree_open_xpm_darwin[] = { + "11 11 2 1", + ". c None", + "@ c #000000", + "...@.......", + "...@@......", + "...@@@.....", + "...@@@@....", + "...@@@@@...", + "...@@@@@@..", + "...@@@@@...", + "...@@@@....", + "...@@@.....", + "...@@......", + "...@......." +}; + +const char * const Fl_Darwin_System_Driver::tree_close_xpm_darwin[] = { + "11 11 2 1", + ". c None", + "@ c #000000", + "...........", + "...........", + "...........", + "@@@@@@@@@@@", + ".@@@@@@@@@.", + "..@@@@@@@..", + "...@@@@@...", + "....@@@....", + ".....@.....", + "...........", + "..........." +}; + +Fl_Pixmap *Fl_Darwin_System_Driver::tree_openpixmap() { + static Fl_Pixmap *pixmap = new Fl_Pixmap(tree_open_xpm_darwin); + return pixmap; +} + +Fl_Pixmap *Fl_Darwin_System_Driver::tree_closepixmap() { + static Fl_Pixmap *pixmap = new Fl_Pixmap(tree_close_xpm_darwin); + return pixmap; +} + +int Fl_Darwin_System_Driver::tree_connector_style() { + return FL_TREE_CONNECTOR_NONE; +} -- cgit v1.2.3