Subversion Repositories Kolibri OS

Rev

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

Rev 9525 Rev 9602
Line 108... Line 108...
108
			} else {
108
			} else {
109
				if (is_active) WriteText(draw_x+30,draw_y+5,0x80,0x555555,#dev_name);
109
				if (is_active) WriteText(draw_x+30,draw_y+5,0x80,0x555555,#dev_name);
110
				WriteText(draw_x+29,draw_y+5,0x80,0,#dev_name);
110
				WriteText(draw_x+29,draw_y+5,0x80,0,#dev_name);
111
			}
111
			}
112
			_PutImage(draw_x+6,draw_y, 18,17, is_active*7+dev_icon*17*18*3+#devices);
112
			PutImage(draw_x+6,draw_y, 18,17, is_active*7+dev_icon*17*18*3+#devices);
113
			draw_y += DEV_H;			
113
			draw_y += DEV_H;			
114
		}
114
		}
115
		DrawBar(draw_x+6, draw_y, 18, 1, 0xFFFfff);
115
		DrawBar(draw_x+6, draw_y, 18, 1, 0xFFFfff);
116
		ActionsDraw(list.count*DEV_H+108);
116
		ActionsDraw(list.count*DEV_H+108);
117
		DrawLeftPanelBg(list.count*DEV_H);
117
		DrawLeftPanelBg(list.count*DEV_H);
118
	}
118
	}
Line 132... Line 132...
132
		strcpy(#dev_name, list.get(i));
132
		strcpy(#dev_name, list.get(i));
133
		GetDiskIconAndName(#dev_name, #dev_icon, #disc_name);
133
		GetDiskIconAndName(#dev_name, #dev_icon, #disc_name);
134
		if (strstr(_path, #dev_name)-_path==0) break;
134
		if (strstr(_path, #dev_name)-_path==0) break;
135
	}
135
	}
136
	DrawRectangle(draw_x-1, SELECTY-1, DDW+2-KFM2_DEVH, KFM2_DEVH+1, sc.work_graph);
136
	DrawRectangle(draw_x-1, SELECTY-1, DDW+2-KFM2_DEVH, KFM2_DEVH+1, sc.line);
137
	DrawBar(draw_x, SELECTY, DDW+1-KFM2_DEVH, KFM2_DEVH, 0xFFFFFF);
137
	DrawBar(draw_x, SELECTY, DDW+1-KFM2_DEVH, KFM2_DEVH, 0xFFFFFF);
138
	_PutImage(draw_x + 5, SELECTY+2, 18,17, dev_icon*17*18*3+#devices);
138
	PutImage(draw_x + 5, SELECTY+2, 18,17, dev_icon*17*18*3+#devices);
139
	kfont.WriteIntoWindow(draw_x + 24, math.max(KFM2_DEVH-kfont.height/2+SELECTY,0), 0xFFFfff, 0x000000, kfont.size.pt, #dev_name+1);
139
	kfont.WriteIntoWindow(draw_x + 24, math.max(KFM2_DEVH-kfont.height/2+SELECTY,0), 0xFFFfff, 0x000000, kfont.size.pt, #dev_name+1);
140
	DefineHiddenButton(draw_x, SELECTY, DDW-1, KFM2_DEVH-1, btid);
140
	DefineHiddenButton(draw_x, SELECTY, DDW-1, KFM2_DEVH-1, btid);
141
	DrawFlatButtonSmall(draw_x+DDW-KFM2_DEVH+1, SELECTY-1, KFM2_DEVH-1, KFM2_DEVH+1, NULL, "\x19");
141
	DrawFlatButtonSmall(draw_x+DDW-KFM2_DEVH+1, SELECTY-1, KFM2_DEVH-1, KFM2_DEVH+1, NULL, "\x19");
142
}
142
}
143
 
143
 
Line 148... Line 148...
148
	char i, dev_icon, is_active=0;
148
	char i, dev_icon, is_active=0;
149
		
149
		
Line 150... Line 150...
150
	SystemDiscs.Get();
150
	SystemDiscs.Get();
Line 151... Line 151...
151
 
151
 
Line 152... Line 152...
152
	DrawPopup(draw_x, optionsy, DDW, list.count*KFM2_DEVH, 1, -1, sc.work_graph);
152
	DrawPopup(draw_x, optionsy, DDW, list.count*KFM2_DEVH, 1, -1, sc.line);
153
 
153
 
154
	for (i=0;i
154
	for (i=0;i
155
		strcpy(#dev_name, list.get(i));
155
		strcpy(#dev_name, list.get(i));
Line 156... Line 156...
156
		GetDiskIconAndName(#dev_name, #dev_icon, #disc_name);
156
		GetDiskIconAndName(#dev_name, #dev_icon, #disc_name);
157
		if (strstr(path, #dev_name)!=0) is_active=true; else is_active=false;
157
		if (strstr(path, #dev_name)!=0) is_active=true; else is_active=false;
158
 
158
 
159
		DrawBar(draw_x, optionsy, DDW, KFM2_DEVH, 0xFFFFFF);
159
		DrawBar(draw_x, optionsy, DDW, KFM2_DEVH, 0xFFFFFF);
160
		DefineButton(draw_x, optionsy, DDW, KFM2_DEVH-1, 100+i+BT_HIDE,0xFFFFFF);
160
		DefineButton(draw_x, optionsy, DDW, KFM2_DEVH-1, 100+i+BT_HIDE,0xFFFFFF);
161
		_PutImage(draw_x + 5, optionsy+2, 18,17, is_active*7+dev_icon*17*18*3+#devices);
161
		PutImage(draw_x + 5, optionsy+2, 18,17, is_active*7+dev_icon*17*18*3+#devices);
162
		if (is_active) kfont.bold = true;
162
		if (is_active) kfont.bold = true;
163
		//strncpy(#volume_label, GetVolumeLabel(#dev_name), sizeof(volume_label));
163
		//strncpy(#volume_label, GetVolumeLabel(#dev_name), sizeof(volume_label));