mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-23 08:39:07 +00:00
4ce743a0a7
* src/LyXAction.cpp: listing-insert action * src/insets/Inset.h,cpp: LISTINGS_CODE * src/insets/InsetInclude.cpp: handle \lstinputlisting * src/insets/InsetListings.h,cpp: new listings inset * src/insets/InsetListingsParams.h,cpp: parameters from listings package * src/insets/InsetCommandParams.h,cpp: handle lstinputlisting option * src/Bidi.cpp: handle LISTINGS_CODE * src/frontends/qt4/ui/TextLayoutUi.ui: update UI * src/frontends/qt4/ui/ListingsUi.ui: new dialog * src/frontends/qt4/ui/IncludeUi.ui: update UI * src/frontends/qt4/QInclude.h,cpp: add lstinputlisting * src/frontends/qt4/QDocument.h,cpp: add textedit for preamble listings_params * src/frontends/qt4/QListings.h,cpp: new listings inset * src/frontends/qt4/Dialogs.cpp: new listings dialog * src/frontends/controllers/ControlInclude.h,cpp: add lstinputlisting * src/frontends/controllers/ControlListings.h,cpp: new listings inset * src/LyXFunc.cpp: handle LISTING_CODE * src/Paragraph.cpp: handle LISTING_CODE * src/factory.cpp: new listings inset * src/CutAndPaste.cpp: handle LISTINGS_CODE * src/LaTeXFeatures.cpp: require listings * src/Text3.cpp: Handle LISTINGS_CODE * src/lfuns.h: add LFUN_LISTING_INSERT * src/Buffer.cpp: change lyx file format to 269 * src/BufferParams.h,cpp: add listings_params to preamble * lib/lyx2lyx/LyX.py: lyx2lyx * lib/lyx2lyx/lyx_1_5.py: lyx2lyx * lib/ui/stdmenus.inc: new menu item (no shortcut!) * src/insets/Makefile.am: update autotools * src/frontends/controllers/Makefile.am * src/frontends/qt4/Makefile.dialogs * src/frontends/qt4/Makefile.am * po/POTFILES.in: a few more translatable files. * development/scons/scons_manifest.py: scons build system * development/FORMAT: document format changes git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18243 a592a061-630c-0410-9148-cb99ea01b6c8
78 lines
1.3 KiB
C++
78 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file QInclude.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 QINCLUDE_H
|
|
#define QINCLUDE_H
|
|
|
|
#include "QDialogView.h"
|
|
|
|
#include "ui/IncludeUi.h"
|
|
|
|
#include <QDialog>
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class QInclude;
|
|
|
|
class QIncludeDialog : public QDialog, public Ui::QIncludeUi {
|
|
Q_OBJECT
|
|
public:
|
|
QIncludeDialog(QInclude * form);
|
|
|
|
void updateLists();
|
|
|
|
virtual void show();
|
|
protected Q_SLOTS:
|
|
virtual void change_adaptor();
|
|
void validate_listings_params();
|
|
virtual void loadClicked();
|
|
virtual void browseClicked();
|
|
virtual void typeChanged(int v);
|
|
protected:
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
private:
|
|
QInclude * form_;
|
|
};
|
|
|
|
|
|
class ControlInclude;
|
|
|
|
///
|
|
class QInclude : public QController<ControlInclude, QView<QIncludeDialog> >
|
|
{
|
|
public:
|
|
///
|
|
friend class QIncludeDialog;
|
|
///
|
|
QInclude(Dialog &);
|
|
protected:
|
|
virtual bool isValid();
|
|
private:
|
|
/// Apply changes
|
|
virtual void apply();
|
|
/// update
|
|
virtual void update_contents();
|
|
/// build the dialog
|
|
virtual void build_dialog();
|
|
|
|
/// load the file
|
|
void load();
|
|
|
|
/// browse for a file
|
|
void browse();
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // QINCLUDE_H
|