GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
find_files_model Class Reference

#include "find-files-model.h"

Inheritance diagram for find_files_model:
Inheritance graph
[legend]
Collaboration diagram for find_files_model:
Collaboration graph
[legend]

Public Member Functions

 find_files_model (QObject *p=0)
 ~find_files_model ()
void addFile (const QFileInfo &info)
void clear ()
int columnCount (const QModelIndex &p=QModelIndex()) const
QVariant data (const QModelIndex &idx, int role) const
QIcon fileIcon (const QModelIndex &p) const
QFileInfo fileInfo (const QModelIndex &p) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
int rowCount (const QModelIndex &p=QModelIndex()) const
void sort (int column, Qt::SortOrder order=Qt::AscendingOrder)

Private Attributes

QStringList _columnNames
QList< QFileInfo > _files
int _sortorder

Detailed Description

Definition at line 32 of file find-files-model.h.

Constructor & Destructor Documentation

find_files_model::find_files_model ( QObject p = 0)

Definition at line 79 of file find-files-model.cc.

References _columnNames, and _sortorder.

find_files_model::~find_files_model ( )

Definition at line 87 of file find-files-model.cc.

Member Function Documentation

void find_files_model::addFile ( const QFileInfo &  info)

Definition at line 102 of file find-files-model.cc.

References _files, and _sortorder.

Referenced by find_files_dialog::look_for_files().

void find_files_model::clear ( void  )

Definition at line 92 of file find-files-model.cc.

References _files.

Referenced by find_files_dialog::start_find().

int find_files_model::columnCount ( const QModelIndex &  p = QModelIndex ()) const

Definition at line 126 of file find-files-model.cc.

References _columnNames.

QVariant find_files_model::data ( const QModelIndex &  idx,
int  role 
) const

Definition at line 132 of file find-files-model.cc.

References _files, and fileIcon().

QIcon find_files_model::fileIcon ( const QModelIndex &  p) const

Definition at line 211 of file find-files-model.cc.

References _files.

Referenced by data().

QFileInfo find_files_model::fileInfo ( const QModelIndex &  p) const

Definition at line 201 of file find-files-model.cc.

References _files.

Referenced by find_files_dialog::item_double_clicked().

QVariant find_files_model::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Definition at line 170 of file find-files-model.cc.

References _columnNames.

int find_files_model::rowCount ( const QModelIndex &  p = QModelIndex ()) const

Definition at line 120 of file find-files-model.cc.

References _files.

Referenced by find_files_dialog::stop_find().

void find_files_model::sort ( int  column,
Qt::SortOrder  order = Qt::AscendingOrder 
)

Definition at line 180 of file find-files-model.cc.

References _files, and _sortorder.

Member Data Documentation

QStringList find_files_model::_columnNames
private

Definition at line 59 of file find-files-model.h.

Referenced by columnCount(), find_files_model(), and headerData().

QList<QFileInfo> find_files_model::_files
private

Definition at line 58 of file find-files-model.h.

Referenced by addFile(), clear(), data(), fileIcon(), fileInfo(), rowCount(), and sort().

int find_files_model::_sortorder
private

Definition at line 60 of file find-files-model.h.

Referenced by addFile(), find_files_model(), and sort().


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