OpenMW
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
CSVDoc::Operation Class Reference

#include <operation.hpp>

List of all members.

Signals

void abortOperation (int type)

Public Member Functions

 Operation (int type, QWidget *parent)
 ~Operation ()
void setProgress (int current, int max, int threads)
int getType () const
QHBoxLayout * getLayout () const

Private Slots

void abortOperation ()

Private Member Functions

 Operation (const Operation &)
Operationoperator= (const Operation &)
void updateLabel (int threads=-1)
void setBarColor (int type)
void initWidgets ()

Private Attributes

int mType
bool mStalling
QProgressBar * mProgressBar
QPushButton * mAbortButton
QHBoxLayout * mLayout

Constructor & Destructor Documentation

CSVDoc::Operation::Operation ( const Operation ) [private]
CSVDoc::Operation::Operation ( int  type,
QWidget *  parent 
)
Todo:
Add a cancel button or a pop up menu with a cancel item
Todo:
assign different progress bar colours to allow the user to distinguish easily between operation types

Member Function Documentation

void CSVDoc::Operation::abortOperation ( int  type) [signal]
void CSVDoc::Operation::abortOperation ( ) [private, slot]
QHBoxLayout * CSVDoc::Operation::getLayout ( ) const
void CSVDoc::Operation::initWidgets ( ) [private]
Operation& CSVDoc::Operation::operator= ( const Operation ) [private]
void CSVDoc::Operation::setBarColor ( int  type) [private]
void CSVDoc::Operation::setProgress ( int  current,
int  max,
int  threads 
)
void CSVDoc::Operation::updateLabel ( int  threads = -1) [private]

Member Data Documentation

QPushButton* CSVDoc::Operation::mAbortButton [private]
QHBoxLayout* CSVDoc::Operation::mLayout [private]
QProgressBar* CSVDoc::Operation::mProgressBar [private]
int CSVDoc::Operation::mType [private]

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