From 3030c5213a4b48f38bda5ffafbc109e2873b2f32 Mon Sep 17 00:00:00 2001 From: Jim Date: Thu, 23 Apr 2015 10:02:04 -0700 Subject: [PATCH] use hvicons in files column box --- yab-IDE/src/yab-IDE.yab | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/yab-IDE/src/yab-IDE.yab b/yab-IDE/src/yab-IDE.yab index 81369bd..b75d2b1 100755 --- a/yab-IDE/src/yab-IDE.yab +++ b/yab-IDE/src/yab-IDE.yab @@ -193,7 +193,7 @@ while(inloop) stackview set "Lines", globalCurrentText globalAllNames$(globalCurrentText) = tmp$ t = columnbox count "FileBox" - columnbox add "FileBox", 1, t+1,20, "__Icon__="+ideDir$+"img/gespeichert.png" + columnbox add "FileBox", 1, t+1,20,"__Mime__=application/x-vnd.yab-app" columnbox add "FileBox", 2, t+1,20, GetFileName$(tmp$) // "Filename", t, GetFileName$(tmp$) columnbox select "FileBox", t+1 globalTextFinder(globalCurrentText) = t+1 @@ -288,7 +288,7 @@ while(inloop) for k=1 to MAXFILES if(globalTextFinder(j)=k) then t = columnbox count "FileBox" - columnbox add "FileBox", 1, t+1,20, "__Icon__="+ideDir$+"img/gespeichert.png" + columnbox add "FileBox", 1, t+1,20, "__Mime__=application/x-vnd.yab-app" columnbox add "FileBox", 2, t+1,20, GetFileName$(globalAllNames$(j)) break endif @@ -884,7 +884,7 @@ while(inloop) if(globalCurrentText>0 and not globalWasChanged and textedit get "Text"+str$(globalCurrentText), "hasChanged") then globalWasChanged = true - columnbox add "FileBox", 1, globalTextFinder(globalCurrentText), 20, "__Icon__="+ideDir$+"img/nichtgespeichert.png" + columnbox add "FileBox", 1, globalTextFinder(globalCurrentText), 20, "__Mime__=application/x-vnd.yab-app" endif UpdateStatusbar() @@ -1587,7 +1587,7 @@ sub NewDocument(foundEmpty) stackview set "Lines", globalCurrentText globalAllNames$(globalCurrentText) = browse$ t = columnbox count "FileBox" - columnbox add "FileBox", 1, t+1,20, "__Icon__="+ideDir$+"img/nichtgespeichert.png" + columnbox add "FileBox", 1, t+1,20, "__Mime__=application/x-vnd.yab-app" columnbox add "FileBox", 2, t+1,20, GetFileName$(browse$) columnbox select "FileBox", t+1 @@ -2167,7 +2167,7 @@ local savetext$ attribute set "Int", "linenumber", str$(tmpCurrentLine), globalAllNames$(globalCurrentText) textedit set "Text"+str$(globalCurrentText), "changed", false globalWasChanged = false - columnbox add "FileBox", 1, globalTextFinder(globalCurrentText), 20, "__Icon__="+ideDir$+"img/gespeichert.png" + columnbox add "FileBox", 1, globalTextFinder(globalCurrentText), 20, "__Mime__=application/x-vnd.yab-app" else alert "File could not be saved!", "Ok", "warning" return false @@ -3638,7 +3638,7 @@ sub LoadOpenFiles() stackview set "Stack", globalCurrentText stackview set "Lines", globalCurrentText t = columnbox count "FileBox" - columnbox add "FileBox", 1, t+1,20, "__Icon__="+ideDir$+"img/gespeichert.png" + columnbox add "FileBox", 1, t+1,20, "__Mime__=application/x-vnd.yab-app" columnbox add "FileBox", 2, t+1,20, GetFileName$(globalAllNames$(j)) // "Filename", t, GetFileName$(tmp$) columnbox select "FileBox", t+1 globalTextFinder(globalCurrentText) = t+1