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

#include <fileselector.h>

Inheritance diagram for FileSelectionItemFactory:
Inheritance graph
[legend]

Public Member Functions

 FileSelectionItemFactory (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 & > 
filenameSelectedMouse
 
sigc::signal< void, const
ASCString & > 
filenameSelectedKeyb
 
sigc::signal< void, const
ASCString & > 
filenameMarked
 

Protected Types

typedef deallocating_vector
< FileInfo * > 
Items
 

Protected Attributes

Items::iterator it
 

Detailed Description

Definition at line 79 of file fileselector.h.

Member Typedef Documentation

Definition at line 81 of file fileselector.h.

Constructor & Destructor Documentation

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

Definition at line 145 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 FileSelectionItemFactory::comp ( const FileInfo i1,
const FileInfo i2 
)
static

Definition at line 170 of file fileselector.cpp.

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

Referenced by FileSelectionItemFactory().

int FileSelectionItemFactory::getLevel ( const ASCString name)

Definition at line 181 of file fileselector.cpp.

References it.

Referenced by FileSelectionWindow::fileNameSelected().

void FileSelectionItemFactory::itemMarked ( const SelectionWidget widget)
virtual

Reimplemented from SelectionItemFactory.

Definition at line 199 of file fileselector.cpp.

References filenameMarked, and FileWidget::getName().

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

Implements SelectionItemFactory.

Definition at line 176 of file fileselector.cpp.

References it.

Referenced by FileSelectionItemFactory().

SelectionWidget * FileSelectionItemFactory::spawnNextItem ( PG_Widget *  parent,
const PG_Point &  pos 
)
virtual

Implements SelectionItemFactory.

Definition at line 190 of file fileselector.cpp.

References it.

Member Data Documentation

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

Definition at line 101 of file fileselector.h.

Referenced by itemMarked(), and StartMultiplayerGame::userHandler().

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

Definition at line 82 of file fileselector.h.

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


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