Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::TabModel Class Reference

The Tab model is a interface for describing what a model that implements a series of tabs should do. More...

#include <vcf/ApplicationKit/TabModel.h>

Inheritance diagram for VCF::TabModel:

VCF::SimpleListModel VCF::ListModel VCF::Model VCF::Component VCF::ObjectWithCallbacks VCF::Object List of all members.

Public Types

enum  { NoPageSelected = (uint32)-1 }

Public Member Functions

 TabModel ()
virtual ~TabModel ()
virtual TabPageSelected void empty ()
 clears out the model's data
virtual bool supportsSubItems ()
void setSelectedPage (const uint32 &index)
uint32 getSelectedPageIndex ()

Public Attributes

VCF::Delegate TabModelDelegate

Protected Attributes

uint32 selectedIndex_

Detailed Description

The Tab model is a interface for describing what a model that implements a series of tabs should do.

It does not inherit from the Model class directly. This is to allow different implementations different base classes. For example, you might have a simple list model that inherits/implements the Model class, and the TabModel class. This would be suitable for most controls. However you might want a fancier implementation, perhaps that is based off of the Document and TabModel classes. This would still allow you to use the same control with either style.

Event Delegates for this class:
  • TabModel::TabPageAdded
  • TabModel::TabPageRemoved
  • TabModel::TabPageSelected


Member Enumeration Documentation

anonymous enum
 

Enumerator:
NoPageSelected 

Reimplemented from VCF::ListModel.


Constructor & Destructor Documentation

VCF::TabModel::TabModel  ) 
 

virtual VCF::TabModel::~TabModel  )  [virtual]
 


Member Function Documentation

virtual TabPageSelected void VCF::TabModel::empty  )  [inline, virtual]
 

clears out the model's data

Reimplemented from VCF::SimpleListModel.

uint32 VCF::TabModel::getSelectedPageIndex  )  [inline]
 

void VCF::TabModel::setSelectedPage const uint32 index  ) 
 

virtual bool VCF::TabModel::supportsSubItems  )  [inline, virtual]
 

Reimplemented from VCF::ListModel.


Member Data Documentation

uint32 VCF::TabModel::selectedIndex_ [protected]
 

VCF::Delegate VCF::TabModel::TabModelDelegate
 

Event Delegate:
TabModelEvent - this is fired when a tab page is selected by calling the setSelectedPage() method
event class: TabModelEvent
event type: TAB_MODEL_EVENT_ITEM_SELECTED
See also:
setSelectedPage()


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information