Logo Search packages:      
Sourcecode: qcomicbook version File versions  Download package

bookmarkmanager.h

Go to the documentation of this file.
/*
 * This file is a part of QComicBook.
 *
 * Copyright (C) 2005-2006 Pawel Stolowski <yogin@linux.bydg.org>
 *
 * QComicBook is free software; you can redestribute it and/or modify it
 * under terms of GNU General Public License by Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY. See GPL for more details.
 */

/*! \file bookmarkmanager.h */

#ifndef __BOOKMARKMANAGER_H
#define __BOOKMARKMANAGER_H

#include <qwidget.h>
#include <qptrlist.h>

class QListView;
class QListViewItem;
class QPushButton;

namespace QComicBook
{
      class Bookmarks;
      class Bookmark;

      class BookmarkManager: public QWidget
      {
            Q_OBJECT

            private:
                  QListView *lview;
                  QPushButton *b_selinv;
                  QPushButton *b_remsel;
                  Bookmarks *bookmarks;
                  QPtrList<QListViewItem> invalid; //!<the list of invalid bookmarks

                  void initBookmarkView();

            protected slots:
                  void selectionChanged();

            public slots:
                  void removeSelected();
                  void selectInvalid();
                  void selectAll();
                  void selectNone();

            public:
                  BookmarkManager(QWidget *parent, Bookmarks *b);
                  ~BookmarkManager();
      };
}

#endif


Generated by  Doxygen 1.6.0   Back to index