Cleanup: Remove unused UI button definition functions
These were part of the older buttons API that shouldn't be used in more places at this point. Most layouts should be built with the regular layout system API and RNA properties. This sort of button can still be created though, since these were just shortcuts anyway.
This commit is contained in:
@@ -982,21 +982,6 @@ uiBut *uiDefButF(uiBlock *block,
|
|||||||
float a1,
|
float a1,
|
||||||
float a2,
|
float a2,
|
||||||
const char *tip);
|
const char *tip);
|
||||||
uiBut *uiDefButBitF(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
float *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip);
|
|
||||||
uiBut *uiDefButI(uiBlock *block,
|
uiBut *uiDefButI(uiBlock *block,
|
||||||
int type,
|
int type,
|
||||||
int retval,
|
int retval,
|
||||||
@@ -1154,35 +1139,6 @@ uiBut *uiDefIconBut(uiBlock *block,
|
|||||||
float a1,
|
float a1,
|
||||||
float a2,
|
float a2,
|
||||||
const char *tip);
|
const char *tip);
|
||||||
uiBut *uiDefIconButF(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
float *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip);
|
|
||||||
uiBut *uiDefIconButBitF(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
float *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip);
|
|
||||||
uiBut *uiDefIconButI(uiBlock *block,
|
uiBut *uiDefIconButI(uiBlock *block,
|
||||||
int type,
|
int type,
|
||||||
int retval,
|
int retval,
|
||||||
@@ -1241,20 +1197,6 @@ uiBut *uiDefIconButBitS(uiBlock *block,
|
|||||||
float a1,
|
float a1,
|
||||||
float a2,
|
float a2,
|
||||||
const char *tip);
|
const char *tip);
|
||||||
uiBut *uiDefIconButC(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
char *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip);
|
|
||||||
uiBut *uiDefIconButBitC(uiBlock *block,
|
uiBut *uiDefIconButBitC(uiBlock *block,
|
||||||
int type,
|
int type,
|
||||||
int bit,
|
int bit,
|
||||||
@@ -1356,22 +1298,6 @@ uiBut *uiDefIconTextButF(uiBlock *block,
|
|||||||
float a1,
|
float a1,
|
||||||
float a2,
|
float a2,
|
||||||
const char *tip);
|
const char *tip);
|
||||||
uiBut *uiDefIconTextButBitF(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
float *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip);
|
|
||||||
uiBut *uiDefIconTextButI(uiBlock *block,
|
uiBut *uiDefIconTextButI(uiBlock *block,
|
||||||
int type,
|
int type,
|
||||||
int retval,
|
int retval,
|
||||||
@@ -1387,84 +1313,6 @@ uiBut *uiDefIconTextButI(uiBlock *block,
|
|||||||
float a1,
|
float a1,
|
||||||
float a2,
|
float a2,
|
||||||
const char *tip);
|
const char *tip);
|
||||||
uiBut *uiDefIconTextButBitI(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
int *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip);
|
|
||||||
uiBut *uiDefIconTextButS(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
short *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip);
|
|
||||||
uiBut *uiDefIconTextButBitS(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
short *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip);
|
|
||||||
uiBut *uiDefIconTextButC(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
char *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip);
|
|
||||||
uiBut *uiDefIconTextButBitC(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
char *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip);
|
|
||||||
uiBut *uiDefIconTextButR(uiBlock *block,
|
uiBut *uiDefIconTextButR(uiBlock *block,
|
||||||
int type,
|
int type,
|
||||||
int retval,
|
int retval,
|
||||||
|
|||||||
@@ -4943,38 +4943,6 @@ uiBut *uiDefButF(uiBlock *block,
|
|||||||
a2,
|
a2,
|
||||||
tip);
|
tip);
|
||||||
}
|
}
|
||||||
uiBut *uiDefButBitF(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
float *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
return uiDefButBit(block,
|
|
||||||
type | UI_BUT_POIN_FLOAT,
|
|
||||||
bit,
|
|
||||||
retval,
|
|
||||||
str,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
(void *)poin,
|
|
||||||
min,
|
|
||||||
max,
|
|
||||||
a1,
|
|
||||||
a2,
|
|
||||||
tip);
|
|
||||||
}
|
|
||||||
uiBut *uiDefButI(uiBlock *block,
|
uiBut *uiDefButI(uiBlock *block,
|
||||||
int type,
|
int type,
|
||||||
int retval,
|
int retval,
|
||||||
@@ -5295,68 +5263,6 @@ static uiBut *uiDefIconButBit(uiBlock *block,
|
|||||||
tip);
|
tip);
|
||||||
}
|
}
|
||||||
|
|
||||||
uiBut *uiDefIconButF(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
float *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
return uiDefIconBut(block,
|
|
||||||
type | UI_BUT_POIN_FLOAT,
|
|
||||||
retval,
|
|
||||||
icon,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
(void *)poin,
|
|
||||||
min,
|
|
||||||
max,
|
|
||||||
a1,
|
|
||||||
a2,
|
|
||||||
tip);
|
|
||||||
}
|
|
||||||
uiBut *uiDefIconButBitF(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
float *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
return uiDefIconButBit(block,
|
|
||||||
type | UI_BUT_POIN_FLOAT,
|
|
||||||
bit,
|
|
||||||
retval,
|
|
||||||
icon,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
(void *)poin,
|
|
||||||
min,
|
|
||||||
max,
|
|
||||||
a1,
|
|
||||||
a2,
|
|
||||||
tip);
|
|
||||||
}
|
|
||||||
uiBut *uiDefIconButI(uiBlock *block,
|
uiBut *uiDefIconButI(uiBlock *block,
|
||||||
int type,
|
int type,
|
||||||
int retval,
|
int retval,
|
||||||
@@ -5481,36 +5387,6 @@ uiBut *uiDefIconButBitS(uiBlock *block,
|
|||||||
a2,
|
a2,
|
||||||
tip);
|
tip);
|
||||||
}
|
}
|
||||||
uiBut *uiDefIconButC(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
char *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
return uiDefIconBut(block,
|
|
||||||
type | UI_BUT_POIN_CHAR,
|
|
||||||
retval,
|
|
||||||
icon,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
(void *)poin,
|
|
||||||
min,
|
|
||||||
max,
|
|
||||||
a1,
|
|
||||||
a2,
|
|
||||||
tip);
|
|
||||||
}
|
|
||||||
uiBut *uiDefIconButBitC(uiBlock *block,
|
uiBut *uiDefIconButBitC(uiBlock *block,
|
||||||
int type,
|
int type,
|
||||||
int bit,
|
int bit,
|
||||||
@@ -5710,40 +5586,6 @@ uiBut *uiDefIconTextButF(uiBlock *block,
|
|||||||
a2,
|
a2,
|
||||||
tip);
|
tip);
|
||||||
}
|
}
|
||||||
uiBut *uiDefIconTextButBitF(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
float *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
return uiDefIconTextButBit(block,
|
|
||||||
type | UI_BUT_POIN_FLOAT,
|
|
||||||
bit,
|
|
||||||
retval,
|
|
||||||
icon,
|
|
||||||
str,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
(void *)poin,
|
|
||||||
min,
|
|
||||||
max,
|
|
||||||
a1,
|
|
||||||
a2,
|
|
||||||
tip);
|
|
||||||
}
|
|
||||||
uiBut *uiDefIconTextButI(uiBlock *block,
|
uiBut *uiDefIconTextButI(uiBlock *block,
|
||||||
int type,
|
int type,
|
||||||
int retval,
|
int retval,
|
||||||
@@ -5776,172 +5618,6 @@ uiBut *uiDefIconTextButI(uiBlock *block,
|
|||||||
a2,
|
a2,
|
||||||
tip);
|
tip);
|
||||||
}
|
}
|
||||||
uiBut *uiDefIconTextButBitI(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
int *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
return uiDefIconTextButBit(block,
|
|
||||||
type | UI_BUT_POIN_INT,
|
|
||||||
bit,
|
|
||||||
retval,
|
|
||||||
icon,
|
|
||||||
str,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
(void *)poin,
|
|
||||||
min,
|
|
||||||
max,
|
|
||||||
a1,
|
|
||||||
a2,
|
|
||||||
tip);
|
|
||||||
}
|
|
||||||
uiBut *uiDefIconTextButS(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
short *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
return uiDefIconTextBut(block,
|
|
||||||
type | UI_BUT_POIN_SHORT,
|
|
||||||
retval,
|
|
||||||
icon,
|
|
||||||
str,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
(void *)poin,
|
|
||||||
min,
|
|
||||||
max,
|
|
||||||
a1,
|
|
||||||
a2,
|
|
||||||
tip);
|
|
||||||
}
|
|
||||||
uiBut *uiDefIconTextButBitS(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
short *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
return uiDefIconTextButBit(block,
|
|
||||||
type | UI_BUT_POIN_SHORT,
|
|
||||||
bit,
|
|
||||||
retval,
|
|
||||||
icon,
|
|
||||||
str,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
(void *)poin,
|
|
||||||
min,
|
|
||||||
max,
|
|
||||||
a1,
|
|
||||||
a2,
|
|
||||||
tip);
|
|
||||||
}
|
|
||||||
uiBut *uiDefIconTextButC(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
char *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
return uiDefIconTextBut(block,
|
|
||||||
type | UI_BUT_POIN_CHAR,
|
|
||||||
retval,
|
|
||||||
icon,
|
|
||||||
str,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
(void *)poin,
|
|
||||||
min,
|
|
||||||
max,
|
|
||||||
a1,
|
|
||||||
a2,
|
|
||||||
tip);
|
|
||||||
}
|
|
||||||
uiBut *uiDefIconTextButBitC(uiBlock *block,
|
|
||||||
int type,
|
|
||||||
int bit,
|
|
||||||
int retval,
|
|
||||||
int icon,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
char *poin,
|
|
||||||
float min,
|
|
||||||
float max,
|
|
||||||
float a1,
|
|
||||||
float a2,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
return uiDefIconTextButBit(block,
|
|
||||||
type | UI_BUT_POIN_CHAR,
|
|
||||||
bit,
|
|
||||||
retval,
|
|
||||||
icon,
|
|
||||||
str,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
(void *)poin,
|
|
||||||
min,
|
|
||||||
max,
|
|
||||||
a1,
|
|
||||||
a2,
|
|
||||||
tip);
|
|
||||||
}
|
|
||||||
uiBut *uiDefIconTextButR(uiBlock *block,
|
uiBut *uiDefIconTextButR(uiBlock *block,
|
||||||
int type,
|
int type,
|
||||||
int retval,
|
int retval,
|
||||||
|
|||||||
Reference in New Issue
Block a user