2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiBibtex.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUIBIBTEX_H
|
|
|
|
#define GUIBIBTEX_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
#include "GuiDialog.h"
|
2007-08-31 22:16:11 +00:00
|
|
|
#include "ControlBibtex.h"
|
2007-09-05 20:33:29 +00:00
|
|
|
#include "ButtonController.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_BibtexUi.h"
|
|
|
|
#include "ui_BibtexAddUi.h"
|
2007-04-25 08:42:22 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
class GuiBibtexAddDialog : public QDialog, public Ui::BibtexAddUi
|
2007-04-25 08:42:22 +00:00
|
|
|
{
|
|
|
|
public:
|
2007-09-05 20:33:29 +00:00
|
|
|
GuiBibtexAddDialog(QWidget * parent) : QDialog(parent)
|
2007-04-25 08:42:22 +00:00
|
|
|
{
|
2007-09-05 20:33:29 +00:00
|
|
|
Ui::BibtexAddUi::setupUi(this);
|
|
|
|
QDialog::setModal(true);
|
2007-04-25 08:42:22 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
class GuiBibtexDialog : public GuiDialog, public Ui::BibtexUi
|
|
|
|
{
|
2007-04-25 08:42:22 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2007-09-05 20:33:29 +00:00
|
|
|
GuiBibtexDialog(LyXView & lv);
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void change_adaptor();
|
|
|
|
void browsePressed();
|
|
|
|
void browseBibPressed();
|
|
|
|
void addPressed();
|
|
|
|
void addDatabase();
|
|
|
|
void deletePressed();
|
|
|
|
void databaseChanged();
|
|
|
|
void availableChanged();
|
2007-04-25 08:42:22 +00:00
|
|
|
void bibEDChanged();
|
|
|
|
|
|
|
|
private:
|
2007-09-05 20:33:29 +00:00
|
|
|
void closeEvent(QCloseEvent * e);
|
2007-04-25 08:42:22 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
private:
|
2007-08-31 22:16:11 +00:00
|
|
|
/// parent controller
|
2007-09-05 20:33:29 +00:00
|
|
|
ControlBibtex & controller() const;
|
|
|
|
///
|
2006-03-05 17:24:44 +00:00
|
|
|
virtual bool isValid();
|
|
|
|
/// Apply changes
|
2007-09-03 20:28:26 +00:00
|
|
|
virtual void applyView();
|
2006-03-05 17:24:44 +00:00
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
2007-09-05 20:33:29 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
GuiBibtexAddDialog * add_;
|
|
|
|
///
|
|
|
|
ButtonController add_bc_;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUIBIBTEX_H
|