Subversion Repositories Kolibri OS

Rev

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

Rev 4861 Rev 4863
Line 16... Line 16...
16
#include "..\lib\file_system.h"
16
#include "..\lib\file_system.h"
17
#include "..\lib\figures.h"
17
#include "..\lib\figures.h"
18
#include "..\lib\encoding.h"
18
#include "..\lib\encoding.h"
19
#include "..\lib\list_box.h"
19
#include "..\lib\list_box.h"
20
#include "..\lib\copyf.h"
20
#include "..\lib\copyf.h"
-
 
21
#include "..\lib\random.h"
21
//images
22
//images
22
#include "imgs\toolbar.txt"
23
#include "imgs\toolbar.txt"
23
#include "imgs\left_p.txt"
24
#include "imgs\left_p.txt"
24
#include "imgs\icons.txt"
25
#include "imgs\icons.txt"
Line 79... Line 80...
79
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
80
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
80
#endif
81
#endif
Line 81... Line 82...
81
 
82
 
Line 82... Line 83...
82
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
83
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
83
 
84
 
84
#define TITLE "Eolite File Manager v2.21"
85
#define TITLE "Eolite File Manager v2.22"
Line 85... Line 86...
85
#define ABOUT_TITLE "Eolite v2.21"
86
#define ABOUT_TITLE "Eolite v2.22"
86
dword col_padding, col_selec, col_lpanel;
87
dword col_padding, col_selec, col_lpanel;
87
 
88
 
Line 116... Line 117...
116
int mouse_dd, scroll_used, scroll_size, sorting_arrow_x, kolibrios_drive;
117
int mouse_dd, scroll_used, scroll_size, sorting_arrow_x, kolibrios_drive;
117
dword buf, off;
118
dword buf, off;
118
dword file_mas[6898];
119
dword file_mas[6898];
119
int j, i;
120
int j, i;
120
int action_buf;
121
int action_buf;
-
 
122
int rand_n;
Line 121... Line 123...
121
 
123
 
122
edit_box edit2 = {250,213,80,0xFFFFCC,0x94AECE,0xFFFFCC,0xffffff,0,248,#file_name,#mouse_dd,64,6,6};
124
edit_box edit2 = {250,213,80,0xFFFFCC,0x94AECE,0xFFFFCC,0xffffff,0,248,#file_name,#mouse_dd,64,6,6};
123
PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, #path, #temp, 0};
125
PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, #path, #temp, 0};
Line 153... Line 155...
153
}
155
}
Line 154... Line 156...
154
 
156
 
155
void main() 
157
void main() 
156
{
158
{
-
 
159
	word key, id, can_show, can_select, m_selected;
-
 
160
	randomize();
Line 157... Line 161...
157
	word key, id, can_show, can_select, m_selected;
161
	rand_n = random(40);
158
 
162
 
159
	files.line_h=18;
163
	files.line_h=18;
160
	mem_Init();
164
	mem_Init();
Line 470... Line 474...
470
}
474
}
Line 471... Line 475...
471
 
475
 
472
 
476
 
473
void draw_window()
477
void draw_window()
474
{
478
{
475
	DefineAndDrawWindow(40,20,550,500,0x73,sc.work,TITLE,0);
479
	DefineAndDrawWindow(GetScreenWidth()-550/4+rand_n,rand_n+30,550,500,0x73,sc.work,TITLE,0);
476
	GetProcessInfo(#Form, SelfInfo);
480
	GetProcessInfo(#Form, SelfInfo);
477
	if (Form.status_window>2) return;
481
	if (Form.status_window>2) return;
478
	files.SetSizes(192, 57, onLeft(192,27), onTop(57,6), disc_num*16+195,files.line_h);
482
	files.SetSizes(192, 57, onLeft(192,27), onTop(57,6), disc_num*16+195,files.line_h);