2001-03-29 18:58:47 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
|
|
* \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
|
|
|
|
*/
|
2001-03-16 17:20:06 +00:00
|
|
|
|
|
|
|
#ifndef FORMCITATION_H
|
|
|
|
#define FORMCITATION_H
|
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
2001-03-16 17:20:06 +00:00
|
|
|
|
|
|
|
class QListBox;
|
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
#include "Qt2Base.h"
|
|
|
|
#undef emit
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
/** This class provides a Qt2 implementation of the Citation Dialog.
|
|
|
|
@author Kalle Dalheimer
|
|
|
|
*/
|
|
|
|
class ControlCitation;
|
|
|
|
class FormCitationDialogImpl;
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
class FormCitation : public Qt2CB<ControlCitation, Qt2DB<FormCitationDialogImpl> > {
|
2001-03-29 21:17:17 +00:00
|
|
|
friend class FormCitationDialogImpl;
|
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
FormCitation(ControlCitation &);
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
private:
|
|
|
|
///
|
|
|
|
enum State {
|
2001-03-16 17:20:06 +00:00
|
|
|
///
|
2001-03-29 18:58:47 +00:00
|
|
|
ON,
|
2001-03-16 17:20:06 +00:00
|
|
|
///
|
2001-03-29 18:58:47 +00:00
|
|
|
OFF
|
|
|
|
};
|
|
|
|
|
|
|
|
/// Set the Params variable for the Controller.
|
|
|
|
virtual void apply();
|
|
|
|
/// Build the dialog.
|
|
|
|
virtual void build();
|
|
|
|
/// Hide the dialog.
|
|
|
|
virtual void hide();
|
|
|
|
/// Update dialog before/whilst showing it.
|
|
|
|
virtual void update();
|
|
|
|
// /// Filter the inputs on callback from xforms
|
|
|
|
// virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
|
|
|
|
void updateBrowser(QListBox*, std::vector<string> const &) const;
|
|
|
|
///
|
|
|
|
void setBibButtons(State) const;
|
|
|
|
///
|
|
|
|
void setCiteButtons(State) const;
|
|
|
|
|
|
|
|
///
|
|
|
|
std::vector<string> citekeys;
|
|
|
|
///
|
|
|
|
std::vector<string> bibkeys;
|
2001-03-16 17:20:06 +00:00
|
|
|
};
|
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
#endif // FORMCITATION_H
|