2001-06-14 08:20:41 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-25 14:26:13 +00:00
|
|
|
/**
|
|
|
|
* \file GTabularCreate.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-05-12 20:13:52 +00:00
|
|
|
*
|
2002-09-25 14:26:13 +00:00
|
|
|
* \author Michael Koziarski
|
2001-05-12 20:13:52 +00:00
|
|
|
*
|
2002-09-25 14:26:13 +00:00
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
*/
|
2001-05-12 20:13:52 +00:00
|
|
|
|
2002-03-31 23:17:11 +00:00
|
|
|
#ifndef GTABULARCREATE_H
|
|
|
|
#define GTABULARCREATE_H
|
2001-05-12 20:13:52 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "ControlTabularCreate.h"
|
|
|
|
#include "GnomeBase.h"
|
|
|
|
|
|
|
|
namespace Gtk {
|
2002-06-02 04:15:33 +00:00
|
|
|
class SpinButton;
|
|
|
|
class Button;
|
2001-05-12 20:13:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class implements the dialog to insert/modify urls.
|
|
|
|
*/
|
2002-09-26 08:57:43 +00:00
|
|
|
class GTabularCreate : public GnomeCB<ControlTabularCreate> {
|
2001-05-12 20:13:52 +00:00
|
|
|
public:
|
|
|
|
///
|
2002-03-31 23:17:11 +00:00
|
|
|
GTabularCreate(ControlTabularCreate & c);
|
2001-05-12 20:13:52 +00:00
|
|
|
///
|
2002-03-31 23:17:11 +00:00
|
|
|
~GTabularCreate();
|
2001-05-12 20:13:52 +00:00
|
|
|
|
|
|
|
void apply();
|
2002-03-27 10:07:57 +00:00
|
|
|
|
2001-05-12 20:13:52 +00:00
|
|
|
private:
|
|
|
|
/// Build the dialog
|
|
|
|
void build();
|
|
|
|
|
|
|
|
/// Returns true if the dialog input is in a valid state.
|
|
|
|
bool validate() const;
|
|
|
|
void update();
|
|
|
|
|
|
|
|
void OKClicked() { OKButton(); }
|
|
|
|
void CancelClicked() { CancelButton(); }
|
|
|
|
void ApplyClicked() { ApplyButton(); }
|
|
|
|
|
2002-01-16 12:30:17 +00:00
|
|
|
/// generated by accessors.py
|
2001-05-12 20:13:52 +00:00
|
|
|
Gtk::Button * ok_btn() const;
|
2002-01-16 12:30:17 +00:00
|
|
|
/// generated by accessors.py
|
2001-05-12 20:13:52 +00:00
|
|
|
Gtk::Button * apply_btn() const;
|
2002-01-16 12:30:17 +00:00
|
|
|
/// generated by accessors.py
|
|
|
|
Gtk::Button * cancel_btn() const;
|
|
|
|
/// generated by accessors.py
|
|
|
|
Gtk::SpinButton * rows() const;
|
|
|
|
/// generated by accessors.py
|
|
|
|
Gtk::SpinButton * cols() const;
|
|
|
|
|
2001-05-12 20:13:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|