Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

bookmarkpalette.cpp

Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008                           bookpalette.cpp  -  description
00009                              -------------------
00010     begin                : Son Jan 19 2003
00011     copyright            : (C) 2003 by Franz Schmid
00012     email                : Franz.Schmid@altmuehlnet.de
00013  ***************************************************************************/
00014 
00015 /***************************************************************************
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  ***************************************************************************/
00023 
00024 #include <QEvent>
00025 
00026 #include "bookmarkpalette.h"
00027 
00028 BookPalette::BookPalette(QWidget* parent) : ScrPaletteBase( parent, "Books", false, 0 )
00029 {
00030     PaletteLayout = new QVBoxLayout( this );
00031     PaletteLayout->setMargin(0);
00032     PaletteLayout->setSpacing(0);
00033     BView = new BookMView(this);
00034     BView->setMinimumSize(QSize(100,150));
00035     PaletteLayout->addWidget( BView );
00036     languageChange();
00037 }
00038 
00039 void BookPalette::changeEvent(QEvent *e)
00040 {
00041     if (e->type() == QEvent::LanguageChange)
00042     {
00043         languageChange();
00044     }
00045     else
00046         QWidget::changeEvent(e);
00047 }
00048 
00049 void BookPalette::languageChange()
00050 {
00051     setWindowTitle( tr( "Bookmarks" ) );
00052 }
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.