AddBrandingImage doesn't depend on the UI now. Can now set the branding image on the bottom and on the right too, and set a custom padding value

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2334 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-03-18 13:53:29 +00:00
parent 3ae6d897b8
commit 156648c9d5
6 changed files with 50 additions and 21 deletions

View file

@ -224,6 +224,16 @@ CDialogTemplate::~CDialogTemplate() {
// Methods
//////////////////////////////////////////////////////////////////////
// Returns the width of the dialog
short CDialogTemplate::GetWidth() {
return m_sWidth;
}
// Returns the height of the dialog
short CDialogTemplate::GetHeight() {
return m_sHeight;
}
// Returns info about the item with the id wId
DialogItemTemplate* CDialogTemplate::GetItem(WORD wId) {
for (unsigned int i = 0; i < m_vItems.size(); i++)
@ -288,14 +298,16 @@ void CDialogTemplate::AddItem(DialogItemTemplate item) {
m_vItems.push_back(newItem);
}
// Moves all of the items in the dialog by (x,y) and resizes the dialog by (x,y)
void CDialogTemplate::MoveAllAndResize(short x, short y) {
// Move all items
// Moves all of the items in the dialog by (x,y)
void CDialogTemplate::MoveAll(short x, short y) {
for (unsigned int i = 0; i < m_vItems.size(); i++) {
m_vItems[i]->sX += x;
m_vItems[i]->sY += y;
}
// Resize
}
// Resizes the dialog by (x,y)
void CDialogTemplate::Resize(short x, short y) {
m_sWidth += x;
m_sHeight += y;
}