Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

NDK_XX::NDKSubMenu Class Reference

#include <ndk++.h>

Inheritance diagram for NDK_XX::NDKSubMenu:

NDK_XX::NDKMenuBar NDK_XX::NDKMenu List of all members.

Public Methods

 NDKSubMenu (int rows, int cols, int y, int x, ListOfItems &items, const char *ttitle="", const char *btitle="", const char *title_pos="l", char orient='v', bool framed=true)
 ~NDKSubMenu ()
void setItems (ListOfItems &items)
 Hide good ol' pointers from here on...


Constructor & Destructor Documentation

NDK_XX::NDKSubMenu::NDKSubMenu int    rows,
int    cols,
int    y,
int    x,
ListOfItems   items,
const char *    ttitle = "",
const char *    btitle = "",
const char *    title_pos = "l",
char    orient = 'v',
bool    framed = true
[inline]
 

Definition at line 218 of file ndk++.h.

References NDK_XX::ListOfItems.

00223         :  NDKMenuBar (rows+2, cols+3,y,x,items,ttitle,btitle,title_pos
00224                         ,orient,framed)
00225     {
00226     }

NDK_XX::NDKSubMenu::~NDKSubMenu   [inline]
 

Definition at line 227 of file ndk++.h.

00227                   { 
00228     }


Member Function Documentation

void NDK_XX::NDKSubMenu::setItems ListOfItems   items
 

Hide good ol' pointers from here on...

Reimplemented from NDK_XX::NDKMenu.

Definition at line 160 of file ndk++.cc.

References NDK_XX::NDKMenuItem::get_menu(), NDK_XX::NDKMenu::InitMenu(), and NDK_XX::ListOfItems.

00161 {
00162     NDKMenuItem *pItem = dynamic_cast<NDKMenuItem *>(items[0]);
00163     ListOfItems::iterator it;
00164     if(pItem->get_menu())
00165         NDKMenu::setItems(items);
00166     else 
00167         InitMenu(items);
00168     refresh();
00169 }


The documentation for this class was generated from the following files:
Generated on Tue Aug 27 10:49:47 2002 by doxygen1.2.17