Subversion Repositories Kolibri OS

Rev

Rev 5745 | Rev 5753 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5745 Rev 5748
Line 56... Line 56...
56
	file_name[256],
56
	file_name[256],
57
	new_element_name[256],
57
	new_element_name[256],
58
	temp[4096],
58
	temp[4096],
59
	itdir;
59
	itdir;
Line 60... Line -...
60
 
-
 
61
//struct t_settings {
-
 
62
byte font_size=9,
-
 
63
	sort_num=2,
-
 
64
	show_dev_name=true,
-
 
65
	real_files_names_case=false,
-
 
66
	info_after_copy=false,
-
 
67
	two_panels=false,
-
 
68
	active_panel=1;
-
 
69
//} settings;
-
 
70
 
60
 
Line 71... Line 61...
71
char active_path[4096], inactive_path[4096];
61
char active_path[4096], inactive_path[4096];
Line 72... Line 62...
72
 
62
 
Line 81... Line 71...
81
int j, i;
71
int j, i;
82
int action_buf;
72
int action_buf;
83
int rand_n;
73
int rand_n;
84
byte CMD_REFRESH;
74
byte CMD_REFRESH;
Line -... Line 75...
-
 
75
 
-
 
76
//struct t_settings {
-
 
77
byte font_size=9,
-
 
78
	sort_num=2,
85
 
79
	show_dev_name=true,
-
 
80
	real_files_names_case=false,
-
 
81
	info_after_copy=false,
-
 
82
	two_panels=false,
86
signed x_old, y_old, dif_x, dif_y, adif_x, adif_y;
83
	active_panel=1;
Line 87... Line 84...
87
 
84
//} settings;
88
 
85
 
89
edit_box new_file_ed = {171,213,180,0xFFFFFF,0x94AECE,0xFFFFFF,0xFFFFFF,0,248,#new_element_name,#mouse_dd,100000000000010b,6,0};
86
edit_box new_file_ed = {171,213,180,0xFFFFFF,0x94AECE,0xFFFFFF,0xFFFFFF,0,248,#new_element_name,#mouse_dd,100000000000010b,6,0};
90
PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, #path, #temp, 0};
87
PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, #path, #temp, 0};
91
PathShow_data FileShow = {0, 56,215, 6, 100, 0, 0, 0x0, 0xFFFfff, #file_name, #temp, 0};
88
PathShow_data FileShow = {0, 56,215, 6, 100, 0, 0, 0x0, 0xFFFfff, #file_name, #temp, 0};
-
 
89
byte cmd_free=0;
92
byte cmd_free=0;
90
#include "include\translations.h"
93
#include "include\translations.h"
91
#include "include\settings.h"
94
#include "include\copy.h"
92
#include "include\copy.h"
95
#include "include\gui.h"
93
#include "include\gui.h"
96
#include "include\sorting.h"
94
#include "include\sorting.h"
97
#include "include\icons.h"
95
#include "include\icons.h"
98
#include "include\left_panel.h"
96
#include "include\left_panel.h"
99
#include "include\history.h"
97
#include "include\history.h"
100
#include "include\menu.h"
-
 
101
#include "include\about.h"
98
#include "include\menu.h"
Line 102... Line 99...
102
#include "include\settings.h"
99
#include "include\about.h"
103
#include "include\properties.h"
100
#include "include\properties.h"
104
 
101
 
-
 
102
 
105
 
103
void main() 
106
void main() 
104
{
107
{
105
	word id;
108
	word id;
106
	signed x_old, y_old, dif_x, dif_y, adif_x, adif_y;
109
	char can_show, can_select, stats;
107
	char can_show, can_select, stats;
Line 294... Line 292...
294
			case evButton:
292
			case evButton:
295
				id=GetButtonID();
293
				id=GetButtonID();
296
				if (id==1)
294
				if (id==1)
297
				{
295
				{
298
					KillProcess(about_window);
296
					KillProcess(about_window);
-
 
297
					SaveIniSettings();
299
					ExitProcess();
298
					ExitProcess();
300
				}
299
				}
301
				if (del_active)
300
				if (del_active)
302
				{
301
				{
303
					if (id==301) || (id==302) Del_File(302-id);
302
					if (id==301) || (id==302) Del_File(302-id);
Line 524... Line 523...
524
	}
523
	}
525
}
524
}
Line 526... Line 525...
526
 
525
 
527
void draw_window()
526
void draw_window()
528
{
527
{
529
	DefineAndDrawWindow(GetScreenWidth()-550/4+rand_n,rand_n+30,550,500,0x73,system.color.work,TITLE,0);
528
	DefineAndDrawWindow(WinX+rand_n,WinY+rand_n,WinW,WinH,0x73,system.color.work,TITLE,0);
530
	GetProcessInfo(#Form, SelfInfo);
529
	GetProcessInfo(#Form, SelfInfo);
531
	if (Form.status_window>2) return;
530
	if (Form.status_window>2) return;
532
	if (Form.height < 350) MoveSize(OLD,OLD,OLD,350);
531
	if (Form.height < 350) MoveSize(OLD,OLD,OLD,350);
533
	if (Form.width  < 480) MoveSize(OLD,OLD,480,OLD);
532
	if (Form.width  < 480) MoveSize(OLD,OLD,480,OLD);