mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-25 20:16:53 +01:00
minor changes
This commit is contained in:
parent
c3a62c7e32
commit
a5dd37fd9d
@ -480,6 +480,10 @@ class GuiWindow : public GuiElement
|
|||||||
void Remove(GuiElement* e);
|
void Remove(GuiElement* e);
|
||||||
//!Removes all GuiElements
|
//!Removes all GuiElements
|
||||||
void RemoveAll();
|
void RemoveAll();
|
||||||
|
//!Looks for the specified GuiElement
|
||||||
|
//!\param e The GuiElement to find
|
||||||
|
//!\return true if found, false otherwise
|
||||||
|
bool Find(GuiElement* e);
|
||||||
//!Returns the GuiElement at the specified index
|
//!Returns the GuiElement at the specified index
|
||||||
//!\param index The index of the element
|
//!\param index The index of the element
|
||||||
//!\return A pointer to the element at the index, NULL on error (eg: out of bounds)
|
//!\return A pointer to the element at the index, NULL on error (eg: out of bounds)
|
||||||
|
@ -69,6 +69,18 @@ void GuiWindow::RemoveAll()
|
|||||||
_elements.clear();
|
_elements.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool GuiWindow::Find(GuiElement* e)
|
||||||
|
{
|
||||||
|
if (e == NULL)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
u32 elemSize = _elements.size();
|
||||||
|
for (u32 i = 0; i < elemSize; ++i)
|
||||||
|
if(e == _elements.at(i))
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
GuiElement* GuiWindow::GetGuiElementAt(u32 index) const
|
GuiElement* GuiWindow::GetGuiElementAt(u32 index) const
|
||||||
{
|
{
|
||||||
if (index >= _elements.size())
|
if (index >= _elements.size())
|
||||||
@ -104,7 +116,8 @@ void GuiWindow::DrawTooltip()
|
|||||||
if(_elements.size() == 0 || !this->IsVisible())
|
if(_elements.size() == 0 || !this->IsVisible())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (u8 i = 0; i < _elements.size(); i++)
|
u32 elemSize = _elements.size();
|
||||||
|
for (u32 i = 0; i < elemSize; i++)
|
||||||
{
|
{
|
||||||
try { _elements.at(i)->DrawTooltip(); }
|
try { _elements.at(i)->DrawTooltip(); }
|
||||||
catch (const std::exception& e) { }
|
catch (const std::exception& e) { }
|
||||||
@ -398,7 +411,8 @@ void GuiWindow::MoveSelectionVert(int dir)
|
|||||||
|
|
||||||
void GuiWindow::ResetText()
|
void GuiWindow::ResetText()
|
||||||
{
|
{
|
||||||
for (u8 i = 0; i < _elements.size(); i++)
|
u32 elemSize = _elements.size();
|
||||||
|
for (u32 i = 0; i < elemSize; i++)
|
||||||
{
|
{
|
||||||
try { _elements.at(i)->ResetText(); }
|
try { _elements.at(i)->ResetText(); }
|
||||||
catch (const std::exception& e) { }
|
catch (const std::exception& e) { }
|
||||||
|
@ -247,6 +247,9 @@ ConnectShare (bool silent)
|
|||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if(networkShareInit)
|
||||||
|
return true;
|
||||||
|
|
||||||
int retry = 1;
|
int retry = 1;
|
||||||
int chkS = (strlen(GCSettings.smbshare) > 0) ? 0:1;
|
int chkS = (strlen(GCSettings.smbshare) > 0) ? 0:1;
|
||||||
int chkI = (strlen(GCSettings.smbip) > 0) ? 0:1;
|
int chkI = (strlen(GCSettings.smbip) > 0) ? 0:1;
|
||||||
|
Loading…
Reference in New Issue
Block a user