Hi, ALL,
wxFSVolume is now implemented on MSW/OSX.
What about *nix?
I now there is a way to get at least the name of the devices and the device type, but I think someone needs to just submit a patch for wx so it is included in the library.
DavidHart have this implemented, but for some reason he keeps it private in his own software...
Thank you.
List of volumes on *nix
Re: List of volumes on *nix
I don't think Linux has anything equivalent to "volumes", as all drives are mounted somewhere below "/".
What kind of information do you need exactly and for what?
What kind of information do you need exactly and for what?
Use the source, Luke!
Re: List of volumes on *nix
Hi,
I'm looking forva list of drives.
Thank you.
I'm looking forva list of drives.
Thank you.
Re: List of volumes on *nix
Yes, but why? And what exactly do you mean by 'drives'? Hard discs? Floppies? Usb-pens? NFS or Samba mounts?I'm looking forva list of drives.
Your understanding of 'private' seems different from most people's. My code is FOSS. You have obviously seen it, and you are welcome to copy it, use it.DavidHart have this implemented, but for some reason he keeps it private in his own software...
I doubt if there's much point in doing that: I wrote it for 4Pane, a File Manager. What other sorts of program will care which disc, or disc type, they are reading from, writing to?I now there is a way to get at least the name of the devices and the device type, but I think someone needs to just submit a patch for wx so it is included in the library.
But if you feel there is a use-case, then by all means submit a patch to wx.
Re: List of volumes on *nix
Hi, David,
Under MSW/OSX its easy - all I will need is to display "C:". "D:", etc with the appropriate icon and whatever is availabe under OSX.
Under *nix I think I will need to display "/" as a hard drive, and then USB/CD-ROM icon with nothing (regular user will not know what /dev/sr0 is)
[/quote]
I guess it is.
My comment here was about the code not being included in wxWidgets, making it harder to do cross-platform.
But if you feel there is a use-case, then by all means submit a patch to wx.
[/quote]
You are the author - you should do it.
I mean you are familiar with the code and you know what needs to be done in order to make it work.
It will probably get you 5 minutes to extract it and submit a patch.
But it will make the life of me and other people easier - we will not need to add extra #ifdef in our code...
Thank you.
I want to have a ownerdrawn combobox which will display an icon and volume/device name.
Under MSW/OSX its easy - all I will need is to display "C:". "D:", etc with the appropriate icon and whatever is availabe under OSX.
Under *nix I think I will need to display "/" as a hard drive, and then USB/CD-ROM icon with nothing (regular user will not know what /dev/sr0 is)
Your understanding of 'private' seems different from most people's. My code is FOSS. You have obviously seen it, and you are welcome to copy it, use it.DavidHart have this implemented, but for some reason he keeps it private in his own software...
[/quote]
I guess it is.
My comment here was about the code not being included in wxWidgets, making it harder to do cross-platform.
DavidHart have this implemented, but for some reason he keeps it private in his own software...
I doubt if there's much point in doing that: I wrote it for 4Pane, a File Manager. What other sorts of program will care which disc, or disc type, they are reading from, writing to?I now there is a way to get at least the name of the devices and the device type, but I think someone needs to just submit a patch for wx so it is included in the library.
But if you feel there is a use-case, then by all means submit a patch to wx.
[/quote]
You are the author - you should do it.
I mean you are familiar with the code and you know what needs to be done in order to make it work.
It will probably get you 5 minutes to extract it and submit a patch.
But it will make the life of me and other people easier - we will not need to add extra #ifdef in our code...
Thank you.