lyx_mirror/src/frontends/qt4/QToc.h
Abdelrazak Younes 5a4d33d97e Add outlining functionality to the Qt4 TOC dialog.
The Toc dialog is not finished yet, there's some clean-up to do especially in select_adapdator which doesn't seem to work. This makes lyx crash when clicking on the Up, Down, In or Out buttons.

    * frontends/qt4/QTocDialog.[Ch]: add automatic slots

    * frontends/qt4/QTocDialog.[Ch]: add "enableButtons(bool)"

    * frontends/qt4/ui/QTocUi.ui: add pushbuttons

    * frontends/qt4/QToc.[Ch]: add move* methods.

The following Qt4 equivalent changes to revision r13521 are not done yet:
    * frontends/qt2/QToc.[Ch]: add move* method.
    (QToc::updateToc):
    (QToc::select): add code for TOC window positioning, and
    outlining methods



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13530 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-29 16:57:47 +00:00

64 lines
1.0 KiB
C++

// -*- C++ -*-
/**
* \file QToc.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
* \author Kalle Dalheimer
* \author Abdelrazak Younes
*
* Full author contact details are available in file CREDITS.
*/
#ifndef QTOC_H
#define QTOC_H
#include "QDialogView.h"
#include "toc.h"
namespace lyx {
namespace frontend {
class ControlToc;
class QTocDialog;
//template<class W>
class QToc :
public QController<ControlToc, QView<QTocDialog> >
{
public:
friend class QTocDialog;
QToc(Dialog &);
/// return the toc list
lyx::toc::Toc & get_toclist() { return toclist;}
void moveUp();
void moveDown();
void moveIn();
void moveOut();
private:
/// select an entry
void select(std::string const & text);
virtual void apply() {}
/// update dialog
virtual void update_contents();
/// build dialog
virtual void build_dialog();
/// the toc list
lyx::toc::Toc toclist;
};
} // namespace frontend
} // namespace lyx
#endif // QTOC_H