IconDes.diff

Jan DolinĂ¡r, 07/24/2011 08:27 PM

Download (1.24 KB)

View differences:

uppsrc/IconDes/Bar.cpp (working copy)
20 20
	case K_SHIFT_RIGHT: KeyMove(1, 0); return true;
21 21
	case K_SHIFT_UP:    KeyMove(0, -1); return true;
22 22
	case K_SHIFT_DOWN:  KeyMove(0, 1); return true;
23
	case K_PAGEUP:      ChangeSlot(-1); return true;
24
	case K_PAGEDOWN:    ChangeSlot(1); return true;
23 25
	}
24 26
	return false;
25 27
}
uppsrc/IconDes/List.cpp (working copy)
255 255
	}
256 256
}
257 257

  
258
void IconDes::ChangeSlot(int d)
259
{
260
	if(!IsCurrent())
261
		return;
262
	int c = list.GetCursor();
263
	d = c + d;
264
	if(d >= 0 && d < slot.GetCount())
265
		list.SetCursor(d);
266
}
267

  
258 268
void IconDes::ListMenu(Bar& bar)
259 269
{
260 270
	using namespace IconDesKeys;
uppsrc/IconDes/IconDes.h (working copy)
274 274
	void  InsertPaste();
275 275
	void  InsertFile();
276 276
	void  MoveSlot(int d);
277
	void  ChangeSlot(int d);
277 278

  
278 279
	static FileSel& ImgFile();
279 280