summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-12 17:06:20 +0000
committerManolo Gouy <Manolo>2016-04-12 17:06:20 +0000
commit4ebdf97b70716df3ce467c474bd18cab0c60adb5 (patch)
treef8b1ee87e89e01406ae7edf635570c92fc713e11 /src/drivers/WinAPI
parentfce1483eb82be85c1b95abfd1d9a486556bce0e3 (diff)
Begin to rewrite Fl_File_Chooser2.cxx for the driver model.
The parts with case-insensitive filename comparisons for WIN32 and for WIN32 but not CYGWIN still have to be rewritten. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/WinAPI')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.H4
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx7
2 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H
index 445af30ef..295e01a48 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H
@@ -97,6 +97,10 @@ public:
virtual int pixmap_extra_transparent_processing() {return 1;}
// this one is implemented in fl_draw_pixmap.cxx
virtual void make_unused_color(unsigned char &r, unsigned char &g, unsigned char &b);
+ virtual const char *home_directory_name();
+ virtual const char *filesystems_label() { return "My Computer"; }
+ virtual int backslash_as_slash() {return 1;}
+ virtual int colon_is_drive() {return 1;}
};
#endif // FL_WINAPI_SYSTEM_DRIVER_H
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
index fcac9cb6b..ef6070e84 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
@@ -898,6 +898,13 @@ int Fl_WinAPI_System_Driver::file_type(const char *filename)
return filetype;
}
+const char *Fl_WinAPI_System_Driver::home_directory_name()
+{
+ const char *h = getenv("HOME");
+ if (!h) h = getenv("UserProfile");
+ return h;
+}
+
//
// End of "$Id$".
//