lyx_mirror/src/frontends/qt2/QCitation.h
Angus Leeming 1e3d2fce7f No longer pass Controller & or Dialogs & to the View c-tors.
GUI now contains a controller rather than derives from a controller.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4942 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-12 14:28:43 +00:00

71 lines
1.1 KiB
C++

// -*- C++ -*-
/**
* \file QCitation.h
* Copyright 2001 the LyX Team
* Read the file COPYING
*
* \author Angus Leeming <a.leeming@ic.ac.uk>
* \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
*/
#ifndef QCITATION_H
#define QCITATION_H
#ifdef __GNUG__
#pragma interface
#endif
class QListBox;
#include "Qt2Base.h"
class ControlCitation;
class QCitationDialog;
class QCitation : public Qt2CB<ControlCitation, Qt2DB<QCitationDialog> >
{
friend class QCitationDialog;
public:
///
QCitation();
private:
///
enum State {
///
ON,
///
OFF
};
/// Set the Params variable for the Controller.
virtual void apply();
/// Build the dialog.
virtual void build_dialog();
/// Hide the dialog.
virtual void hide();
/// Update dialog before/whilst showing it.
virtual void update_contents();
/// fill the styles combo
void fillStyles();
/// set the styles combo
void updateStyle();
void updateBrowser(QListBox *, std::vector<string> const &) const;
///
void setBibButtons(State) const;
///
void setCiteButtons(State) const;
///
std::vector<string> citekeys;
///
std::vector<string> bibkeys;
};
#endif // QCITATION_H