Commit a6d1a460 authored by Clement CHAVANCE's avatar Clement CHAVANCE

added interfaces for the library widget

also added the declaration of m_initializeDockWidget, wich will initialize
all the components of the gui.
parent 55fe9c71
/*****************************************************************************
* LibraryWidget.h: VLMC library widget header
*****************************************************************************
* Copyright (C) 2008-2009 the VLMC team
*
* Authors: Clement CHAVANCE <chavance.c@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef LIBRARYWIDGET_H
#define LIBRARYWIDGET_H
#include <QTabWidget>
#include <QListWIdget>
class LibraryWidget
{
public:
explicit LibraryWidget( QWidget *parent = 0 );
private:
QTabWidget *m_tabWidget;
};
class TabList : public QListWidget
{
TabList( QWidget *parent = 0 );
};
#endif /* !LIBRARYWIDGET_H */
......@@ -26,6 +26,8 @@ MainWindow::MainWindow( QWidget *parent ) :
QMainWindow( parent )
{
m_ui.setupUi( this );
//TODO : init all the dockable widget here
m_initializeDockWidgets();
}
void MainWindow::changeEvent( QEvent *e )
......@@ -40,6 +42,14 @@ void MainWindow::changeEvent( QEvent *e )
}
}
void MainWindow::m_initializeDockWidgets( void )
{
QDockWidget* dock = new QDockWidget( tr("library"), this );
//Create the library widget
}
//Private slots definition
void MainWindow::on_actionQuit_triggered()
{
QApplication::quit();
......
......@@ -25,6 +25,7 @@
#include <QApplication>
#include "ui_MainWindow.h"
#include "LibraryWidget.h"
class MainWindow : public QMainWindow
{
......@@ -38,7 +39,12 @@ protected:
virtual void changeEvent( QEvent *e );
private:
void m_initializeDockWidgets( void );
Ui::MainWindow m_ui;
libraryWidget* m_library;
private slots:
void on_actionQuit_triggered();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment