NCL Composer  0.1.5
 All Classes Functions Variables Pages
composer::gui::ComposerMainWindow Class Reference

The main Window of NCL Composer. More...

#include <ComposerMainWindow.h>

Inheritance diagram for composer::gui::ComposerMainWindow:
Collaboration diagram for composer::gui::ComposerMainWindow:

Public Slots

void errorDialog (QString)
 
void addPluginWidget (IPluginFactory *fac, IPlugin *plugin, Project *project, int n)
 Add a plugin Widget an link it to the given project. More...
 
void onOpenProjectTab (QString location)
 Called when a new tab is open. More...
 
void saveCurrentProject ()
 Save the current project.
 
void saveAsCurrentProject ()
 Save the current project.
 
void openProject ()
 Called by the user when he/she wants to open an existent project.
 
void checkTemporaryFileLastModified (QString filename)
 
bool removeTemporaryFile (QString location)
 Remove the temporary file related to location. More...
 
bool showHelp ()
 Show the NCL Composer Help.
 
void undo ()
 
void redo ()
 
void openProjects (const QStringList &projects)
 

Signals

void writeSettings ()
 Send this signal when must be writed the current settings. More...
 

Public Member Functions

 ComposerMainWindow (QWidget *parent=0)
 Constructs the Composer Main Window with the given parent. More...
 
void init (const QApplication &app)
 You should call this method to initialize the NCL Composer Main Window and show the SplashScreen. More...
 

Protected Slots

void slotLanguageChanged (QAction *action)
 This slot is called by the language menu actions.
 
void saveLoadPluginData (int)
 TODO.
 

Protected Member Functions

void changeEvent (QEvent *)
 This event is called, when a new translator is loaded or the system language is changed.
 
virtual void keyPressEvent (QKeyEvent *event)
 

Detailed Description

The main Window of NCL Composer.

This class is the main window of NCL Composer.

Definition at line 90 of file ComposerMainWindow.h.

Constructor & Destructor Documentation

composer::gui::ComposerMainWindow::ComposerMainWindow ( QWidget *  parent = 0)
explicit

Constructs the Composer Main Window with the given parent.

Parameters
parentThe parent of the Composer Main Window.

Definition at line 38 of file ComposerMainWindow.cpp.

Member Function Documentation

void composer::gui::ComposerMainWindow::addPluginWidget ( IPluginFactory fac,
IPlugin plugin,
Project *  project,
int  n 
)
slot

Add a plugin Widget an link it to the given project.

Parameters
fac
plugin
doc
n

Definition at line 426 of file ComposerMainWindow.cpp.

Here is the call graph for this function:

void composer::gui::ComposerMainWindow::checkTemporaryFileLastModified ( QString  filename)
slot
Todo:
Move this function from here!

Definition at line 1735 of file ComposerMainWindow.cpp.

Here is the caller graph for this function:

void composer::gui::ComposerMainWindow::errorDialog ( QString  message)
slot
Parameters
QString

Definition at line 874 of file ComposerMainWindow.cpp.

void composer::gui::ComposerMainWindow::init ( const QApplication &  app)

You should call this method to initialize the NCL Composer Main Window and show the SplashScreen.

Parameters
appQApplication instance

Definition at line 69 of file ComposerMainWindow.cpp.

Here is the call graph for this function:

void composer::gui::ComposerMainWindow::onOpenProjectTab ( QString  location)
slot

Called when a new tab is open.

Parameters
location

Definition at line 693 of file ComposerMainWindow.cpp.

bool composer::gui::ComposerMainWindow::removeTemporaryFile ( QString  location)
slot

Remove the temporary file related to location.

Todo:
Move this function from here!

Definition at line 1764 of file ComposerMainWindow.cpp.

void composer::gui::ComposerMainWindow::writeSettings ( )
signal

Send this signal when must be writed the current settings.

Deprecated:

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