Public Member Functions | |
void | Generate (gServerFavorite &fav, uMenu *menu) |
gCustomConnectEntries () | |
gCustomConnectEntries (gServerFavorite &fav, uMenu *menu) | |
~gCustomConnectEntries () |
Definition at line 271 of file gServerFavorites.cpp.
gCustomConnectEntries::gCustomConnectEntries | ( | ) | [inline] |
gCustomConnectEntries::gCustomConnectEntries | ( | gServerFavorite & | fav, | |
uMenu * | menu | |||
) | [inline] |
Definition at line 287 of file gServerFavorites.cpp.
References Generate().
00288 { 00289 Generate( fav, menu ); 00290 }
gCustomConnectEntries::~gCustomConnectEntries | ( | ) | [inline] |
void gCustomConnectEntries::Generate | ( | gServerFavorite & | fav, | |
uMenu * | menu | |||
) | [inline] |
Definition at line 274 of file gServerFavorites.cpp.
References gServerFavorite::address_, gServerFavorite::GetIndex(), gServerBrowser::highPort, gServerFavorite::port_, sg_Connect, sg_GetBookmarkString(), sg_lowPort, and tNEW.
Referenced by gCustomConnectEntries(), and gServerFavoriteMenuEntries::gServerFavoriteMenuEntries().
00275 { 00276 // prepare output reading "Edit <server name>" 00277 // create menu items (autodeleted when the edit menu is killed) 00278 tNEW(uMenuItemFunctionInt) ( menu, sg_GetBookmarkString( "menu_edit_connect_text" ), sg_GetBookmarkString( "menu_edit_connect_help" ), sg_Connect, fav.GetIndex() ); 00279 tNEW(uMenuItemInt) ( menu,"$network_custjoin_port_text","$network_custjoin_port_help", fav.port_, sg_lowPort, gServerBrowser::highPort ); 00280 tNEW(uMenuItemString) ( menu,sg_GetBookmarkString( "menu_address" ),sg_GetBookmarkString( "menu_address_help" ),fav.address_); 00281 }