Eolite:A new feature of adding the default path.
git-svn-id: svn://kolibrios.org@5833 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -52,6 +52,7 @@ int selected_count;
|
|||||||
|
|
||||||
byte
|
byte
|
||||||
path[4096],
|
path[4096],
|
||||||
|
DefaultPath[4096],
|
||||||
file_path[4096],
|
file_path[4096],
|
||||||
file_name[256],
|
file_name[256],
|
||||||
new_element_name[256],
|
new_element_name[256],
|
||||||
@@ -122,11 +123,8 @@ void main()
|
|||||||
{
|
{
|
||||||
strcpy(#path, #param);
|
strcpy(#path, #param);
|
||||||
if (path[strlen(#path)-1]!='/') chrcat(#path, '/'); //add "/" to the end of the string
|
if (path[strlen(#path)-1]!='/') chrcat(#path, '/'); //add "/" to the end of the string
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
strlcpy(#path, "/rd/1/", 6);
|
|
||||||
}
|
|
||||||
Open_Dir(#path,ONLY_OPEN);
|
Open_Dir(#path,ONLY_OPEN);
|
||||||
strcpy(#inactive_path, #path);
|
strcpy(#inactive_path, #path);
|
||||||
llist_copy(#files_inactive, #files);
|
llist_copy(#files_inactive, #files);
|
||||||
|
@@ -18,12 +18,12 @@
|
|||||||
?define PR_T_SYSTEM "<EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD><EFBFBD><EFBFBD>"
|
?define PR_T_SYSTEM "<EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD><EFBFBD><EFBFBD>"
|
||||||
?define PR_T_ONLY_READ "<EFBFBD><EFBFBD><EFBFBD>쪮 <20>⥭<EFBFBD><E2A5AD>"
|
?define PR_T_ONLY_READ "<EFBFBD><EFBFBD><EFBFBD>쪮 <20>⥭<EFBFBD><E2A5AD>"
|
||||||
?define SET_BYTE_LANG "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
?define SET_BYTE_LANG "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||||
#else
|
#else // Apply to all subfolders
|
||||||
?define WINDOW_TITLE_PROPERTIES "Properties"
|
?define WINDOW_TITLE_PROPERTIES "Properties"
|
||||||
?define BTN_CLOSE "Close"
|
?define BTN_CLOSE "Close"
|
||||||
?define BTN_APPLY "Apply"
|
?define BTN_APPLY "Apply"
|
||||||
?define QUEST_1 "<EFBFBD>ਬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ᥬ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
?define QUEST_1 "Apply to all subfolders"
|
||||||
?define QUEST_2 "䠩<EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
?define QUEST_2 "files and Folders"
|
||||||
?define PR_T_NAME "Name:"
|
?define PR_T_NAME "Name:"
|
||||||
?define PR_T_DEST "Destination:"
|
?define PR_T_DEST "Destination:"
|
||||||
?define PR_T_SIZE "Size:"
|
?define PR_T_SIZE "Size:"
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
?define LIST_LINE_HEIGHT "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ப<EFBFBD> <20> ᯨ᪥"
|
?define LIST_LINE_HEIGHT "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ப<EFBFBD> <20> ᯨ᪥"
|
||||||
?define NOTIFY_COPY_END "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>襭<EFBFBD><E8A5AD> <20><><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD>"
|
?define NOTIFY_COPY_END "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>襭<EFBFBD><E8A5AD> <20><><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD>"
|
||||||
?define T_DOUBLE_CLICK "<EFBFBD>६<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28> <20><><EFBFBD><EFBFBD><EFBFBD>)"
|
?define T_DOUBLE_CLICK "<EFBFBD>६<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28> <20><><EFBFBD><EFBFBD><EFBFBD>)"
|
||||||
|
#define SAVE_PATH_AS_DEFAULT "<22><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD> ⥪<>騩 <20><><EFBFBD><EFBFBD> <20><> 㬮<>砭<EFBFBD><E7A0AD>"
|
||||||
#else
|
#else
|
||||||
?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
|
?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
|
||||||
?define TITLE_SETT "Settings"
|
?define TITLE_SETT "Settings"
|
||||||
@@ -19,6 +20,7 @@
|
|||||||
?define LIST_LINE_HEIGHT "List line height"
|
?define LIST_LINE_HEIGHT "List line height"
|
||||||
?define NOTIFY_COPY_END "Notify when copying finished"
|
?define NOTIFY_COPY_END "Notify when copying finished"
|
||||||
?define T_DOUBLE_CLICK "Double click time (in hundredths)"
|
?define T_DOUBLE_CLICK "Double click time (in hundredths)"
|
||||||
|
#define SAVE_PATH_AS_DEFAULT "Save the current default path"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char config_section[] = "Config";
|
char config_section[] = "Config";
|
||||||
@@ -39,6 +41,11 @@ void settings_dialog()
|
|||||||
RunProgram("tinypad", "/sys/settings/assoc.ini");
|
RunProgram("tinypad", "/sys/settings/assoc.ini");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if (id==6)
|
||||||
|
{
|
||||||
|
ini_set_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path));
|
||||||
|
break;
|
||||||
|
}
|
||||||
else if (id==20) show_dev_name ^= 1;
|
else if (id==20) show_dev_name ^= 1;
|
||||||
else if (id==21) { action_buf=109; real_files_names_case ^= 1; }
|
else if (id==21) { action_buf=109; real_files_names_case ^= 1; }
|
||||||
else if (id==22) info_after_copy ^= 1;
|
else if (id==22) info_after_copy ^= 1;
|
||||||
@@ -59,9 +66,10 @@ void settings_dialog()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case evReDraw:
|
case evReDraw:
|
||||||
DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 226+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
|
DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 246+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
|
||||||
DrawSettingsCheckBoxes();
|
DrawSettingsCheckBoxes();
|
||||||
DrawFlatButton(9, 186, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS);
|
DrawFlatButton(9, 186, strlen(SAVE_PATH_AS_DEFAULT)+4*6, 22, 6, 0xE4DFE1, SAVE_PATH_AS_DEFAULT);
|
||||||
|
DrawFlatButton(9, 216, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -102,6 +110,7 @@ void LoadIniSettings()
|
|||||||
ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX;
|
ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX;
|
||||||
ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX;
|
ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX;
|
||||||
ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX;
|
ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX;
|
||||||
|
ini_get_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,4096,"/rd/1/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user