mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
whitespace
This commit is contained in:
parent
6164f36c47
commit
bcc5459818
50 changed files with 2111 additions and 2111 deletions
|
|
@ -52,9 +52,9 @@ IMPLEMENT_CALLBACK( GuiListBoxCtrl, onMouseDragged, void, (),(),
|
|||
"@tsexample\n"
|
||||
"// Mouse is dragged across the control, causing the callback to occur.\n"
|
||||
"GuiListBoxCtrl::onMouseDragged(%this)\n"
|
||||
" {\n"
|
||||
" // Code to run whenever the mouse is dragged across the control\n"
|
||||
" }\n"
|
||||
" {\n"
|
||||
" // Code to run whenever the mouse is dragged across the control\n"
|
||||
" }\n"
|
||||
"@endtsexample\n\n"
|
||||
"@see GuiControl\n\n"
|
||||
);
|
||||
|
|
@ -64,9 +64,9 @@ IMPLEMENT_CALLBACK( GuiListBoxCtrl, onClearSelection, void, (),(),
|
|||
"@tsexample\n"
|
||||
"// A selected item is cleared, causing the callback to occur.\n"
|
||||
"GuiListBoxCtrl::onClearSelection(%this)\n"
|
||||
" {\n"
|
||||
" // Code to run whenever a selected item is cleared\n"
|
||||
" }\n"
|
||||
" {\n"
|
||||
" // Code to run whenever a selected item is cleared\n"
|
||||
" }\n"
|
||||
"@endtsexample\n\n"
|
||||
"@see GuiControl\n\n"
|
||||
);
|
||||
|
|
@ -78,9 +78,9 @@ IMPLEMENT_CALLBACK( GuiListBoxCtrl, onUnSelect, void, ( S32 index, const char* i
|
|||
"@tsexample\n"
|
||||
"// A selected item is unselected, causing the callback to occur\n"
|
||||
"GuiListBoxCtrl::onUnSelect(%this, %indexId, %itemText)\n"
|
||||
" {\n"
|
||||
" // Code to run whenever a selected list item is unselected\n"
|
||||
" }\n"
|
||||
" {\n"
|
||||
" // Code to run whenever a selected list item is unselected\n"
|
||||
" }\n"
|
||||
"@endtsexample\n\n"
|
||||
"@see GuiControl\n\n"
|
||||
);
|
||||
|
|
@ -92,9 +92,9 @@ IMPLEMENT_CALLBACK( GuiListBoxCtrl, onSelect, void, ( S32 index , const char* it
|
|||
"@tsexample\n"
|
||||
"// An item in the list is selected, causing the callback to occur\n"
|
||||
"GuiListBoxCtrl::onSelect(%this, %index, %itemText)\n"
|
||||
" {\n"
|
||||
" // Code to run whenever an item in the list is selected\n"
|
||||
" }\n"
|
||||
" {\n"
|
||||
" // Code to run whenever an item in the list is selected\n"
|
||||
" }\n"
|
||||
"@endtsexample\n\n"
|
||||
"@see GuiControl\n\n"
|
||||
);
|
||||
|
|
@ -104,9 +104,9 @@ IMPLEMENT_CALLBACK( GuiListBoxCtrl, onDoubleClick, void, (),(),
|
|||
"@tsexample\n"
|
||||
"// An item in the list is double clicked, causing the callback to occur.\n"
|
||||
"GuiListBoxCtrl::onDoubleClick(%this)\n"
|
||||
" {\n"
|
||||
" // Code to run whenever an item in the control has been double clicked\n"
|
||||
" }\n"
|
||||
" {\n"
|
||||
" // Code to run whenever an item in the control has been double clicked\n"
|
||||
" }\n"
|
||||
"@endtsexample\n\n"
|
||||
"@see GuiControl\n\n"
|
||||
);
|
||||
|
|
@ -121,9 +121,9 @@ IMPLEMENT_CALLBACK( GuiListBoxCtrl, onMouseUp, void, ( S32 itemHit, S32 mouseCli
|
|||
"@tsexample\n"
|
||||
"// Mouse was previously clicked down, and now has been released, causing the callback to occur.\n"
|
||||
"GuiListBoxCtrl::onMouseUp(%this, %itemHit, %mouseClickCount)\n"
|
||||
" {\n"
|
||||
" // Code to call whenever the mouse has been clicked and released on the control\n"
|
||||
" }\n"
|
||||
" {\n"
|
||||
" // Code to call whenever the mouse has been clicked and released on the control\n"
|
||||
" }\n"
|
||||
"@endtsexample\n\n"
|
||||
"@see GuiControl\n\n"
|
||||
);
|
||||
|
|
@ -133,9 +133,9 @@ IMPLEMENT_CALLBACK( GuiListBoxCtrl, onDeleteKey, void, (),(),
|
|||
"@tsexample\n"
|
||||
"// The delete key on the keyboard has been pressed while this control is in focus, causing the callback to occur.\n"
|
||||
"GuiListBoxCtrl::onDeleteKey(%this)\n"
|
||||
" {\n"
|
||||
" // Code to call whenever the delete key is pressed\n"
|
||||
" }\n"
|
||||
" {\n"
|
||||
" // Code to call whenever the delete key is pressed\n"
|
||||
" }\n"
|
||||
"@endtsexample\n\n"
|
||||
"@see GuiControl\n\n"
|
||||
);
|
||||
|
|
@ -146,10 +146,10 @@ IMPLEMENT_CALLBACK( GuiListBoxCtrl, isObjectMirrored, bool, ( const char* indexI
|
|||
"@tsexample\n"
|
||||
"// Engine has requested of the script level to determine if a list entry is mirrored or not.\n"
|
||||
"GuiListBoxCtrl::isObjectMirrored(%this, %indexIdString)\n"
|
||||
" {\n"
|
||||
" // Perform code required to check and see if the list item at the index id is mirrored or not.\n"
|
||||
" return %isMirrored;\n"
|
||||
" }\n"
|
||||
" {\n"
|
||||
" // Perform code required to check and see if the list item at the index id is mirrored or not.\n"
|
||||
" return %isMirrored;\n"
|
||||
" }\n"
|
||||
"@endtsexample\n\n"
|
||||
"@return A boolean value on if the list item is mirrored or not.\n\n"
|
||||
"@see GuiControl\n\n"
|
||||
|
|
@ -234,7 +234,7 @@ void GuiListBoxCtrl::clearItems()
|
|||
// Free our vector lists
|
||||
mItems.clear();
|
||||
mSelectedItems.clear();
|
||||
mFilteredItems.clear();
|
||||
mFilteredItems.clear();
|
||||
}
|
||||
|
||||
DefineEngineMethod( GuiListBoxCtrl, clearSelection, void, (),,
|
||||
|
|
@ -1511,8 +1511,8 @@ void GuiListBoxCtrl::_mirror()
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for ( U32 j = 0; j < mFilteredItems.size(); j++ )
|
||||
|
||||
for ( U32 j = 0; j < mFilteredItems.size(); j++ )
|
||||
{
|
||||
if ( (SimObjectId)(uintptr_t)(mFilteredItems[j]->itemData) == curId )
|
||||
{
|
||||
|
|
@ -1571,37 +1571,37 @@ DefineEngineMethod( GuiListBoxCtrl, addFilteredItem, void, (const char* newItem)
|
|||
"@endtsexample\n\n"
|
||||
"@see GuiControl")
|
||||
{
|
||||
String item(newItem);
|
||||
if( item == String::EmptyString )
|
||||
return;
|
||||
String item(newItem);
|
||||
if( item == String::EmptyString )
|
||||
return;
|
||||
|
||||
object->addFilteredItem( item );
|
||||
object->addFilteredItem( item );
|
||||
}
|
||||
|
||||
void GuiListBoxCtrl::addFilteredItem( String item )
|
||||
{
|
||||
// Delete from selected items list
|
||||
for ( S32 i = 0; i < mSelectedItems.size(); i++ )
|
||||
{
|
||||
String itemText = mSelectedItems[i]->itemText;
|
||||
if ( dStrcmp( itemText.c_str(), item.c_str() ) == 0 )
|
||||
{
|
||||
mSelectedItems.erase_fast( i );
|
||||
break;
|
||||
}
|
||||
}
|
||||
// Delete from selected items list
|
||||
for ( S32 i = 0; i < mSelectedItems.size(); i++ )
|
||||
{
|
||||
String itemText = mSelectedItems[i]->itemText;
|
||||
if ( dStrcmp( itemText.c_str(), item.c_str() ) == 0 )
|
||||
{
|
||||
mSelectedItems.erase_fast( i );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for ( S32 i = 0; i < mItems.size(); i++ )
|
||||
{
|
||||
String itemText = mItems[i]->itemText;
|
||||
if( dStrcmp( itemText.c_str(), item.c_str() ) == 0 )
|
||||
{
|
||||
mItems[i]->isSelected = false;
|
||||
mFilteredItems.push_front( mItems[i] );
|
||||
mItems.erase( &mItems[i] );
|
||||
break;
|
||||
}
|
||||
}
|
||||
for ( S32 i = 0; i < mItems.size(); i++ )
|
||||
{
|
||||
String itemText = mItems[i]->itemText;
|
||||
if( dStrcmp( itemText.c_str(), item.c_str() ) == 0 )
|
||||
{
|
||||
mItems[i]->isSelected = false;
|
||||
mFilteredItems.push_front( mItems[i] );
|
||||
mItems.erase( &mItems[i] );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DefineEngineMethod( GuiListBoxCtrl, removeFilteredItem, void, ( const char* itemName ),,
|
||||
|
|
@ -1615,23 +1615,23 @@ DefineEngineMethod( GuiListBoxCtrl, removeFilteredItem, void, ( const char* item
|
|||
"@endtsexample\n\n"
|
||||
"@see GuiControl")
|
||||
{
|
||||
String item(itemName);
|
||||
if( item == String::EmptyString )
|
||||
return;
|
||||
String item(itemName);
|
||||
if( item == String::EmptyString )
|
||||
return;
|
||||
|
||||
object->removeFilteredItem( item );
|
||||
object->removeFilteredItem( item );
|
||||
}
|
||||
|
||||
void GuiListBoxCtrl::removeFilteredItem( String item )
|
||||
{
|
||||
for ( S32 i = 0; i < mFilteredItems.size(); i++ )
|
||||
{
|
||||
String itemText = mFilteredItems[i]->itemText;
|
||||
if( dStrcmp( itemText.c_str(), item.c_str() ) == 0 )
|
||||
{
|
||||
mItems.push_front( mFilteredItems[i] );
|
||||
mFilteredItems.erase( &mFilteredItems[i] );
|
||||
break;
|
||||
}
|
||||
}
|
||||
for ( S32 i = 0; i < mFilteredItems.size(); i++ )
|
||||
{
|
||||
String itemText = mFilteredItems[i]->itemText;
|
||||
if( dStrcmp( itemText.c_str(), item.c_str() ) == 0 )
|
||||
{
|
||||
mItems.push_front( mFilteredItems[i] );
|
||||
mFilteredItems.erase( &mFilteredItems[i] );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue