CtrlLib: ColumnList fixed non-multi with shift+cursors, ide: Ctrl+O now multi

git-svn-id: svn://ultimatepp.org/upp/trunk@6604 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-11-25 12:57:48 +00:00
parent 8cca2220b3
commit bd824348f2
7 changed files with 13 additions and 21 deletions

View file

@ -10,6 +10,5 @@ file
help.txt;
mainconfig
"" = "GUI SSE2",
"" = "GUI SDL20GL";

View file

@ -7,23 +7,7 @@ GUI_APP_MAIN
SetDefaultCharset(CHARSET_UTF8);
FileSel fs;
String fn;
// fs.BaseDir("U:\\");
fs
.Type( t_("exe"), "*.exe") //type 1
.AllFilesType()
.Type( t_("archive FIDE (txt)"), "*.txt") //type 1
.Type( t_("archive VEG (csv)"), "*.csv;*.veg") //type 2
.Type( t_("national archive with Fixed Length (txt)"), "*.txt") //type 3
.Type( t_("archive FSI Italy (csv)"), "*.csv"); //type 4
fs.DefaultExt("hhh");
// fs.NoMkDirOption();
// fs.Multi();
// fs.ActiveDir("/usr/include");
// fs.NoEditFileName();
// fs.ActiveDir("u:\\");
// fs.PreSelect("U:/log.txt");
// fs.ActiveType(3);
fs.AllFilesType();
for(;;) {
if(!fs.ExecuteSaveAs())
break;

View file

@ -16,7 +16,7 @@ topic "InFilterStream";
lic][3 _][*@3;3 Stream]&]
[s2;%% Adapter Stream that glues an input stream with some filtering
object, typically of compression/decompression class.&]
[s0;i448;a25;kKO9;:noref:@(0.0.255) &]
[s3; &]
[ {{10000F(128)G(128)@1 [s0;%% [* Public Method List]]}}&]
[s3; &]
[s5;:InFilterStream`:`:in: [_^Stream^ Stream]_`*[* in]&]

View file

@ -16,7 +16,7 @@ topic "OutFilterStream";
ublic][3 _][*@3;3 Stream]&]
[s2;%% Adapter Stream that glues an input stream with some filtering
object, typically of compression/decompression class.&]
[s0;i448;a25;kKO9;:noref:@(0.0.255) &]
[s3; &]
[ {{10000F(128)G(128)@1 [s0;%% [* Public Method List]]}}&]
[s3; &]
[s5;:OutFilterStream`:`:Close`(`): [@(0.0.255) virtual] [@(0.0.255) void]_[* Close]()&]

View file

@ -249,7 +249,7 @@ dword ColumnList::SwapKey(dword key)
bool ColumnList::Key(dword _key, int count) {
int c = cursor;
bool sel = _key & K_SHIFT;
bool sel = (_key & K_SHIFT) && multi;
int key = _key & ~K_SHIFT;
key = SwapKey(key);
switch(key) {

View file

@ -730,10 +730,17 @@ void Ide::ReloadFile()
void Ide::EditAnyFile() {
FileSel& fs = AnySourceFs();
#if 0
fs.Multi(false);
if(!fs.ExecuteOpen()) return;
EditFile(fs);
FileSelected();
#endif
if(fs.ExecuteOpen())
for(int i = 0; i < fs.GetCount(); i++) {
EditFile(fs[i]);
FileSelected();
}
}
void Ide::DragAndDrop(Point, PasteClip& d)

View file

@ -8,6 +8,8 @@ GUI_APP_MAIN
sel.AllFilesType();
sel.Type("Test2", "*.tst");
sel.ActiveType(1);
for(int i = 0; i < sel.GetCount(); i++)
DDUMP(sel[i]);
sel.Multi();
if(!sel.ExecuteSaveAs("Test!"))
return;