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

#include <view.hpp>

List of all members.

Public Slots

void addSubView (const CSMWorld::UniversalId &id)
void abortOperation (int type)

Signals

void newGameRequest ()
void newAddonRequest ()
void loadDocumentRequest ()
void exitApplicationRequest (CSVDoc::View *view)
void editSettingsRequest ()

Public Member Functions

 View (ViewManager &viewManager, CSMDoc::Document *document, int totalViews)
 The ownership of document is not transferred to *this.
virtual ~View ()
const CSMDoc::DocumentgetDocument () const
CSMDoc::DocumentgetDocument ()
void setIndex (int viewIndex, int totalViews)
void updateDocumentState ()
void updateProgress (int current, int max, int type, int threads)
OperationsgetOperations () const
void updateEditorSetting (const QString &, const QString &)
 Function called by view manager when user preferences are updated.

Private Slots

void newView ()
void save ()
void exit ()
void verify ()
void addGlobalsSubView ()
void addGmstsSubView ()
void addSkillsSubView ()
void addClassesSubView ()
void addFactionsSubView ()
void addRacesSubView ()
void addSoundsSubView ()
void addScriptsSubView ()
void addRegionsSubView ()
void addBirthsignsSubView ()
void addSpellsSubView ()
void addCellsSubView ()
void addReferenceablesSubView ()
void addReferencesSubView ()
void addRegionMapSubView ()
void addFiltersSubView ()
void addSceneSubView ()
void addTopicsSubView ()
void addJournalsSubView ()
void addTopicInfosSubView ()
void addJournalInfosSubView ()
void toggleShowStatusBar (bool show)

Private Member Functions

 View (const View &)
Viewoperator= (const View &)
void closeEvent (QCloseEvent *event)
void setupFileMenu ()
void setupEditMenu ()
void setupViewMenu ()
void setupWorldMenu ()
void setupMechanicsMenu ()
void setupCharacterMenu ()
void setupAssetsMenu ()
void setupUi ()
void updateTitle ()
void updateActions ()
void exitApplication ()
void loadUserSettings ()
void resizeViewWidth (int width)
 User preference function.
void resizeViewHeight (int height)
 User preference function.

Private Attributes

ViewManagermViewManager
CSMDoc::DocumentmDocument
int mViewIndex
int mViewTotal
QAction * mUndo
QAction * mRedo
QAction * mSave
QAction * mVerify
QAction * mShowStatusBar
std::vector< QAction * > mEditingActions
OperationsmOperations
SubViewFactoryManager mSubViewFactory
QMainWindow mSubViewWindow

Constructor & Destructor Documentation

CSVDoc::View::View ( const View ) [private]
CSVDoc::View::View ( ViewManager viewManager,
CSMDoc::Document document,
int  totalViews 
)

The ownership of document is not transferred to *this.

CSVDoc::View::~View ( ) [virtual]

Member Function Documentation

void CSVDoc::View::abortOperation ( int  type) [slot]
void CSVDoc::View::addBirthsignsSubView ( ) [private, slot]
void CSVDoc::View::addCellsSubView ( ) [private, slot]
void CSVDoc::View::addClassesSubView ( ) [private, slot]
void CSVDoc::View::addFactionsSubView ( ) [private, slot]
void CSVDoc::View::addFiltersSubView ( ) [private, slot]
void CSVDoc::View::addGlobalsSubView ( ) [private, slot]
void CSVDoc::View::addGmstsSubView ( ) [private, slot]
void CSVDoc::View::addJournalInfosSubView ( ) [private, slot]
void CSVDoc::View::addJournalsSubView ( ) [private, slot]
void CSVDoc::View::addRacesSubView ( ) [private, slot]
void CSVDoc::View::addReferenceablesSubView ( ) [private, slot]
void CSVDoc::View::addReferencesSubView ( ) [private, slot]
void CSVDoc::View::addRegionMapSubView ( ) [private, slot]
void CSVDoc::View::addRegionsSubView ( ) [private, slot]
void CSVDoc::View::addSceneSubView ( ) [private, slot]
void CSVDoc::View::addScriptsSubView ( ) [private, slot]
void CSVDoc::View::addSkillsSubView ( ) [private, slot]
void CSVDoc::View::addSoundsSubView ( ) [private, slot]
void CSVDoc::View::addSpellsSubView ( ) [private, slot]
void CSVDoc::View::addSubView ( const CSMWorld::UniversalId id) [slot]
Todo:
add an user setting for limiting the number of sub views per top level view. Automatically open a new top level view if this number is exceeded
Todo:
if the sub view limit setting is one, the sub view title bar should be hidden and the text in the main title bar adjusted accordingly
Todo:
add an user setting to reuse sub views (on a per document basis or on a per top level view basis)
void CSVDoc::View::addTopicInfosSubView ( ) [private, slot]
void CSVDoc::View::addTopicsSubView ( ) [private, slot]
void CSVDoc::View::closeEvent ( QCloseEvent *  event) [private]
void CSVDoc::View::exit ( ) [private, slot]
void CSVDoc::View::exitApplication ( ) [private]
void CSVDoc::View::loadUserSettings ( ) [private]
void CSVDoc::View::newAddonRequest ( ) [signal]
void CSVDoc::View::newGameRequest ( ) [signal]
void CSVDoc::View::newView ( ) [private, slot]
View& CSVDoc::View::operator= ( const View ) [private]
void CSVDoc::View::resizeViewHeight ( int  height) [private]

User preference function.

void CSVDoc::View::resizeViewWidth ( int  width) [private]

User preference function.

void CSVDoc::View::save ( ) [private, slot]
void CSVDoc::View::setIndex ( int  viewIndex,
int  totalViews 
)
void CSVDoc::View::setupAssetsMenu ( ) [private]
void CSVDoc::View::setupEditMenu ( ) [private]
void CSVDoc::View::setupFileMenu ( ) [private]
void CSVDoc::View::setupUi ( ) [private]
void CSVDoc::View::setupViewMenu ( ) [private]
void CSVDoc::View::setupWorldMenu ( ) [private]
void CSVDoc::View::toggleShowStatusBar ( bool  show) [private, slot]
void CSVDoc::View::updateActions ( ) [private]
void CSVDoc::View::updateEditorSetting ( const QString &  settingName,
const QString &  settingValue 
)

Function called by view manager when user preferences are updated.

void CSVDoc::View::updateProgress ( int  current,
int  max,
int  type,
int  threads 
)
void CSVDoc::View::updateTitle ( ) [private]
void CSVDoc::View::verify ( ) [private, slot]

Member Data Documentation

std::vector<QAction *> CSVDoc::View::mEditingActions [private]
QAction* CSVDoc::View::mRedo [private]
QAction* CSVDoc::View::mSave [private]
QAction* CSVDoc::View::mShowStatusBar [private]
QMainWindow CSVDoc::View::mSubViewWindow [private]
QAction* CSVDoc::View::mUndo [private]
QAction* CSVDoc::View::mVerify [private]
int CSVDoc::View::mViewIndex [private]
int CSVDoc::View::mViewTotal [private]

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