Commit 17ad0df6 authored by Pino Toscano's avatar Pino Toscano

New sidebar for okular.

The old sidebar had many problems and limitations, usability issues as well.
This new sidebar tries to simplify and solve many of these issues (like the navigability with the keyboard), with a better looking.
Of course, some glitches are still there, but easily solvable.

svn path=/trunk/KDE/kdegraphics/okular/; revision=697060
parent 5bfd0d5b
......@@ -128,6 +128,7 @@ set(okularpart_SRCS
This diff is collapsed.
......@@ -30,8 +30,6 @@
class QAction;
class QWidget;
class QSplitter;
class QToolBox;
class KUrl;
class KConfigGroup;
......@@ -51,6 +49,7 @@ class PageViewTopMessage;
class PresentationWidget;
class ProgressWidget;
class SearchWidget;
class Sidebar;
class TOC;
class MiniBar;
......@@ -146,14 +145,12 @@ class Part : public KParts::ReadOnlyPart, public Okular::DocumentObserver, publi
void slotReload();
void close();
void cannotQuit();
void splitterMoved( int pos, int index );
void slotShowFindBar();
void slotHideFindBar();
void setMimeTypes(KIO::Job *job);
void readMimeType(KIO::Job *job, const QString &mime);
void loadCancelled(const QString &reason);
void setWindowTitleFromDocument();
void saveSplitterSize();
// can be connected to widget elements
void updateViewActions();
void updateBookmarksActions();
......@@ -182,9 +179,7 @@ class Part : public KParts::ReadOnlyPart, public Okular::DocumentObserver, publi
QString m_temporaryLocalFile;
// main widgets
QSplitter *m_splitter;
QWidget *m_leftPanel;
QToolBox *m_toolBox;
Sidebar *m_sidebar;
SearchWidget *m_searchWidget;
FindBar * m_findBar;
PageViewTopMessage * m_topMessage;
This diff is collapsed.
* Copyright (C) 2007 by Pino Toscano <> *
* *
* 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. *
#ifndef _SIDEBAR_H_
#define _SIDEBAR_H_
#include <qwidget.h>
class QIcon;
class QListWidgetItem;
class Sidebar : public QWidget
Sidebar( QWidget *parent = 0 );
int addItem( QWidget *widget, const QIcon &icon, const QString &text );
void setMainWidget( QWidget *widget );
void setBottomWidget( QWidget *widget );
void setItemEnabled( int index, bool enabled );
bool isItemEnabled( int index ) const;
void setCurrentIndex( int index );
int currentIndex() const;
void setSidebarVisibility( bool visible );
private slots:
void itemClicked( QListWidgetItem *item );
void splitterMoved( int pos, int index );
void saveSplitterSize() const;
// private storage
class Private;
Private *d;
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