OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Private Slots | Private Member Functions | List of all members
mvd::I18nMainWindow Class Referenceabstract

#include <mvdI18nMainWindow.h>

+ Inheritance diagram for mvd::I18nMainWindow:
+ Collaboration diagram for mvd::I18nMainWindow:

Public Types

enum  DockLayout {
  DOCK_LAYOUT_NONE = 0,
  DOCK_LAYOUT_FLOATING = 1,
  DOCK_LAYOUT_SCROLLABLE = 2
}
 
typedef QFlags< DockLayoutDockLayoutFlags
 

Public Member Functions

void Initialize ()
 
 ~I18nMainWindow () override
 

Protected Slots

virtual void OnAboutToChangeModel (const AbstractModel *)=0
 
virtual void OnModelChanged (AbstractModel *)=0
 

Protected Member Functions

template<typename TWidget , typename TDockWidget >
TDockWidget * AddDockWidget (const QString &dockName, const QString &dockTitle, Qt::DockWidgetArea dockArea, DockLayoutFlags flags=DOCK_LAYOUT_NONE)
 
template<typename TWidget , typename TController , typename TDockWidget >
TDockWidget * AddDockWidget (const QString &dockName, const QString &dockTitle, Qt::DockWidgetArea dockArea, DockLayoutFlags flags=DOCK_LAYOUT_NONE)
 
QDockWidget * AddWidgetToDock (QWidget *widget, const QString &dockName, const QString &dockTitle, Qt::DockWidgetArea dockArea, DockLayoutFlags flags=DOCK_LAYOUT_NONE)
 
bool BuildGDALOverviews (const QStringList &filenames)
 
void closeEvent (QCloseEvent *event) override
 
const AbstractModelControllerGetController (const QDockWidget *) const
 
AbstractModelControllerGetController (const QDockWidget *)
 
 I18nMainWindow (QWidget *Parent=0, Qt::WindowFlags flags=0)
 
VectorImageModelImportImage (const QString &filename, int width, int height)
 
bool RestoreLayout (int version)
 
void SaveLayout (int version) const
 
void SetControllerModel (QDockWidget *dock, AbstractModel *model)
 

Private Slots

virtual void on_action_About_triggered ()
 
virtual void on_action_Documentation_triggered ()
 
void on_action_Quit_triggered ()
 

Private Member Functions

QObject * Import (AbstractWorker *)
 
virtual void virtual_ConnectUI ()=0
 
virtual void virtual_InitializeUI ()
 
virtual void virtual_SetupUI ()=0
 

Detailed Description

Main-window widget base for the i18n application.

Definition at line 80 of file mvdI18nMainWindow.h.

Member Typedef Documentation

Definition at line 100 of file mvdI18nMainWindow.h.

Member Enumeration Documentation

Enumerator
DOCK_LAYOUT_NONE 
DOCK_LAYOUT_FLOATING 
DOCK_LAYOUT_SCROLLABLE 

Definition at line 93 of file mvdI18nMainWindow.h.

Constructor & Destructor Documentation

mvd::I18nMainWindow::~I18nMainWindow ( )
override

Destructor.

mvd::I18nMainWindow::I18nMainWindow ( QWidget *  Parent = 0,
Qt::WindowFlags  flags = 0 
)
protected

Constructor.

Member Function Documentation

template<typename TWidget , typename TDockWidget >
TDockWidget * mvd::I18nMainWindow::AddDockWidget ( const QString &  dockName,
const QString &  dockTitle,
Qt::DockWidgetArea  dockArea,
DockLayoutFlags  flags = DOCK_LAYOUT_NONE 
)
inlineprotected

Definition at line 339 of file mvdI18nMainWindow.h.

template<typename TWidget , typename TController , typename TDockWidget >
TDockWidget * mvd::I18nMainWindow::AddDockWidget ( const QString &  dockName,
const QString &  dockTitle,
Qt::DockWidgetArea  dockArea,
DockLayoutFlags  flags = DOCK_LAYOUT_NONE 
)
inlineprotected

Definition at line 363 of file mvdI18nMainWindow.h.

QDockWidget* mvd::I18nMainWindow::AddWidgetToDock ( QWidget *  widget,
const QString &  dockName,
const QString &  dockTitle,
Qt::DockWidgetArea  dockArea,
DockLayoutFlags  flags = DOCK_LAYOUT_NONE 
)
protected
bool mvd::I18nMainWindow::BuildGDALOverviews ( const QStringList &  filenames)
protected
void mvd::I18nMainWindow::closeEvent ( QCloseEvent *  event)
overrideprotected
const AbstractModelController * mvd::I18nMainWindow::GetController ( const QDockWidget *  dock) const
inlineprotected

Definition at line 300 of file mvdI18nMainWindow.h.

AbstractModelController * mvd::I18nMainWindow::GetController ( const QDockWidget *  dock)
inlineprotected

Definition at line 311 of file mvdI18nMainWindow.h.

QObject* mvd::I18nMainWindow::Import ( AbstractWorker )
private
VectorImageModel* mvd::I18nMainWindow::ImportImage ( const QString &  filename,
int  width,
int  height 
)
protected
void mvd::I18nMainWindow::Initialize ( )
virtual void mvd::I18nMainWindow::on_action_About_triggered ( )
privatevirtualslot

Qt auto-connected slot which is called when Help/About menu action is activated.

virtual void mvd::I18nMainWindow::on_action_Documentation_triggered ( )
privatevirtualslot
void mvd::I18nMainWindow::on_action_Quit_triggered ( )
privateslot

Qt auto-connected slot which is called when File/Quit menu action is activated.

virtual void mvd::I18nMainWindow::OnAboutToChangeModel ( const AbstractModel )
protectedpure virtualslot
virtual void mvd::I18nMainWindow::OnModelChanged ( AbstractModel )
protectedpure virtualslot
bool mvd::I18nMainWindow::RestoreLayout ( int  version)
protected
void mvd::I18nMainWindow::SaveLayout ( int  version) const
protected
void mvd::I18nMainWindow::SetControllerModel ( QDockWidget *  dock,
AbstractModel model 
)
inlineprotected

Assign model to the controller which is child of given dock-widget.

Parameters
dockThe dock-widget which is parent of the controller to assign model to.
modelThe model to assign to the controller.

Definition at line 322 of file mvdI18nMainWindow.h.

References mvd::AbstractModelController::SetModel().

virtual void mvd::I18nMainWindow::virtual_ConnectUI ( )
privatepure virtual

Implemented in mvd::MainWindow, and mvd::MaplaMainWindow.

virtual void mvd::I18nMainWindow::virtual_InitializeUI ( )
privatevirtual

Reimplemented in mvd::MainWindow.

virtual void mvd::I18nMainWindow::virtual_SetupUI ( )
privatepure virtual

Implemented in mvd::MainWindow, and mvd::MaplaMainWindow.


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