mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-01 05:25:55 +00:00
98385a16b8
Citation and Texinfo dialogs. Remove all the horrible #if FL_REVISION < 89 cruft from FormBase and put it in a little wrapper class Tooltips. For now use the 0.88 code for all versions of xforms as I can't see an easy way of changing the tooltip on the fly with fl_set_object_helper. To use, call setTooltipHandler for each widget, add a choice widget to the dialog together with 4 lines of code to set/get the level of verbosity. Finally, and two methods, getMinimalTooltip and getVerboseTooltip to return the tooltip. What could be easier? Please try this out. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3496 a592a061-630c-0410-9148-cb99ea01b6c8
49 lines
1000 B
C++
49 lines
1000 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file FormTexinfo.h
|
|
* Copyright 2001 the LyX Team
|
|
* Read the file COPYING
|
|
*
|
|
* \author Herbert Voss <voss@perce.de>
|
|
*/
|
|
|
|
#ifndef FORMTEXINFO_H
|
|
#define FORMTEXINFO_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "FormBase.h"
|
|
#include "ControlTexinfo.h"
|
|
|
|
struct FD_form_texinfo;
|
|
|
|
class FormTexinfo : public FormCB<ControlTexinfo, FormDB<FD_form_texinfo> > {
|
|
public:
|
|
///
|
|
FormTexinfo(ControlTexinfo &);
|
|
|
|
private:
|
|
/// not needed
|
|
virtual void apply() {}
|
|
/// Build the dialog.
|
|
virtual void build();
|
|
/// not needed
|
|
virtual void update() {}
|
|
/// Filter the inputs on callback from xforms
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
///
|
|
string const getMinimalTooltip(FL_OBJECT const *) const;
|
|
///
|
|
string const getVerboseTooltip(FL_OBJECT const *) const;
|
|
///
|
|
void updateStyles(ControlTexinfo::texFileSuffix);
|
|
/// Fdesign generated method
|
|
FD_form_texinfo * build_texinfo();
|
|
///
|
|
ControlTexinfo::texFileSuffix activeStyle;
|
|
};
|
|
|
|
#endif // FORMTEXINFO_H
|