Subversion Repositories Kolibri OS

Rev

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

Rev 6217 Rev 6366
Line 13... Line 13...
13
#include "../lib/cursor.h"
13
#include "../lib/cursor.h"
14
#include "../lib/patterns/libimg_load_skin.h"
14
#include "../lib/patterns/libimg_load_skin.h"
15
#include "../lib/patterns/simple_open_dialog.h"
15
#include "../lib/patterns/simple_open_dialog.h"
16
#include "../lib/patterns/history.h"
16
#include "../lib/patterns/history.h"
17
#include "../lib/patterns/http_downloader.h"
17
#include "../lib/patterns/http_downloader.h"
-
 
18
#include "../browser/download_manager.h"
Line 18... Line 19...
18
 
19
 
19
char default_dir[] = "/rd/1";
20
char default_dir[] = "/rd/1";
Line 20... Line 21...
20
od_filter filter2 = {0,0};
21
od_filter filter2 = {0,0};
Line 66... Line 67...
66
#include "link.h"
67
#include "link.h"
67
#include "tag.h"
68
#include "tag.h"
68
#include "prepare_page.h"
69
#include "prepare_page.h"
69
//#include "special_symbols.h"
70
//#include "special_symbols.h"
Line 70... Line 71...
70
 
71
 
Line 71... Line 72...
71
#define SANDWICH_MENU "Refresh page\nEdit page\nHistory\nAbout"
72
#define SANDWICH_MENU "Refresh page\nEdit page\nHistory\nDownloader\nAbout"
72
 
73
 
73
void InitDlls()
74
void InitDlls()
74
{
75
{
Line 115... Line 116...
115
				if (menu.list.cur_y>=20) {
116
				if (menu.list.cur_y>=20) {
116
					menu.list.cur_y-=20;
117
					menu.list.cur_y-=20;
117
					if (menu.list.cur_y==0) EventPageRefresh();
118
					if (menu.list.cur_y==0) EventPageRefresh();
118
					if (menu.list.cur_y==1) EventRunEdit();
119
					if (menu.list.cur_y==1) EventRunEdit();
119
					if (menu.list.cur_y==2) EventShowHistory();
120
					if (menu.list.cur_y==2) EventShowHistory();
-
 
121
					if (menu.list.cur_y==3) EventShowDownloader();
120
					if (menu.list.cur_y==3) EventShowInfo();
122
					if (menu.list.cur_y==4) EventShowInfo();
121
					menu.list.cur_y = 0;
123
					menu.list.cur_y = 0;
122
				} 
124
				} 
123
		}
125
		}
124
	}
126
	}
125
}
127
}
Line 389... Line 391...
389
void EventPageRefresh()
391
void EventPageRefresh()
390
{
392
{
391
	EventOpenAddress(history.current());
393
	EventOpenAddress(history.current());
392
}
394
}
Line -... Line 395...
-
 
395
 
-
 
396
void EventShowDownloader()
-
 
397
{
-
 
398
	if (!downloader_opened) {
-
 
399
		downloader_edit = NULL;
-
 
400
		CreateThread(#Downloader,#downloader_stak+4092);
-
 
401
	}
-
 
402
}
393
 
403
 
Line 394... Line 404...
394
/* ------------------------------------------- */
404
/* ------------------------------------------- */
395
 
405