2001-08-28 01:27:35 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QInclude.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QINCLUDE_H
|
|
|
|
#define QINCLUDE_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "Qt2Base.h"
|
|
|
|
|
|
|
|
class ControlInclude;
|
|
|
|
class QIncludeDialog;
|
|
|
|
|
|
|
|
///
|
|
|
|
class QInclude
|
2002-03-21 21:21:28 +00:00
|
|
|
: public Qt2CB<ControlInclude, Qt2DB<QIncludeDialog> >
|
2001-08-28 01:27:35 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
friend class QIncludeDialog;
|
|
|
|
///
|
2002-08-12 14:28:43 +00:00
|
|
|
QInclude();
|
2001-08-28 01:27:35 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool isValid();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-28 01:27:35 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
|
|
|
/// load the file
|
2002-03-21 21:21:28 +00:00
|
|
|
void load();
|
2001-08-28 01:27:35 +00:00
|
|
|
|
|
|
|
/// browse for a file
|
2002-03-21 21:21:28 +00:00
|
|
|
void browse();
|
2001-08-28 01:27:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QINCLUDE_H
|