lyx_mirror/src/frontends/qt4/GuiBibtex.h
André Pönitz c9ea6e6eef the fun begins....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20077 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-05 20:33:29 +00:00

76 lines
1.3 KiB
C++

// -*- C++ -*-
/**
* \file GuiBibtex.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GUIBIBTEX_H
#define GUIBIBTEX_H
#include "GuiDialog.h"
#include "ControlBibtex.h"
#include "ButtonController.h"
#include "ui_BibtexUi.h"
#include "ui_BibtexAddUi.h"
namespace lyx {
namespace frontend {
class GuiBibtexAddDialog : public QDialog, public Ui::BibtexAddUi
{
public:
GuiBibtexAddDialog(QWidget * parent) : QDialog(parent)
{
Ui::BibtexAddUi::setupUi(this);
QDialog::setModal(true);
}
};
class GuiBibtexDialog : public GuiDialog, public Ui::BibtexUi
{
Q_OBJECT
public:
GuiBibtexDialog(LyXView & lv);
private Q_SLOTS:
void change_adaptor();
void browsePressed();
void browseBibPressed();
void addPressed();
void addDatabase();
void deletePressed();
void databaseChanged();
void availableChanged();
void bibEDChanged();
private:
void closeEvent(QCloseEvent * e);
private:
/// parent controller
ControlBibtex & controller() const;
///
virtual bool isValid();
/// Apply changes
virtual void applyView();
/// update
virtual void update_contents();
///
GuiBibtexAddDialog * add_;
///
ButtonController add_bc_;
};
} // namespace frontend
} // namespace lyx
#endif // GUIBIBTEX_H