Rename Fl_System_Driver::flNoValue to Fl_System_Driver::fl_NoValue to follow the CMP
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11988 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
aa8dc3ffe1
commit
1b3e273fa7
@ -55,13 +55,13 @@ public:
|
||||
virtual ~Fl_System_Driver();
|
||||
// These flags are useful after calling XParseGeometry(). They indicate which of its arguments
|
||||
// contain meaningful data upon return.
|
||||
static const int flNoValue;
|
||||
static const int flWidthValue;
|
||||
static const int flHeightValue;
|
||||
static const int flXValue;
|
||||
static const int flYValue;
|
||||
static const int flXNegative;
|
||||
static const int flYNegative;
|
||||
static const int fl_NoValue;
|
||||
static const int fl_WidthValue;
|
||||
static const int fl_HeightValue;
|
||||
static const int fl_XValue;
|
||||
static const int fl_YValue;
|
||||
static const int fl_XNegative;
|
||||
static const int fl_YNegative;
|
||||
|
||||
// implement if the system adds unwanted program argument(s)
|
||||
virtual int single_arg(const char *arg) { return 0; }
|
||||
|
||||
@ -27,13 +27,13 @@
|
||||
#include <string.h>
|
||||
#include "flstring.h"
|
||||
|
||||
const int Fl_System_Driver::flNoValue = 0x0000;
|
||||
const int Fl_System_Driver::flWidthValue = 0x0004;
|
||||
const int Fl_System_Driver::flHeightValue = 0x0008;
|
||||
const int Fl_System_Driver::flXValue = 0x0001;
|
||||
const int Fl_System_Driver::flYValue = 0x0002;
|
||||
const int Fl_System_Driver::flXNegative = 0x0010;
|
||||
const int Fl_System_Driver::flYNegative = 0x0020;
|
||||
const int Fl_System_Driver::fl_NoValue = 0x0000;
|
||||
const int Fl_System_Driver::fl_WidthValue = 0x0004;
|
||||
const int Fl_System_Driver::fl_HeightValue = 0x0008;
|
||||
const int Fl_System_Driver::fl_XValue = 0x0001;
|
||||
const int Fl_System_Driver::fl_YValue = 0x0002;
|
||||
const int Fl_System_Driver::fl_XNegative = 0x0010;
|
||||
const int Fl_System_Driver::fl_YNegative = 0x0020;
|
||||
|
||||
|
||||
Fl_System_Driver::Fl_System_Driver()
|
||||
@ -138,7 +138,7 @@ static int ReadInteger(char* string, char** NextString)
|
||||
int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
|
||||
unsigned int* width, unsigned int* height)
|
||||
{
|
||||
int mask = Fl_System_Driver::flNoValue;
|
||||
int mask = Fl_System_Driver::fl_NoValue;
|
||||
char *strind;
|
||||
unsigned int tempWidth = 0, tempHeight = 0;
|
||||
int tempX = 0, tempY = 0;
|
||||
@ -154,7 +154,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
|
||||
if (strind == nextCharacter)
|
||||
return (0);
|
||||
strind = nextCharacter;
|
||||
mask |= flWidthValue;
|
||||
mask |= fl_WidthValue;
|
||||
}
|
||||
|
||||
if (*strind == 'x' || *strind == 'X') {
|
||||
@ -163,7 +163,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
|
||||
if (strind == nextCharacter)
|
||||
return (0);
|
||||
strind = nextCharacter;
|
||||
mask |= flHeightValue;
|
||||
mask |= fl_HeightValue;
|
||||
}
|
||||
|
||||
if ((*strind == '+') || (*strind == '-')) {
|
||||
@ -173,7 +173,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
|
||||
if (strind == nextCharacter)
|
||||
return (0);
|
||||
strind = nextCharacter;
|
||||
mask |= flXNegative;
|
||||
mask |= fl_XNegative;
|
||||
|
||||
} else {
|
||||
strind++;
|
||||
@ -182,7 +182,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
|
||||
return(0);
|
||||
strind = nextCharacter;
|
||||
}
|
||||
mask |= flXValue;
|
||||
mask |= fl_XValue;
|
||||
if ((*strind == '+') || (*strind == '-')) {
|
||||
if (*strind == '-') {
|
||||
strind++;
|
||||
@ -190,7 +190,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
|
||||
if (strind == nextCharacter)
|
||||
return(0);
|
||||
strind = nextCharacter;
|
||||
mask |= flYNegative;
|
||||
mask |= fl_YNegative;
|
||||
|
||||
} else {
|
||||
strind++;
|
||||
@ -199,7 +199,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
|
||||
return(0);
|
||||
strind = nextCharacter;
|
||||
}
|
||||
mask |= flYValue;
|
||||
mask |= fl_YValue;
|
||||
}
|
||||
}
|
||||
|
||||
@ -208,13 +208,13 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
|
||||
|
||||
if (*strind != '\0') return (0);
|
||||
|
||||
if (mask & flXValue)
|
||||
if (mask & fl_XValue)
|
||||
*x = tempX;
|
||||
if (mask & flYValue)
|
||||
if (mask & fl_YValue)
|
||||
*y = tempY;
|
||||
if (mask & flWidthValue)
|
||||
if (mask & fl_WidthValue)
|
||||
*width = tempWidth;
|
||||
if (mask & flHeightValue)
|
||||
if (mask & fl_HeightValue)
|
||||
*height = tempHeight;
|
||||
return (mask);
|
||||
}
|
||||
|
||||
@ -285,15 +285,15 @@ void Fl_Window::show(int argc, char **argv) {
|
||||
if (geometry) {
|
||||
int fl = 0, gx = x(), gy = y(); unsigned int gw = w(), gh = h();
|
||||
fl = Fl::system_driver()->XParseGeometry(geometry, &gx, &gy, &gw, &gh);
|
||||
if (fl & Fl_System_Driver::flXNegative) gx = Fl::w()-w()+gx;
|
||||
if (fl & Fl_System_Driver::flYNegative) gy = Fl::h()-h()+gy;
|
||||
if (fl & Fl_System_Driver::fl_XNegative) gx = Fl::w()-w()+gx;
|
||||
if (fl & Fl_System_Driver::fl_YNegative) gy = Fl::h()-h()+gy;
|
||||
// int mw,mh; minsize(mw,mh);
|
||||
// if (mw > gw) gw = mw;
|
||||
// if (mh > gh) gh = mh;
|
||||
Fl_Widget *r = resizable();
|
||||
if (!r) resizable(this);
|
||||
// for WIN32 we assume window is not mapped yet:
|
||||
if (fl & (Fl_System_Driver::flXValue | Fl_System_Driver::flYValue))
|
||||
if (fl & (Fl_System_Driver::fl_XValue | Fl_System_Driver::fl_YValue))
|
||||
x(-1), resize(gx,gy,gw,gh);
|
||||
else
|
||||
size(gw,gh);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user