small fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5709 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-11-25 03:18:27 +00:00
parent 205aeb8d73
commit 97dedd97de
5 changed files with 127 additions and 145 deletions

View File

@ -1,3 +1,11 @@
2002-11-25 John Levon <levon@movementarian.org>
* qscreen.C: use LColor::cursor properly
* QPrefs.C:
* ui/QPrefKeyboardModule.ui:
* ui/QPrefUIModule.ui: UI fixes
2002-11-25 Herbert Voss <Herbert.Voss@alumni.TU-Berlin.DE> 2002-11-25 Herbert Voss <Herbert.Voss@alumni.TU-Berlin.DE>
* QVCLog.C (update_contents): fix USE_BOOST_FORMAT * QVCLog.C (update_contents): fix USE_BOOST_FORMAT

View File

@ -47,6 +47,7 @@
#include <qspinbox.h> #include <qspinbox.h>
#include <qcombobox.h> #include <qcombobox.h>
#include <qlistbox.h> #include <qlistbox.h>
#include <qlabel.h>
#include "qcoloritem.h" #include "qcoloritem.h"
using std::vector; using std::vector;
@ -339,6 +340,13 @@ void QPrefs::update_contents()
// FIXME: can derive CB from the two EDs // FIXME: can derive CB from the two EDs
keymod->keymapCB->setChecked(rc.use_kbmap); keymod->keymapCB->setChecked(rc.use_kbmap);
// no idea why we need these. Fscking Qt.
keymod->firstKeymapED->setEnabled(rc.use_kbmap);
keymod->firstKeymapPB->setEnabled(rc.use_kbmap);
keymod->firstKeymapLA->setEnabled(rc.use_kbmap);
keymod->secondKeymapED->setEnabled(rc.use_kbmap);
keymod->secondKeymapPB->setEnabled(rc.use_kbmap);
keymod->secondKeymapLA->setEnabled(rc.use_kbmap);
keymod->firstKeymapED->setText(rc.primary_kbmap.c_str()); keymod->firstKeymapED->setText(rc.primary_kbmap.c_str());
keymod->secondKeymapED->setText(rc.secondary_kbmap.c_str()); keymod->secondKeymapED->setText(rc.secondary_kbmap.c_str());

View File

@ -99,7 +99,7 @@ void QScreen::showManualCursor(LyXText const * text, int x, int y,
bitBlt(nocursor_pixmap_.get(), 0, 0, owner_.getPixmap(), bitBlt(nocursor_pixmap_.get(), 0, 0, owner_.getPixmap(),
cursor_x_, cursor_y_, cursor_w_, cursor_h_); cursor_x_, cursor_y_, cursor_w_, cursor_h_);
owner_.getPainter().line(x, y1, x, y2); owner_.getPainter().line(x, y1, x, y2, LColor::cursor);
switch (shape) { switch (shape) {
case BAR_SHAPE: case BAR_SHAPE:
break; break;

View File

@ -13,7 +13,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>342</width> <width>338</width>
<height>253</height> <height>253</height>
</rect> </rect>
</property> </property>
@ -138,6 +138,44 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<connections>
<connection>
<sender>keymapCB</sender>
<signal>toggled(bool)</signal>
<receiver>firstKeymapLA</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>keymapCB</sender>
<signal>toggled(bool)</signal>
<receiver>secondKeymapLA</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>keymapCB</sender>
<signal>toggled(bool)</signal>
<receiver>firstKeymapED</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>keymapCB</sender>
<signal>toggled(bool)</signal>
<receiver>secondKeymapED</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>keymapCB</sender>
<signal>toggled(bool)</signal>
<receiver>firstKeymapPB</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>keymapCB</sender>
<signal>toggled(bool)</signal>
<receiver>secondKeymapPB</receiver>
<slot>setEnabled(bool)</slot>
</connection>
</connections>
<tabstops> <tabstops>
<tabstop>keymapCB</tabstop> <tabstop>keymapCB</tabstop>
<tabstop>firstKeymapED</tabstop> <tabstop>firstKeymapED</tabstop>

View File

@ -13,13 +13,13 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>329</width> <width>436</width>
<height>250</height> <height>213</height>
</rect> </rect>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>caption</name> <name>caption</name>
<string>Screen Fonts</string> <string>UI</string>
</property> </property>
<vbox> <vbox>
<property stdset="1"> <property stdset="1">
@ -117,7 +117,7 @@
<class>QLayoutWidget</class> <class>QLayoutWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout15</cstring> <cstring>Layout16</cstring>
</property> </property>
<hbox> <hbox>
<property stdset="1"> <property stdset="1">
@ -151,7 +151,7 @@
<class>QLayoutWidget</class> <class>QLayoutWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout14</cstring> <cstring>Layout9</cstring>
</property> </property>
<hbox> <hbox>
<property stdset="1"> <property stdset="1">
@ -203,64 +203,41 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer30</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout17</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget> <widget>
<class>QLayoutWidget</class> <class>QGroupBox</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout12</cstring> <cstring>documentsGB</cstring>
</property>
<property stdset="1">
<name>title</name>
<string>Documents</string>
</property> </property>
<vbox> <vbox>
<property stdset="1"> <property stdset="1">
<name>margin</name> <name>margin</name>
<number>0</number> <number>11</number>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>spacing</name> <name>spacing</name>
<number>6</number> <number>6</number>
</property> </property>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>autoSaveCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>B&amp;ackup documents </string>
</property>
</widget>
<widget> <widget>
<class>QLayoutWidget</class> <class>QLayoutWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout10</cstring> <cstring>Layout11</cstring>
</property> </property>
<hbox> <hbox>
<property stdset="1"> <property stdset="1">
@ -271,79 +248,10 @@
<name>spacing</name> <name>spacing</name>
<number>6</number> <number>6</number>
</property> </property>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout9</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>autoSaveCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>B&amp;ackup documents </string>
</property>
</widget>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>autoSaveLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string> every</string>
</property>
<property>
<name>buddy</name>
<cstring>autoSaveSB</cstring>
</property>
</widget>
<widget>
<class>QSpinBox</class>
<property stdset="1">
<name>name</name>
<cstring>autoSaveSB</cstring>
</property>
<property stdset="1">
<name>maxValue</name>
<number>300</number>
</property>
<property stdset="1">
<name>minValue</name>
<number>1</number>
</property>
</widget>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>TextLabel1</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>minutes</string>
</property>
</widget>
</hbox>
</widget>
<spacer> <spacer>
<property> <property>
<name>name</name> <name>name</name>
<cstring>Spacer4</cstring> <cstring>Spacer6</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>orientation</name> <name>orientation</name>
@ -351,23 +259,64 @@
</property> </property>
<property stdset="1"> <property stdset="1">
<name>sizeType</name> <name>sizeType</name>
<enum>Expanding</enum> <enum>Fixed</enum>
</property> </property>
<property> <property>
<name>sizeHint</name> <name>sizeHint</name>
<size> <size>
<width>20</width> <width>21</width>
<height>20</height> <height>20</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>autoSaveLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string> every</string>
</property>
<property>
<name>buddy</name>
<cstring>autoSaveSB</cstring>
</property>
</widget>
<widget>
<class>QSpinBox</class>
<property stdset="1">
<name>name</name>
<cstring>autoSaveSB</cstring>
</property>
<property stdset="1">
<name>maxValue</name>
<number>300</number>
</property>
<property stdset="1">
<name>minValue</name>
<number>1</number>
</property>
</widget>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>TextLabel1</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>minutes</string>
</property>
</widget>
</hbox> </hbox>
</widget> </widget>
<widget> <widget>
<class>QLayoutWidget</class> <class>QLayoutWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout1</cstring> <cstring>Layout12</cstring>
</property> </property>
<hbox> <hbox>
<property stdset="1"> <property stdset="1">
@ -404,27 +353,6 @@
<number>20</number> <number>20</number>
</property> </property>
</widget> </widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer9</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox> </hbox>
</widget> </widget>
</vbox> </vbox>
@ -432,7 +360,7 @@
<spacer> <spacer>
<property> <property>
<name>name</name> <name>name</name>
<cstring>Spacer31</cstring> <cstring>Spacer8</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>orientation</name> <name>orientation</name>
@ -455,7 +383,7 @@
<spacer> <spacer>
<property> <property>
<name>name</name> <name>name</name>
<cstring>Spacer2</cstring> <cstring>Spacer7</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>orientation</name> <name>orientation</name>