2001-06-14 08:20:41 +00:00
|
|
|
// -*- C++ -*-
|
2001-05-12 20:13:52 +00:00
|
|
|
/* This file is part of
|
|
|
|
* =================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
* Copyright 1995 Matthias Ettrich.
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* =================================================
|
|
|
|
*
|
|
|
|
* \author Michael Koziarski <michael@koziarski.org>
|
|
|
|
* */
|
|
|
|
|
|
|
|
#ifndef FORMTABULARCREATE_H
|
|
|
|
#define FORMTABULARCREATE_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "ControlTabularCreate.h"
|
|
|
|
#include "GnomeBase.h"
|
|
|
|
|
|
|
|
namespace Gtk {
|
|
|
|
class SpinButton;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class implements the dialog to insert/modify urls.
|
|
|
|
*/
|
|
|
|
class FormTabularCreate : public FormCB<ControlTabularCreate> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
FormTabularCreate(ControlTabularCreate & c);
|
|
|
|
///
|
|
|
|
~FormTabularCreate();
|
|
|
|
|
|
|
|
void apply();
|
|
|
|
|
|
|
|
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
|