From 12fca6e38c76049c9d0f82695ae984c475342762 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Sat, 29 Jan 2022 15:09:41 +0800 Subject: [PATCH] imp. remove mouseover32 preferences.ui configuration . --- config.cc | 18 ------------------ config.hh | 3 --- preferences.cc | 6 ------ preferences.ui | 46 ---------------------------------------------- 4 files changed, 73 deletions(-) diff --git a/config.cc b/config.cc index c6e184e1..15c7b4f6 100644 --- a/config.cc +++ b/config.cc @@ -233,9 +233,6 @@ Preferences::Preferences(): scanPopupAltMode( false ), scanPopupAltModeSecs( 3 ), ignoreOwnClipboardChanges( false ), - scanPopupUseUIAutomation( true ), - scanPopupUseIAccessibleEx( true ), - scanPopupUseGDMessage( true ), scanPopupUnpinnedWindowFlags( SPWF_default ), scanPopupUnpinnedBypassWMHint( false ), scanToMainWindow( false ), @@ -897,9 +894,6 @@ Class load() THROW_SPEC( exError ) #ifdef HAVE_X11 c.preferences.showScanFlag= ( preferences.namedItem( "showScanFlag" ).toElement().text() == "1" ); #endif - c.preferences.scanPopupUseUIAutomation = ( preferences.namedItem( "scanPopupUseUIAutomation" ).toElement().text() == "1" ); - c.preferences.scanPopupUseIAccessibleEx = ( preferences.namedItem( "scanPopupUseIAccessibleEx" ).toElement().text() == "1" ); - c.preferences.scanPopupUseGDMessage = ( preferences.namedItem( "scanPopupUseGDMessage" ).toElement().text() == "1" ); c.preferences.scanPopupUnpinnedWindowFlags = spwfFromInt( preferences.namedItem( "scanPopupUnpinnedWindowFlags" ).toElement().text().toInt() ); c.preferences.scanPopupUnpinnedBypassWMHint = ( preferences.namedItem( "scanPopupUnpinnedBypassWMHint" ).toElement().text() == "1" ); @@ -1805,18 +1799,6 @@ void save( Class const & c ) THROW_SPEC( exError ) preferences.appendChild( opt ); #endif - opt = dd.createElement( "scanPopupUseUIAutomation" ); - opt.appendChild( dd.createTextNode( c.preferences.scanPopupUseUIAutomation ? "1":"0" ) ); - preferences.appendChild( opt ); - - opt = dd.createElement( "scanPopupUseIAccessibleEx" ); - opt.appendChild( dd.createTextNode( c.preferences.scanPopupUseIAccessibleEx ? "1":"0" ) ); - preferences.appendChild( opt ); - - opt = dd.createElement( "scanPopupUseGDMessage" ); - opt.appendChild( dd.createTextNode( c.preferences.scanPopupUseGDMessage ? "1":"0" ) ); - preferences.appendChild( opt ); - opt = dd.createElement( "scanPopupUnpinnedWindowFlags" ); opt.appendChild( dd.createTextNode( QString::number( c.preferences.scanPopupUnpinnedWindowFlags ) ) ); preferences.appendChild( opt ); diff --git a/config.hh b/config.hh index 063f564c..bb7b247c 100644 --- a/config.hh +++ b/config.hh @@ -312,9 +312,6 @@ struct Preferences bool scanPopupAltMode; // When you press modifier shortly after the selection unsigned scanPopupAltModeSecs; bool ignoreOwnClipboardChanges; - bool scanPopupUseUIAutomation; - bool scanPopupUseIAccessibleEx; - bool scanPopupUseGDMessage; ScanPopupWindowFlags scanPopupUnpinnedWindowFlags; bool scanPopupUnpinnedBypassWMHint; bool scanToMainWindow; diff --git a/preferences.cc b/preferences.cc index 1e83f78f..39202f2f 100644 --- a/preferences.cc +++ b/preferences.cc @@ -195,9 +195,6 @@ Preferences::Preferences( QWidget * parent, Config::Class & cfg_ ): ui.scanPopupAltModeSecs->setValue( p.scanPopupAltModeSecs ); ui.ignoreOwnClipboardChanges->setChecked( p.ignoreOwnClipboardChanges ); ui.scanToMainWindow->setChecked( p.scanToMainWindow ); - ui.scanPopupUseUIAutomation->setChecked( p.scanPopupUseUIAutomation ); - ui.scanPopupUseIAccessibleEx->setChecked( p.scanPopupUseIAccessibleEx ); - ui.scanPopupUseGDMessage->setChecked( p.scanPopupUseGDMessage ); ui.scanPopupUnpinnedWindowFlags->setCurrentIndex( p.scanPopupUnpinnedWindowFlags ); ui.scanPopupUnpinnedBypassWMHint->setChecked( p.scanPopupUnpinnedBypassWMHint ); @@ -416,9 +413,6 @@ Config::Preferences Preferences::getPreferences() #ifdef HAVE_X11 p.showScanFlag= ui.showScanFlag->isChecked(); #endif - p.scanPopupUseUIAutomation = ui.scanPopupUseUIAutomation->isChecked(); - p.scanPopupUseIAccessibleEx = ui.scanPopupUseIAccessibleEx->isChecked(); - p.scanPopupUseGDMessage = ui.scanPopupUseGDMessage->isChecked(); p.scanPopupUnpinnedWindowFlags = Config::spwfFromInt( ui.scanPopupUnpinnedWindowFlags->currentIndex() ); p.scanPopupUnpinnedBypassWMHint = ui.scanPopupUnpinnedBypassWMHint->isChecked(); diff --git a/preferences.ui b/preferences.ui index 1d05fe0d..54ebee0b 100644 --- a/preferences.ui +++ b/preferences.ui @@ -1438,52 +1438,6 @@ download page. - - - - ScanPopup extra technologies - - - - - - Try to use IAccessibleEx technology to retrieve word under cursor. -This technology works only with some programs that support it - (for example Internet Explorer 9). -It is not needed to select this option if you don't use such programs. - - - Use &IAccessibleEx - - - - - - - Try to use UI Automation technology to retrieve word under cursor. -This technology works only with some programs that support it. -It is not needed to select this option if you don't use such programs. - - - Use &UIAutomation - - - - - - - Try to use special GoldenDict message to retrieve word under cursor. -This technology works only with some programs that support it. -It is not needed to select this option if you don't use such programs. - - - Use &GoldenDict message - - - - - -