home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
text
/
edit
/
FrexxEdA.lha
/
FrexxEd
/
fpl
/
ShowChanged.FPL
< prev
next >
Wrap
Text File
|
1995-07-19
|
690b
|
31 lines
export int ShowAllChanged() /* Show all changed buffers */
{
int firstid=GetBufferID();
int id=firstid;
string files[ReadInfo("buffers")];
int count=0;
string togoto="";
do {
if (ReadInfo("changes", id))
files[count++]=ReadInfo("file_name", id);
id=NextBuffer(id);
if (id == firstid)
id=0;
} while (id);
if (count) {
Sort(&files, count);
RequestWindow("Changed files", "", "A", &files, &togoto, count);
if (strlen(togoto)) {
id=GetBufferID(togoto);
if (id) {
CurrentBuffer(id);
Activate(id);
}
}
} else
ReturnStatus("No files changed!");
}
AssignKey("ShowAllChanged();", "Amiga Control c");