Moved POSIX dialog unit calcilation function stubs
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7036 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b4ec25628e
commit
5122047639
2 changed files with 7 additions and 5 deletions
|
@ -430,7 +430,11 @@ void CDialogTemplate::CTrimToString(WORD id, TCHAR *str, int margins) {
|
||||||
item->sWidth = short(size.cx);
|
item->sWidth = short(size.cx);
|
||||||
item->sHeight = short(size.cy);
|
item->sHeight = short(size.cy);
|
||||||
}
|
}
|
||||||
#endif
|
#else //! WIN32
|
||||||
|
void CDialogTemplate::PixelsToDlgUnits(short& x, short& y) { assert(0); }
|
||||||
|
void CDialogTemplate::PixelsToDlgUnits(SIZE& siz) { assert(0); }
|
||||||
|
void CDialogTemplate::DlgUnitsToPixels(short& x, short& y) { assert(0); }
|
||||||
|
#endif //~ WIN32
|
||||||
|
|
||||||
// Moves every item right and gives it the WS_EX_RIGHT extended style
|
// Moves every item right and gives it the WS_EX_RIGHT extended style
|
||||||
void CDialogTemplate::ConvertToRTL() {
|
void CDialogTemplate::ConvertToRTL() {
|
||||||
|
|
|
@ -123,19 +123,17 @@ public:
|
||||||
#endif
|
#endif
|
||||||
void MoveAll(short x, short y);
|
void MoveAll(short x, short y);
|
||||||
void Resize(short x, short y);
|
void Resize(short x, short y);
|
||||||
#ifdef _WIN32
|
|
||||||
static inline bool SupportsDialogUnitComputation() { return true; }
|
|
||||||
void PixelsToDlgUnits(short& x, short& y);
|
void PixelsToDlgUnits(short& x, short& y);
|
||||||
void PixelsToDlgUnits(SIZE& siz);
|
void PixelsToDlgUnits(SIZE& siz);
|
||||||
void DlgUnitsToPixels(short& x, short& y);
|
void DlgUnitsToPixels(short& x, short& y);
|
||||||
|
#ifdef _WIN32
|
||||||
|
static inline bool SupportsDialogUnitComputation() { return true; }
|
||||||
SIZE GetStringSize(WORD id, TCHAR *str);
|
SIZE GetStringSize(WORD id, TCHAR *str);
|
||||||
void RTrimToString(WORD id, TCHAR *str, int margins);
|
void RTrimToString(WORD id, TCHAR *str, int margins);
|
||||||
void LTrimToString(WORD id, TCHAR *str, int margins);
|
void LTrimToString(WORD id, TCHAR *str, int margins);
|
||||||
void CTrimToString(WORD id, TCHAR *str, int margins);
|
void CTrimToString(WORD id, TCHAR *str, int margins);
|
||||||
#else
|
#else
|
||||||
static inline bool SupportsDialogUnitComputation() { return false; }
|
static inline bool SupportsDialogUnitComputation() { return false; }
|
||||||
inline void PixelsToDlgUnits(short& x, short& y) { assert(0); }
|
|
||||||
inline void DlgUnitsToPixels(short& x, short& y) { assert(0); }
|
|
||||||
#endif
|
#endif
|
||||||
void ConvertToRTL();
|
void ConvertToRTL();
|
||||||
BYTE* Save(DWORD& dwSize);
|
BYTE* Save(DWORD& dwSize);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue