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

NDK_XX::SelectionBox Class Reference

#include <ndk++.h>

Inheritance diagram for NDK_XX::SelectionBox:

NDK_XX::ListBox NDK_XX::Control List of all members.

Public Methods

 SelectionBox (Control *parent, int id, const string &title,int lines, int cols, int y, int x,int style=tabstop|framed|notify)
 SelectionBox (int id, const string &title,int lines, int cols, int y, int x,int style=tabstop|framed|notify)

Protected Methods

void initialize_items ()
 Load the visible components of the list.


Constructor & Destructor Documentation

NDK_XX::SelectionBox::SelectionBox Control   parent,
int    id,
const string &    title,
int    lines,
int    cols,
int    y,
int    x,
int    style = tabstop|framed|notify
[inline]
 

SelectionBox Constructor See parameters for class Control

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

References NDK_XX::MenuBar::b_own_items, NDK_XX::Control::hidden, NDK_XX::MenuBar::is_main_menu, NDK_XX::Control::notify, NDK_XX::MenuBar::orientation, NDK_XX::Control::tabstop, and NDK_XX::Control::title.

Referenced by NDK_XX::ListBox::set_text().

01265         :ListBox(id,title
01266                     ,lines,cols,y, x
01267                     ,style),orientation(orient),b_own_items(true),is_main_menu(false)
01268         {
01269         }
01270 
01271     ~MenuBar(){
01272         if(!b_own_items){

NDK_XX::SelectionBox::SelectionBox int    id,
const string &    title,
int    lines,
int    cols,
int    y,
int    x,
int    style = tabstop|framed|notify
[inline]
 

SelectionBox Constructor See parameters for class Control

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

References NDK_XX::MenuBar::orientation.

01278                                {return orientation;}
01279     int execute();
01280     
01281     /// specialized add_item: a MenuBar, as oposed to a ListBox
01282     /// adds the visible item at the same time as the data item
01283     /// (implicit to this is that you should not add more data items
01284     /// than the visible ones.
01285     /// This limitation is which allows us to deploy the items each one
01286     /// at its own position. (By now, anyway.  Later we may add the ability


Member Function Documentation

void NDK_XX::SelectionBox::initialize_items   [protected]
 

Load the visible components of the list.

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

References NDK_XX::ListBox::curr_item, NDK_XX::ListBox::first_visible, NDK_XX::Control::has_frame(), NDK_XX::ListBox::items, NDK_XX::ListBox::last_visible, NDK_XX::ListBox::ListItem, NDK_XX::ListBox::pos_x, NDK_XX::ListBox::pos_y, and NDK_XX::ListBox::show_empty().

Referenced by NDK_XX::ListBox::get_count(), and NDK_XX::ListBox::set_text().

01535 {
01536     curr_item=first_visible=last_visible=0;
01537     for(int i=pos_y;i<maxy();i++){
01538         items.push_back(new ListItem(this,-1,"",1,width()-pos_x-has_frame() ,i,pos_x));
01539     }
01540     show_empty();
01541 }


The documentation for this class was generated from the following files:
Generated on Thu Oct 10 16:02:23 2002 by doxygen1.2.17