#endif
private:
define guiApp = (GuiApplication)((__thisModule).application);
define selectionColor = guiApp.currentSkin.selectionColor; //Color { 10, 36, 106 };
#endif
private:
define guiApp = (GuiApplication)((__thisModule).application);
define selectionColor = guiApp.currentSkin.selectionColor; //Color { 10, 36, 106 };
{
PrintLn("MessageBoxTodo(char * message) -- ", message);
MessageBox { type = ok, text = "MessageBoxTodo(char * message)", contents = message }.Modal();
}
{
PrintLn("MessageBoxTodo(char * message) -- ", message);
MessageBox { type = ok, text = "MessageBoxTodo(char * message)", contents = message }.Modal();
}
"<:ecere>mimeTypes/package.png", /* treeLoader */
"<:ecere>places/startHere.png", /* lineNumbers */
"<:ecere>mimeTypes/package.png", /* treeLoader */
"<:ecere>places/startHere.png", /* lineNumbers */
normalFile, ewsFile, epjFile, ecFile, ehFile, cFile, hFile, cppFile, hppFile,
textFile, webFile, pictureFile, soundFile,
archiveFile, packageFile, opticalMediaImageFile, /* these (all previous) are sort equal */
normalFile, ewsFile, epjFile, ecFile, ehFile, cFile, hFile, cppFile, hppFile,
textFile, webFile, pictureFile, soundFile,
archiveFile, packageFile, opticalMediaImageFile, /* these (all previous) are sort equal */
folder, folderOpen, computer,
drive, netDrive, cdrom, removable, floppy, network, server, share, // these are sort equal
folder, folderOpen, computer,
drive, netDrive, cdrom, removable, floppy, network, server, share, // these are sort equal
virtual bool Window::NotifyNodeOpen(FileSystemBox box, FileSystemBoxSelection selection);
virtual bool Window::NotifyNodeMenu(FileSystemBox box, Menu menu, FileSystemBoxSelection selection);
virtual bool Window::NotifyIteratorInit(FileSystemBox box, FileSystemIterator fileSystemIterator);
virtual bool Window::NotifyNodeOpen(FileSystemBox box, FileSystemBoxSelection selection);
virtual bool Window::NotifyNodeMenu(FileSystemBox box, Menu menu, FileSystemBoxSelection selection);
virtual bool Window::NotifyIteratorInit(FileSystemBox box, FileSystemIterator fileSystemIterator);
}
get { return bits.preview; }
};
property bool columnsCompareStyle { set { bits.columnsCompareStyle = value; } get { return bits.columnsCompareStyle; } };
property bool textFileLinesStyle { set { bits.textFileLinesStyle = value; } get { return bits.textFileLinesStyle; } };
}
get { return bits.preview; }
};
property bool columnsCompareStyle { set { bits.columnsCompareStyle = value; } get { return bits.columnsCompareStyle; } };
property bool textFileLinesStyle { set { bits.textFileLinesStyle = value; } get { return bits.textFileLinesStyle; } };
InitFileIcons();
InitCompIcons(); // todo: these icons should not be initialize, they should be set
// or at least initalized when the comparison listing is requested
InitFileIcons();
InitCompIcons(); // todo: these icons should not be initialize, they should be set
// or at least initalized when the comparison listing is requested
bool NotifyRightClick(ListBox listBox, int x, int y, Modifiers mods)
{
DataRow row = listBox.currentRow;
bool NotifyRightClick(ListBox listBox, int x, int y, Modifiers mods)
{
DataRow row = listBox.currentRow;
bool NotifyKeyDown(ListBox listBox, DataRow row, Key key, unichar ch)
{
bool NotifyKeyDown(ListBox listBox, DataRow row, Key key, unichar ch)
{
#endif
else if((SmartKey)key == f2)
{
FileSystemNode node = selection.node;
node.row.Edit(nameField);
}
#endif
else if((SmartKey)key == f2)
{
FileSystemNode node = selection.node;
node.row.Edit(nameField);
}
#ifndef __linux__
surface.Filter(fsb.bitmap, (wWnd - wDraw) / 2, (hWnd - hDraw) / 2, 0, 0, wDraw, hDraw, wBmp, hBmp);
#ifndef __linux__
surface.Filter(fsb.bitmap, (wWnd - wDraw) / 2, (hWnd - hDraw) / 2, 0, 0, wDraw, hDraw, wBmp, hBmp);
surface.Area(0, 0, fsb.clientSize.w - 1, fsb.clientSize.h - 1);
}
}
surface.Area(0, 0, fsb.clientSize.w - 1, fsb.clientSize.h - 1);
}
}
/*if(!path)
GetWorkingDir(startPath, sizeof(startPath));
else
strcpy(path, startPath);*/
/*if(!path)
GetWorkingDir(startPath, sizeof(startPath));
else
strcpy(path, startPath);*/
- bool ListIterator_OnObject(char * name, char * path, FileStats stats, bool isRootObject)
+ bool ListIterator_OnObject(const char * name, const char * path, FileStats stats, bool isRootObject)
{
ProcessListItem(name, path, stats, false);
return false;
{
ProcessListItem(name, path, stats, false);
return false;
- void ProcessListItem(char * name, char * path, FileStats stats, bool isListItem)
+ void ProcessListItem(const char * name, const char * path, FileStats stats, bool isListItem)
FileSystemNode child = null;
if((!bits.foldersOnly && !bits.filesOnly) ||
(bits.foldersOnly && listing.stats.attribs.isDirectory) ||
(bits.filesOnly && listing.stats.attribs.isFile))
child = MakeAndAddToTreeFileSystemNodeFromFileListing(listing, parent);
if(child)
FileSystemNode child = null;
if((!bits.foldersOnly && !bits.filesOnly) ||
(bits.foldersOnly && listing.stats.attribs.isDirectory) ||
(bits.filesOnly && listing.stats.attribs.isFile))
child = MakeAndAddToTreeFileSystemNodeFromFileListing(listing, parent);
if(child)
- int c, cmp/*, smallest*/, icon;//, equalCount;
+ int c/*, cmp*/ /*, smallest*/, icon;//, equalCount;
if(!test)
PrintLn("error");
result = MakeFileSystemNode(listing.stats, listing.name, listing.path, false, bits.previewPictures, false, displaySystem);
if(!test)
PrintLn("error");
result = MakeFileSystemNode(listing.stats, listing.name, listing.path, false, bits.previewPictures, false, displaySystem);
bitmap.Load(selItem.path, null, displaySystem);
//view.bitmaps.Add(bitmap);
bitmap.Load(selItem.path, null, displaySystem);
//view.bitmaps.Add(bitmap);
FileSystemNode selection;
virtual bool Window::NotifyNodeSelect(ExplorerTree tree, FileSystemNode node);
FileSystemNode selection;
virtual bool Window::NotifyNodeSelect(ExplorerTree tree, FileSystemNode node);
bool NotifyRightClick(ListBox listBox, int x, int y, Modifiers mods)
{
DataRow row = listBox.currentRow;
bool NotifyRightClick(ListBox listBox, int x, int y, Modifiers mods)
{
DataRow row = listBox.currentRow;
#endif
AddTreeNode(root, true, false, false, null, tree);
#endif
AddTreeNode(root, true, false, false, null, tree);
len > 3 && !strncmp(&listing.name[1], ": [", 3))
{
strncpy(name, listing.name, 2);
len > 3 && !strncmp(&listing.name[1], ": [", 3))
{
strncpy(name, listing.name, 2);
If hGlobal Then 'if the globalalloc worked
lpGlobal = GlobalLock(hGlobal) 'lock the hGlobal
DF.pFiles = Len(DF) 'set the size of the files
If hGlobal Then 'if the globalalloc worked
lpGlobal = GlobalLock(hGlobal) 'lock the hGlobal
DF.pFiles = Len(DF) 'set the size of the files
Call CopyMem(ByVal lpGlobal, DF, Len(DF)) 'copy df to the lpglobal
Call CopyMem(ByVal (lpGlobal + Len(DF)), ByVal strFiles, Len(strFiles)) 'copy strfiles to lpglobal
Call GlobalUnlock(hGlobal) 'unlock hglobal again
Call CopyMem(ByVal lpGlobal, DF, Len(DF)) 'copy df to the lpglobal
Call CopyMem(ByVal (lpGlobal + Len(DF)), ByVal strFiles, Len(strFiles)) 'copy strfiles to lpglobal
Call GlobalUnlock(hGlobal) 'unlock hglobal again
//float scale = Min((float)clientSize.w / (float)bitmap.width, (float)clientSize.h / (float)bitmap.height);
int w = 16; //(int)(bitmap.width * scale);
int h = 16; //(int)(bitmap.height * scale);
//float scale = Min((float)clientSize.w / (float)bitmap.width, (float)clientSize.h / (float)bitmap.height);
int w = 16; //(int)(bitmap.width * scale);
int h = 16; //(int)(bitmap.height * scale);
if(info)
sprintf(label, "%s [%s]", name, info);
else
if(info)
sprintf(label, "%s [%s]", name, info);
else
len > 3 && !strncmp(&fileName[1], ": [", 3))
{
strncpy(name, fileName, 2);
len > 3 && !strncmp(&fileName[1], ": [", 3))
{
strncpy(name, fileName, 2);
{
set { delete path; if(value && value[0]) path = CopyString(value); }
get { return path; } isset { return path && path[0]; }
}
{
set { delete path; if(value && value[0]) path = CopyString(value); }
get { return path; } isset { return path && path[0]; }
}
{
set { delete name; if(value && value[0]) name = CopyString(value); }
get { return name; } isset { return name && name[0]; }
{
set { delete name; if(value && value[0]) name = CopyString(value); }
get { return name; } isset { return name && name[0]; }
set { delete extension; if(value && value[0]) extension = CopyString(value); }
get { return extension; } isset { return extension && extension[0]; }
}
set { delete extension; if(value && value[0]) extension = CopyString(value); }
get { return extension; } isset { return extension && extension[0]; }
}
{
set { delete label; if(value && value[0]) label = CopyString(value); }
get { return label; } isset { return label && label[0]; }
}
{
set { delete label; if(value && value[0]) label = CopyString(value); }
get { return label; } isset { return label && label[0]; }
}
{
set { delete info; if(value && value[0]) info = CopyString(value); }
get { return info; } isset { return info && info[0]; }
{
set { delete info; if(value && value[0]) info = CopyString(value); }
get { return info; } isset { return info && info[0]; }
Array<int> exists; // would use (see) BoolArrayInt to pack this into an int if could be accessed as an array
void GetPath(String outputPath)
Array<int> exists; // would use (see) BoolArrayInt to pack this into an int if could be accessed as an array
void GetPath(String outputPath)
PathCat(temp, outputPath);
strcpy(outputPath, temp);
}
PathCat(temp, outputPath);
strcpy(outputPath, temp);
}
- /*else
- {
- /-*#ifdef __WIN32__
- strcpy(outputPath, "/");
- #else*-/
- //strcpy(outputPath, name);
- strcpy(outputPath, path);
- PathCat(outputPath, name);
- //#endif
- }*/
void OnDisplay(Surface surface, int x, int y, int width, FileSystemBox fsb, Alignment alignment, DataDisplayFlags displayFlags)
{
//int indentSize = (displayFlags.dropBox) ? 0 : 10;
void OnDisplay(Surface surface, int x, int y, int width, FileSystemBox fsb, Alignment alignment, DataDisplayFlags displayFlags)
{
//int indentSize = (displayFlags.dropBox) ? 0 : 10;
icon = fsb.fileIcons[type].bitmap;
alt = bits.isListItem ? path : name;
if(comp && !fsb.bits.columnsCompareStyle && cmpIcon)
icon = fsb.fileIcons[type].bitmap;
alt = bits.isListItem ? path : name;
if(comp && !fsb.bits.columnsCompareStyle && cmpIcon)
strcpy(text, label ? label : alt); //"%d-%d/%s", stats.inode, stats.nlink
//sprintf(text, "%d-%d/%s", stats.inode, stats.nlink, label ? label : alt);
len = strlen(text);
strcpy(text, label ? label : alt); //"%d-%d/%s", stats.inode, stats.nlink
//sprintf(text, "%d-%d/%s", stats.inode, stats.nlink, label ? label : alt);
len = strlen(text);
surface.SetForeground(displayFlags.selected ? fsb.selectionText : fsb.foreground);
surface.TextOpacity(false);
surface.TextExtent(text, len, &w, &h);
h = Max(h, 16);
surface.SetForeground(displayFlags.selected ? fsb.selectionText : fsb.foreground);
surface.TextOpacity(false);
surface.TextExtent(text, len, &w, &h);
h = Max(h, 16);
// Draw the current row stipple
if(displayFlags.selected)
//surface.Area(xStart - 1, y, xStart - 1, y + h - 1);
//surface.Area(xStart + w - 1, y, xStart + w + 1, y + h - 1);
surface.Area(xStart - 3, y, xStart + w + 1, y + h - 1);
// Draw the current row stipple
if(displayFlags.selected)
//surface.Area(xStart - 1, y, xStart - 1, y + h - 1);
//surface.Area(xStart + w - 1, y, xStart + w + 1, y + h - 1);
surface.Area(xStart - 3, y, xStart + w + 1, y + h - 1);
//surface.WriteTextDots(alignment, x + textOffset, y + 2, width - textOffset, alt, strlen(alt));
surface.WriteTextDots(alignment, xStart, y + 2, width, text, len);
//surface.WriteTextDots(alignment, x + textOffset, y + 2, width - textOffset, alt, strlen(alt));
surface.WriteTextDots(alignment, xStart, y + 2, width, text, len);
- char * OnGetString(char * tempString, FileSystemToolWindow fileSysToolWnd, bool * needClass)
+ const char * OnGetString(char * tempString, void * unused /*FileSystemToolWindow fileSysToolWnd*/, bool * needClass)
if(stats.attribs.isShare) node.type = share;
if(stats.attribs.isCDROM) node.type = cdrom;
if(stats.attribs.isRemote) node.type = netDrive;
if(stats.attribs.isShare) node.type = share;
if(stats.attribs.isCDROM) node.type = cdrom;
if(stats.attribs.isRemote) node.type = netDrive;
if(stats.attribs.isShare) node.type = share;
if(stats.attribs.isCDROM) node.type = cdrom;
if(stats.attribs.isRemote) node.type = netDrive;
if(stats.attribs.isShare) node.type = share;
if(stats.attribs.isCDROM) node.type = cdrom;
if(stats.attribs.isRemote) node.type = netDrive;
- const Array<int> exists,
- const DisplaySystem displaySystem)
+ /*const */Array<int> exists,
+ /*const */DisplaySystem displaySystem)
{
FileSystemNode node = MakeFileSystemNode(stats, name, path, pathAddName, previewPicture, false, displaySystem);
if(node)
{
FileSystemNode node = MakeFileSystemNode(stats, name, path, pathAddName, previewPicture, false, displaySystem);
if(node)