15 files changed:
+2002-08-06 John Levon <levon@movementarian.org>
+
+ * lyxfunc.C:
+ * kbmap.C: small cleanup
+
+ * vspace.h:
+ * vspace.C: add const
+
2002-08-05 John Levon <levon@movementarian.org>
* LyXAction.C: back to tabular-insert
2002-08-05 John Levon <levon@movementarian.org>
* LyXAction.C: back to tabular-insert
+2002-08-06 John Levon <levon@movementarian.org>
+
+ * ui/QSpellcheckerDialogBase.ui:
+ * QSpellcheckerDialog.h:
+ * QSpellchecker.h:
+ * QSpellchecker.C: remove options()
+
+ * QtView.C: fix build
+
2002-07-31 John Levon <levon@movementarian.org>
* io_callback.h: make a more proper class
2002-07-31 John Levon <levon@movementarian.org>
* io_callback.h: make a more proper class
// FIXME ?
// Must use new as np is not known at compile time.
// FIXME ?
// Must use new as np is not known at compile time.
- boost::scoped_array<QCOORD> points(new QCOORD [np * 2]);
+ boost::scoped_array<QCOORD> points(new QCOORD[np * 2]);
// FIXME ?
// Must use new as np is not known at compile time.
// FIXME ?
// Must use new as np is not known at compile time.
- boost::scoped_array<QCOORD> points(new QCOORD [np * 2]);
+ boost::scoped_array<QCOORD> points(new QCOORD[np * 2]);
bool const enable = linespacing->currentItem()==4;
linespacingValue->setEnabled(enable);
}
bool const enable = linespacing->currentItem()==4;
linespacingValue->setEnabled(enable);
}
-void QSpellchecker::options()
-{
- controller().options();
-}
-
-
void QSpellchecker::spellcheck()
{
controller().check();
void QSpellchecker::spellcheck()
{
controller().check();
void add();
void ignore();
void replace();
void add();
void ignore();
void replace();
void spellcheck();
/// Apply changes
void spellcheck();
/// Apply changes
virtual void ignoreClicked() {
form_->ignore();
}
virtual void ignoreClicked() {
form_->ignore();
}
- virtual void optionsClicked() {
- form_->options();
- }
virtual void suggestionChanged(const QString &);
virtual void replaceChanged(const QString &);
virtual void suggestionChanged(const QString &);
virtual void replaceChanged(const QString &);
void QtView::update_view_state_qt()
{
void QtView::update_view_state_qt()
{
- statusBar()->message(currentState(view()).c_str());
+ statusBar()->message(currentState(view().get()).c_str());
}
void QtView::update_view_state()
{
}
void QtView::update_view_state()
{
- statusBar()->message(currentState(view()).c_str());
+ statusBar()->message(currentState(view().get()).c_str());
LengthCombo::LengthCombo(QWidget * parent, char * name)
: QComboBox(parent, name)
{
LengthCombo::LengthCombo(QWidget * parent, char * name)
: QComboBox(parent, name)
{
+ // FIXME: check these should all be here, I think not
insertItem(_("cm"));
insertItem(_("in"));
insertItem(_("pt"));
insertItem(_("cm"));
insertItem(_("in"));
insertItem(_("pt"));
<height>379</height>
</rect>
</property>
<height>379</height>
</rect>
</property>
<string>Accept word for this session</string>
</property>
</widget>
<string>Accept word for this session</string>
</property>
</widget>
- <widget row="10" column="0" >
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>optionsPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Options...</string>
- </property>
- </widget>
<spacer row="10" column="1" >
<property>
<name>name</name>
<spacer row="10" column="1" >
<property>
<name>name</name>
<name>name</name>
<cstring>replaceCO</cstring>
</property>
<name>name</name>
<cstring>replaceCO</cstring>
</property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
<property stdset="1">
<name>focusPolicy</name>
<enum>StrongFocus</enum>
<property stdset="1">
<name>focusPolicy</name>
<enum>StrongFocus</enum>
<name>duplicatesEnabled</name>
<bool>false</bool>
</property>
<name>duplicatesEnabled</name>
<bool>false</bool>
</property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
<property>
<name>toolTip</name>
<string>Replace with selected word</string>
<property>
<name>toolTip</name>
<string>Replace with selected word</string>
<receiver>QSpellcheckerDialogBase</receiver>
<slot>addClicked()</slot>
</connection>
<receiver>QSpellcheckerDialogBase</receiver>
<slot>addClicked()</slot>
</connection>
- <connection>
- <sender>optionsPB</sender>
- <signal>clicked()</signal>
- <receiver>QSpellcheckerDialogBase</receiver>
- <slot>optionsClicked()</slot>
- </connection>
<connection>
<sender>spellcheckPB</sender>
<signal>clicked()</signal>
<connection>
<sender>spellcheckPB</sender>
<signal>clicked()</signal>
<tabstop>ignorePB</tabstop>
<tabstop>replacePB_3</tabstop>
<tabstop>addPB</tabstop>
<tabstop>ignorePB</tabstop>
<tabstop>replacePB_3</tabstop>
<tabstop>addPB</tabstop>
- <tabstop>optionsPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops>
</UI>
<tabstop>closePB</tabstop>
</tabstops>
</UI>
key_modifier::state check =
static_cast<key_modifier::state>(mod & ~mask);
key_modifier::state check =
static_cast<key_modifier::state>(mod & ~mask);
- if (*(cit->code) == *(key) && cit->mod.first == check) {
+ if (*(cit->code) == *key && cit->mod.first == check) {
// match found
if (cit->table.get()) {
// this is a prefix key - set new map
// match found
if (cit->table.get()) {
// this is a prefix key - set new map
void kb_keymap::defkey(kb_sequence * seq, int action, unsigned int r)
{
LyXKeySymPtr code = seq->sequence[r];
void kb_keymap::defkey(kb_sequence * seq, int action, unsigned int r)
{
LyXKeySymPtr code = seq->sequence[r];
- if ( ! code->isOK() ) return;
+ if (!code->isOK())
+ return;
key_modifier::state const mod1 = seq->modifiers[r].first;
key_modifier::state const mod2 = seq->modifiers[r].second;
key_modifier::state const mod1 = seq->modifiers[r].first;
key_modifier::state const mod2 = seq->modifiers[r].second;
if ((action != LFUN_CANCEL) && (action != LFUN_META_FAKE)) {
// remove Caps Lock and Mod2 as a modifiers
action = keyseq.addkey(keysym, (state | meta_fake_bit));
if ((action != LFUN_CANCEL) && (action != LFUN_META_FAKE)) {
// remove Caps Lock and Mod2 as a modifiers
action = keyseq.addkey(keysym, (state | meta_fake_bit));
- if (lyxerr.debugging(Debug::KEY)) {
- lyxerr << "action now set to ["
- << action << "]" << endl;
- }
+ lyxerr[Debug::KEY] << "action now set to ["
+ << action << "]" << endl;
// Dont remove this unless you know what you are doing.
meta_fake_bit = key_modifier::none;
// Dont remove this unless you know what you are doing.
meta_fake_bit = key_modifier::none;
// the modifiers? (Lgb)
action = keyseq.addkey(keysym, key_modifier::none);
// the modifiers? (Lgb)
action = keyseq.addkey(keysym, key_modifier::none);
- if (lyxerr.debugging(Debug::KEY)) {
- lyxerr << "Removing modifiers...\n"
- << "Action now set to ["
- << action << "]" << endl;
- }
+ lyxerr[Debug::KEY] << "Removing modifiers...\n"
+ << "Action now set to ["
+ << action << "]" << endl;
+
if (action == LFUN_UNKNOWN_ACTION) {
owner->message(_("Unknown function."));
return;
if (action == LFUN_UNKNOWN_ACTION) {
owner->message(_("Unknown function."));
return;
}
if (action == LFUN_SELFINSERT) {
}
if (action == LFUN_SELFINSERT) {
- // This is very X dependent.
char c = keysym->getISOEncoded();
string argument;
char c = keysym->getISOEncoded();
string argument;
-int VSpace::inPixels(BufferView * bv) const
+int VSpace::inPixels(BufferView const * bv) const
{
// Height of a normal line in pixels (zoom factor considered)
int const default_height = bv->text->defaultHeight(); // [pixels]
{
// Height of a normal line in pixels (zoom factor considered)
int const default_height = bv->text->defaultHeight(); // [pixels]
/// the latex representation
string const asLatexCommand(BufferParams const & params) const;
/// the size of the space on-screen
/// the latex representation
string const asLatexCommand(BufferParams const & params) const;
/// the size of the space on-screen
- int inPixels(BufferView * bv) const;
+ int inPixels(BufferView const * bv) const;
private:
/// This VSpace kind
vspace_kind kind_;
private:
/// This VSpace kind
vspace_kind kind_;