Re: [patch] remove wheel mouse ui from qt2
Abdelrazak Younes a écrit : Done, patch attached (not tested). I will apply that once I get some spare time to compile and test (if you don't beat me at this :-)). Committed. Abdel.
Re: [patch] remove wheel mouse ui from qt2
Juergen Spitzmueller wrote: > I cannot compile gtk. You don't need to compile it in order to find out whether wheel_jump is used or not :-) Anyway, I looked now myself and will commit the attached patch. GeorgIndex: src/lyxrc.h === --- src/lyxrc.h (Revision 13460) +++ src/lyxrc.h (Arbeitskopie) @@ -238,6 +238,7 @@ public: /// Zoom factor for screen fonts unsigned int zoom; /// parameter for button_4 and button_5 (scrollwheel) + /// Only used by the xforms frontend unsigned int wheel_jump; /// Screen font sizes in points for each font size std::string font_sizes[10];
Re: [patch] remove wheel mouse ui from qt2
Juergen Spitzmueller a écrit : The attached patch finally eliminates the gui element. I did not touch qt4, since Abdel is reorganizing the Prefs dialog currently. I am done for now with the Prefs reorg. Feel free to modify it (or even better process to phase 2 of my reorg ;-)). I will working on the Citation/AddCitation dialog from now on. Please retain any modification on this before I apply my cleanup probably this week-end. Abdel, while you are at it, could you please remove the wheel mouse spinbox? Done, patch attached (not tested). I will apply that once I get some spare time to compile and test (if you don't beat me at this :-)). Abdel. * src/frontends/qt2/QPrefsDialog.C (QPrefsDialog::QPrefsDialog): (void QPrefsDialog::apply): (void QPrefsDialog::update): * src/frontends/qt2/ui/QPrefUI.ui: remove wheel mouse spin box (bug 783). Index: QPrefsDialog.C === --- QPrefsDialog.C (revision 13453) +++ QPrefsDialog.C (working copy) @@ -394,7 +394,6 @@ connect(uiModule->uiFileED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor())); connect(uiModule->bindFileED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor())); connect(uiModule->cursorFollowsCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor())); - connect(uiModule->wheelMouseSB, SIGNAL(valueChanged(int)), this, SLOT(change_adaptor())); connect(uiModule->autoSaveSB, SIGNAL(valueChanged(int)), this, SLOT(change_adaptor())); connect(uiModule->autoSaveCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor())); connect(uiModule->lastfilesSB, SIGNAL(valueChanged(int)), this, SLOT(change_adaptor())); @@ -1121,7 +1120,6 @@ rc.ui_file = internal_path(uiModule->uiFileED->text()); rc.bind_file = internal_path(uiModule->bindFileED->text()); rc.cursor_follows_scrollbar = uiModule->cursorFollowsCB->isChecked(); - rc.wheel_jump = uiModule->wheelMouseSB->value(); rc.autosave = uiModule->autoSaveSB->value() * 60; rc.make_backup = uiModule->autoSaveCB->isChecked(); rc.num_lastfiles = uiModule->lastfilesSB->value(); @@ -1416,7 +1414,6 @@ uiModule->uiFileED->setText(external_path(rc.ui_file)); uiModule->bindFileED->setText(external_path(rc.bind_file)); uiModule->cursorFollowsCB->setChecked(rc.cursor_follows_scrollbar); - uiModule->wheelMouseSB->setValue(rc.wheel_jump); // convert to minutes int mins(rc.autosave / 60); if (rc.autosave && !mins) Index: ui/QPrefUi.ui === --- ui/QPrefUi.ui (revision 13453) +++ ui/QPrefUi.ui (working copy) @@ -1,300 +1,274 @@ - - - - - QPrefUi - - - -0 -0 -416 -441 - - - - -1 -1 -0 -0 - - - - - - - -11 - - + + + + + QPrefUI + + + +0 +0 +416 +441 + + + + +1 +1 +0 +0 + + + + + + + +11 + + +6 + + + + + 0 + + + 6 + + + + +B&rowse... + + + + + + +&User interface file: + + +uiFileED + + + + + + +&Bind file: + + +bindFileED + + + + + + + + + +Bro&wse... + + + + + + + + + + + + 0 + + + 6 + + + + +0 + + 6 - - - + + + + + Documents + + -0 + 11 -6 + 6 - - - -B&rowse... - - + + + + B&ackup documents + + - - - -&User interface file: + + + + 0 + + + 6 + + + + + Qt::Horizontal - -uiFileED + + QSizePolicy::Fixed - - - - + + +21 +20 + + + + + + -&Bind file: +every
Re: [patch] remove wheel mouse ui from qt2
Georg Baum wrote: > I would think so. Since the system wheel setting is obeyed now it is only > logical to remove this setting in the same release (1.4.1). > It would be nice if you could lookup whether gtk uses this setting at all, > and make a comment in lyxrc.h stating which frontedns actually use > wheel_jump. I cannot compile gtk. I have committed the changes to qt2. Jürgen
Re: [patch] remove wheel mouse ui from qt2
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> The attached patch finally eliminates the gui element. I did Juergen> not touch qt4, since Abdel is reorganizing the Prefs dialog Juergen> currently. Abdel, while you are at it, could you please Juergen> remove the wheel mouse spinbox? Juergen> OK to apply to branch and trunk? Definitely yes :) JMarc
Re: [patch] remove wheel mouse ui from qt2
Juergen Spitzmueller wrote: > The attached patch finally eliminates the gui element. > I did not touch qt4, since Abdel is reorganizing the Prefs dialog > currently. Abdel, while you are at it, could you please remove the wheel > mouse spinbox? > > OK to apply to branch and trunk? I would think so. Since the system wheel setting is obeyed now it is only logical to remove this setting in the same release (1.4.1). It would be nice if you could lookup whether gtk uses this setting at all, and make a comment in lyxrc.h stating which frontedns actually use wheel_jump. Georg
[patch] remove wheel mouse ui from qt2
The attached patch finally eliminates the gui element. I did not touch qt4, since Abdel is reorganizing the Prefs dialog currently. Abdel, while you are at it, could you please remove the wheel mouse spinbox? OK to apply to branch and trunk? * src/frontends/qt2/QPrefs.C (void QPrefs::apply): (void QPrefs::update_contents): * src/frontends/qt2/QPrefsDialog.C (QPrefsDialog::QPrefsDialog): * src/frontends/qt2/ui/QPrefUIModule.ui: remove wheel mouse spin box (bug 783). Jürgen Index: src/frontends/qt2/QPrefs.C === --- src/frontends/qt2/QPrefs.C (Revision 13455) +++ src/frontends/qt2/QPrefs.C (Arbeitskopie) @@ -174,7 +174,6 @@ void QPrefs::apply() rc.ui_file = internal_path(uimod->uiFileED->text()); rc.bind_file = internal_path(uimod->bindFileED->text()); rc.cursor_follows_scrollbar = uimod->cursorFollowsCB->isChecked(); - rc.wheel_jump = uimod->wheelMouseSB->value(); rc.autosave = uimod->autoSaveSB->value() * 60; rc.make_backup = uimod->autoSaveCB->isChecked(); rc.num_lastfiles = uimod->lastfilesSB->value(); @@ -496,7 +495,6 @@ void QPrefs::update_contents() uimod->uiFileED->setText(external_path(rc.ui_file)); uimod->bindFileED->setText(external_path(rc.bind_file)); uimod->cursorFollowsCB->setChecked(rc.cursor_follows_scrollbar); - uimod->wheelMouseSB->setValue(rc.wheel_jump); // convert to minutes int mins(rc.autosave / 60); if (rc.autosave && !mins) Index: src/frontends/qt2/QPrefsDialog.C === --- src/frontends/qt2/QPrefsDialog.C (Revision 13455) +++ src/frontends/qt2/QPrefsDialog.C (Arbeitskopie) @@ -229,7 +229,6 @@ QPrefsDialog::QPrefsDialog(QPrefs * form connect(uiModule->uiFileED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor())); connect(uiModule->bindFileED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor())); connect(uiModule->cursorFollowsCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor())); - connect(uiModule->wheelMouseSB, SIGNAL(valueChanged(int)), this, SLOT(change_adaptor())); connect(uiModule->autoSaveSB, SIGNAL(valueChanged(int)), this, SLOT(change_adaptor())); connect(uiModule->autoSaveCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor())); connect(uiModule->lastfilesSB, SIGNAL(valueChanged(int)), this, SLOT(change_adaptor())); Index: src/frontends/qt2/ui/QPrefUIModule.ui === --- src/frontends/qt2/ui/QPrefUIModule.ui (Revision 13455) +++ src/frontends/qt2/ui/QPrefUIModule.ui (Arbeitskopie) @@ -13,7 +13,7 @@ 0 0 -416 +412 441 @@ -26,9 +26,9 @@ caption - +QPrefUIModule - + margin 11 @@ -37,90 +37,7 @@ spacing 6 - -QLayoutWidget - -name -Layout2 - - - -margin -0 - - -spacing -6 - - -QPushButton - -name -bindFilePB - - -text -B&rowse... - - - -QLabel - -name -uiFileLA - - -text -&User interface file: - - -buddy -uiFileED - - - -QLabel - -name -bindFileLA - - -text -&Bind file: - - -buddy -bindFileED - - - -QLineEdit - -name -uiFileED - - - -QPushButton - -name -uiFilePB - - -text -Bro&wse... - - - -QLineEdit - -name -