Updated 1.3 with changes from 1.1.9
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
97b806e580
commit
232ef4e159
@ -6,8 +6,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.0)
|
|||||||
|
|
||||||
# The FLTK version
|
# The FLTK version
|
||||||
SET(FLTK_VERSION_MAJOR "1")
|
SET(FLTK_VERSION_MAJOR "1")
|
||||||
SET(FLTK_VERSION_MINOR "1")
|
SET(FLTK_VERSION_MINOR "3")
|
||||||
SET(FLTK_VERSION_PATCH "7")
|
SET(FLTK_VERSION_PATCH "0")
|
||||||
SET(FLTK_VERSION "${FLTK_VERSION_MAJOR}.${FLTK_VERSION_MINOR}")
|
SET(FLTK_VERSION "${FLTK_VERSION_MAJOR}.${FLTK_VERSION_MINOR}")
|
||||||
SET(FLTK_VERSION_FULL "${FLTK_VERSION}.${FLTK_VERSION_PATCH}")
|
SET(FLTK_VERSION_FULL "${FLTK_VERSION}.${FLTK_VERSION_PATCH}")
|
||||||
|
|
||||||
|
@ -35,8 +35,8 @@ AC_INIT(src/Fl.cxx)
|
|||||||
|
|
||||||
dnl FLTK library versions...
|
dnl FLTK library versions...
|
||||||
FL_MAJOR_VERSION=1
|
FL_MAJOR_VERSION=1
|
||||||
FL_MINOR_VERSION=1
|
FL_MINOR_VERSION=3
|
||||||
FL_PATCH_VERSION=8
|
FL_PATCH_VERSION=0
|
||||||
FL_API_VERSION=${FL_MAJOR_VERSION}.${FL_MINOR_VERSION}
|
FL_API_VERSION=${FL_MAJOR_VERSION}.${FL_MINOR_VERSION}
|
||||||
|
|
||||||
AC_SUBST(FL_MAJOR_VERSION)
|
AC_SUBST(FL_MAJOR_VERSION)
|
||||||
|
@ -501,9 +501,15 @@ Fl_Window_Type Fl_Window_type;
|
|||||||
// Resize from window manager...
|
// Resize from window manager...
|
||||||
void Overlay_Window::resize(int X,int Y,int W,int H) {
|
void Overlay_Window::resize(int X,int Y,int W,int H) {
|
||||||
Fl_Widget* t = resizable(); resizable(0);
|
Fl_Widget* t = resizable(); resizable(0);
|
||||||
|
|
||||||
|
// do not set the mod flag if the window was not resized. In FLUID, all
|
||||||
|
// windows are opened without a given x/y position, so modifying x/y
|
||||||
|
// should not mark the project as dirty
|
||||||
|
if (W!=w() || H!=h())
|
||||||
|
set_modflag(1);
|
||||||
|
|
||||||
Fl_Overlay_Window::resize(X,Y,W,H);
|
Fl_Overlay_Window::resize(X,Y,W,H);
|
||||||
resizable(t);
|
resizable(t);
|
||||||
set_modflag(1);
|
|
||||||
update_xywh();
|
update_xywh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ Fl_File_Chooser::Fl_File_Chooser(const char *d, const char *p, int t, const char
|
|||||||
fileName->callback((Fl_Callback*)cb_fileName);
|
fileName->callback((Fl_Callback*)cb_fileName);
|
||||||
fileName->when(FL_WHEN_ENTER_KEY);
|
fileName->when(FL_WHEN_ENTER_KEY);
|
||||||
Fl_Group::current()->resizable(fileName);
|
Fl_Group::current()->resizable(fileName);
|
||||||
fileName->when(FL_WHEN_CHANGED | FL_WHEN_ENTER_KEY_ALWAYS);
|
fileName->when(FL_WHEN_CHANGED | FL_WHEN_ENTER_KEY);
|
||||||
} // Fl_File_Input* fileName
|
} // Fl_File_Input* fileName
|
||||||
{ Fl_Box* o = new Fl_Box(10, 310, 105, 25, "Filename:");
|
{ Fl_Box* o = new Fl_Box(10, 310, 105, 25, "Filename:");
|
||||||
o->labelfont(1);
|
o->labelfont(1);
|
||||||
|
@ -123,7 +123,7 @@ window->hide();}
|
|||||||
Fl_File_Input fileName {
|
Fl_File_Input fileName {
|
||||||
callback {fileNameCB();}
|
callback {fileNameCB();}
|
||||||
private xywh {115 300 365 35} labelfont 1 when 8 resizable
|
private xywh {115 300 365 35} labelfont 1 when 8 resizable
|
||||||
code0 {fileName->when(FL_WHEN_CHANGED | FL_WHEN_ENTER_KEY_ALWAYS);}
|
code0 {fileName->when(FL_WHEN_CHANGED | FL_WHEN_ENTER_KEY);}
|
||||||
}
|
}
|
||||||
Fl_Box {} {
|
Fl_Box {} {
|
||||||
label {Filename:}
|
label {Filename:}
|
||||||
|
@ -134,9 +134,12 @@ Fl_File_Chooser::count() {
|
|||||||
for (i = 1, fcount = 0; i <= fileList->size(); i ++)
|
for (i = 1, fcount = 0; i <= fileList->size(); i ++)
|
||||||
if (fileList->selected(i)) {
|
if (fileList->selected(i)) {
|
||||||
// See if this file is a directory...
|
// See if this file is a directory...
|
||||||
filename = (char *)fileList->text(i);
|
// matt: why would we do that? It is perfectly legal to select multiple
|
||||||
|
// directories in a DIR chooser. They are visually selected and value(i)
|
||||||
|
// returns all of them as expected
|
||||||
|
//filename = (char *)fileList->text(i);
|
||||||
|
|
||||||
if (filename[strlen(filename) - 1] != '/')
|
//if (filename[strlen(filename) - 1] != '/')
|
||||||
fcount ++;
|
fcount ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -505,8 +508,8 @@ Fl_File_Chooser::fileNameCB()
|
|||||||
first_line; // First matching line
|
first_line; // First matching line
|
||||||
const char *file; // File from directory
|
const char *file; // File from directory
|
||||||
|
|
||||||
|
|
||||||
// puts("fileNameCB()");
|
// puts("fileNameCB()");
|
||||||
|
// printf("Event: %s\n", fl_eventnames[Fl::event()]);
|
||||||
|
|
||||||
// Get the filename from the text field...
|
// Get the filename from the text field...
|
||||||
filename = (char *)fileName->value();
|
filename = (char *)fileName->value();
|
||||||
|
@ -2872,7 +2872,7 @@ void Fl_Help_View::end_selection(int clipboard)
|
|||||||
*d++ = *src++;
|
*d++ = *src++;
|
||||||
}
|
}
|
||||||
c = src[-1];
|
c = src[-1];
|
||||||
p = isspace(c) ? ' ' : c;
|
p = isspace(c&255) ? ' ' : c;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -2888,7 +2888,7 @@ void Fl_Help_View::end_selection(int clipboard)
|
|||||||
}
|
}
|
||||||
int n = s-value_;
|
int n = s-value_;
|
||||||
if (n>selection_first && n<=selection_last) {
|
if (n>selection_first && n<=selection_last) {
|
||||||
if (!pre && isspace(c)) c = ' ';
|
if (!pre && isspace(c&255)) c = ' ';
|
||||||
if (p!=' '||c!=' ')
|
if (p!=' '||c!=' ')
|
||||||
*d++ = c;
|
*d++ = c;
|
||||||
p = c;
|
p = c;
|
||||||
|
@ -315,8 +315,9 @@ show_callback(void)
|
|||||||
|
|
||||||
fc->show();
|
fc->show();
|
||||||
|
|
||||||
while (fc->visible())
|
while (fc->visible()) {
|
||||||
Fl::wait();
|
Fl::wait();
|
||||||
|
}
|
||||||
|
|
||||||
count = fc->count();
|
count = fc->count();
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user