Advanced Strategic Command
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Attributes | List of all members
SavegameSelectionItemFactory Class Reference

#include <fileselector.h>

Inheritance diagram for SavegameSelectionItemFactory:
Inheritance graph

Public Member Functions

 SavegameSelectionItemFactory (const ASCString &wildcard)
void restart ()
int getLevel (const ASCString &name)
SelectionWidgetspawnNextItem (PG_Widget *parent, const PG_Point &pos)
void itemMarked (const SelectionWidget *widget)
void itemSelected (const SelectionWidget *widget, bool mouse)
- Public Member Functions inherited from SelectionItemFactory
virtual SelectionWidgetgetDefaultItem ()
virtual ~SelectionItemFactory ()

Static Public Member Functions

static bool comp (const FileInfo *i1, const FileInfo *i2)

Public Attributes

sigc::signal< void, const
ASCString & > 
sigc::signal< void, const
ASCString & > 
sigc::signal< void, const
ASCString & > 

Protected Types

typedef deallocating_vector
< FileInfo * > 

Protected Attributes

Items::iterator it

Detailed Description

Definition at line 128 of file fileselector.h.

Member Typedef Documentation

Definition at line 130 of file fileselector.h.

Constructor & Destructor Documentation

SavegameSelectionItemFactory::SavegameSelectionItemFactory ( const ASCString wildcard)
wildcardmay be several wildcards concatenated by ';'

Definition at line 283 of file fileselector.cpp.

References comp(), tfindfile::FileInfo::date, tfindfile::FileInfo::directoryLevel, tfindfile::getnextname(), tfindfile::FileInfo::location, tfindfile::FileInfo::name, and restart().

Member Function Documentation

bool SavegameSelectionItemFactory::comp ( const FileInfo i1,
const FileInfo i2 

Definition at line 308 of file fileselector.cpp.

References FileInfo::modificationTime, and FileInfo::name.

Referenced by SavegameSelectionItemFactory().

int SavegameSelectionItemFactory::getLevel ( const ASCString name)

Definition at line 319 of file fileselector.cpp.

References it.

Referenced by SavegameSelectionWindow::fileNameSelected().

void SavegameSelectionItemFactory::itemMarked ( const SelectionWidget widget)

Reimplemented from SelectionItemFactory.

Definition at line 337 of file fileselector.cpp.

References filenameMarked, and SavegameWidget::getName().

void SavegameSelectionItemFactory::itemSelected ( const SelectionWidget widget,
bool  mouse 
void SavegameSelectionItemFactory::restart ( )

Implements SelectionItemFactory.

Definition at line 314 of file fileselector.cpp.

References it.

Referenced by SavegameSelectionItemFactory().

SelectionWidget * SavegameSelectionItemFactory::spawnNextItem ( PG_Widget *  parent,
const PG_Point &  pos 

Implements SelectionItemFactory.

Definition at line 328 of file fileselector.cpp.

References it.

Member Data Documentation

sigc::signal<void,const ASCString& > SavegameSelectionItemFactory::filenameMarked

Definition at line 150 of file fileselector.h.

Referenced by itemMarked().

sigc::signal<void,const ASCString& > SavegameSelectionItemFactory::filenameSelectedKeyb
sigc::signal<void,const ASCString& > SavegameSelectionItemFactory::filenameSelectedMouse
Items::iterator SavegameSelectionItemFactory::it

Definition at line 131 of file fileselector.h.

Referenced by getLevel(), restart(), and spawnNextItem().

The documentation for this class was generated from the following files: