From: Rejean Loyer Date: Sun, 4 Sep 2011 15:13:55 +0000 (-0400) Subject: explorer: fixed compile errors or whatnot. X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=ede;a=commitdiff_plain;h=c0265b1d4f347078653a7fdbbe674b812d5851d7 explorer: fixed compile errors or whatnot. --- diff --git a/explorer/Explorer.epj b/explorer/Explorer.epj index 66f4f52..08bb9f4 100644 --- a/explorer/Explorer.epj +++ b/explorer/Explorer.epj @@ -35,10 +35,9 @@ ], "Files" : [ { - "Folder" : "notes", + "Folder" : "extern", "Files" : [ - "Info.txt", - "Todo.txt" + ] }, { @@ -61,16 +60,18 @@ "src/Structures/ArrayUtilities.ec", "src/Skin.ec" ] - } + }, + "info.txt", + "todo.txt" ], - "ResourcesPath" : "", + "ResourcesPath" : "res", "Resources" : [ - "res/panel-tree.png", - "res/view-cards.png", - "res/view-details.png", - "res/view-icons.png", - "res/view-list.png", - "res/view-showcase-right.png", - "res/browse.png" + "panel-tree.png", + "view-cards.png", + "view-details.png", + "view-icons.png", + "view-list.png", + "view-showcase-right.png", + "browse.png" ] } \ No newline at end of file diff --git a/explorer/res/view-showcase-left.png b/explorer/res/view-showcase-left.png new file mode 100644 index 0000000..c3e85de Binary files /dev/null and b/explorer/res/view-showcase-left.png differ diff --git a/explorer/src/Skin.ec b/explorer/src/Skin.ec index fe5ba20..b936456 100644 --- a/explorer/src/Skin.ec +++ b/explorer/src/Skin.ec @@ -588,9 +588,9 @@ class AcovelSkin_ScrollBar : ScrollBar background = { skinBackground.r * 9 / 6, skinBackground.g * 9 / 6, skinBackground.b * 9 / 6 }; upBtn.background = Color { 70 * 6/10, 130* 6/10, 180* 6/10 }; //skinBackground; - upBtn.bitmap = { "<:ecere>elements/arrow-up.png", monochrome = true }; + upBtn.bitmap = { "<:ecere>elements/arrowUp.png", monochrome = true }; downBtn.background = Color { 70 * 6/10, 130* 6/10, 180* 6/10 }; //skinBackground; - downBtn.bitmap = { "<:ecere>elements/arrow-down.png", monochrome = true }; + downBtn.bitmap = { "<:ecere>elements/arrowDown.png", monochrome = true }; thumb.background = Color { 70 * 6/10, 130* 6/10, 180* 6/10 }; //skinBackground; } } @@ -600,7 +600,7 @@ class AcovelSkin_DropBox : DropBox void OnApplyGraphics() { PUREVTBL(DropBox)[__ecereVMethodID___ecereNameSpace__ecere__gui__Window_OnApplyGraphics](this); - button.bitmap = { "<:ecere>elements/arrow-down.png", monochrome = true }; + button.bitmap = { "<:ecere>elements/arrowDown.png", monochrome = true }; background = skinBackground; foreground = skinForeground; this.selectionColor = ::selectionColor; diff --git a/explorer/src/Structures/ArrayUtilities.ec b/explorer/src/Structures/ArrayUtilities.ec index bb305a4..040d1fe 100644 --- a/explorer/src/Structures/ArrayUtilities.ec +++ b/explorer/src/Structures/ArrayUtilities.ec @@ -6,5 +6,11 @@ private: define sizeoftype = GetTypeSize(type); int GetTypeSize(Class type) { - return type.typeSize; + // todo tocheck: is this code any good? + /*if(!strcmp(type.name, "int")) + return sizeof(int); + else if(!strcmp(type.name, "unsigned int")) + return sizeof(uint); + else + */return type.typeSize; }