forked from KolibriOS/kolibrios
Eolite 5.14: better drives list
git-svn-id: svn://kolibrios.org@9356 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9067bf0a18
commit
41c5451c55
@ -9,9 +9,9 @@ TODO:
|
|||||||
http://board.kolibrios.org/viewtopic.php?f=23&t=4521&p=77334#p77334
|
http://board.kolibrios.org/viewtopic.php?f=23&t=4521&p=77334#p77334
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ABOUT_TITLE "EOLITE 5.12"
|
#define ABOUT_TITLE "EOLITE 5.14"
|
||||||
#define TITLE_EOLITE "Eolite File Manager 5.12"
|
#define TITLE_EOLITE "Eolite File Manager 5.14"
|
||||||
#define TITLE_KFM "Kolibri File Manager 2.12";
|
#define TITLE_KFM "Kolibri File Manager 2.14";
|
||||||
|
|
||||||
#define MEMSIZE 1024 * 250
|
#define MEMSIZE 1024 * 250
|
||||||
#include "../lib/clipboard.h"
|
#include "../lib/clipboard.h"
|
||||||
@ -429,9 +429,12 @@ void main()
|
|||||||
case SCAN_CODE_KEY_V:
|
case SCAN_CODE_KEY_V:
|
||||||
EventPaste(path);
|
EventPaste(path);
|
||||||
break;
|
break;
|
||||||
case SCAN_CODE_KEY_D: //set image as bg
|
case SCAN_CODE_KEY_S: //set image as bg tile
|
||||||
strlcpy(#temp, "\\S__",4);
|
sprintf(#temp, "\\S__%s",#file_path);
|
||||||
strcat(#temp, #file_path);
|
RunProgram("/sys/media/kiv", #temp);
|
||||||
|
break;
|
||||||
|
case SCAN_CODE_KEY_T: //set image as bg stretch
|
||||||
|
sprintf(#temp, "\\T__%s",#file_path);
|
||||||
RunProgram("/sys/media/kiv", #temp);
|
RunProgram("/sys/media/kiv", #temp);
|
||||||
break;
|
break;
|
||||||
case SCAN_CODE_KEY_N:
|
case SCAN_CODE_KEY_N:
|
||||||
|
@ -56,10 +56,10 @@ void GetDiskIconAndName(dword dev_name, icon, disc_name)
|
|||||||
for (i=0; devinfo[i]!=0; i+=3) {
|
for (i=0; devinfo[i]!=0; i+=3) {
|
||||||
if (!strncmp(dev_name+1, devinfo[i], 2)) {
|
if (!strncmp(dev_name+1, devinfo[i], 2)) {
|
||||||
ESBYTE[icon] = devinfo[i+1];
|
ESBYTE[icon] = devinfo[i+1];
|
||||||
if (volume_label = GetVolumeLabel(dev_name))
|
if (ESBYTE[icon]==4)
|
||||||
{
|
{
|
||||||
//show label only for hard disk drives
|
//show label only for hard disk drives
|
||||||
if (ESBYTE[icon]==4) {
|
if (volume_label = GetVolumeLabel(dev_name)) {
|
||||||
strncpy(disc_name, volume_label, 15);
|
strncpy(disc_name, volume_label, 15);
|
||||||
chrcat(disc_name, ' ');
|
chrcat(disc_name, ' ');
|
||||||
return;
|
return;
|
||||||
@ -102,7 +102,7 @@ void _SystemDiscs::Draw()
|
|||||||
if (dev_name[1]=='t') {
|
if (dev_name[1]=='t') {
|
||||||
chrcat(#disc_name, dev_name[4]);
|
chrcat(#disc_name, dev_name[4]);
|
||||||
} else if (dev_name[1]=='f') {
|
} else if (dev_name[1]=='f') {
|
||||||
//
|
if (dev_name[3]!='/') chrcat(#disc_name, dev_name[3]);
|
||||||
} else {
|
} else {
|
||||||
strcat(#disc_name, #dev_name);
|
strcat(#disc_name, #dev_name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user