Back to index

scribus-ng  1.3.4.dfsg+svn20071115
bookpalette.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 "bookpalette.h"
00025 #include "bookpalette.moc"
00026 extern QPixmap loadIcon(QString nam);
00027 
00028 BookPalette::BookPalette(QWidget* parent) : ScrPaletteBase( parent, "Books", false, 0 )
00029 {
00030        PaletteLayout = new QVBoxLayout( this, 0, 0, "PaletteLayout");
00031        BView = new BookMView(this);
00032        BView->setMinimumSize(QSize(100,150));
00033        PaletteLayout->addWidget( BView );
00034        languageChange();
00035 }
00036 
00037 /*
00038  \fn void BookPalette::closeEvent(QCloseEvent *ce)
00039  \author Franz Schmid
00040  \date
00041  \brief Emits the Signal Schliessen and accepts close event. The Signal is used in ScribusMainWindow to adjust the Menues.
00042  \param ce Close Event
00043  \retval None
00044                        */
00045                       /*
00046 void BookPalette::keyPressEvent(QKeyEvent *k)
00047 {
00048        QDialog::keyPressEvent(k);
00049 }
00050 
00051 void BookPalette::closeEvent(QCloseEvent *ce)
00052 {
00053        emit Schliessen();
00054        ce->accept();
00055 }
00056 
00057 void BookPalette::reject()
00058 {
00059        emit Schliessen();
00060        QDialog::reject();
00061 }
00062 */
00063 
00064 void BookPalette::languageChange()
00065 {
00066        setCaption( tr( "Bookmarks" ) );   
00067 }