imp. remove mouseover32 preferences.ui configuration .

This commit is contained in:
xiaoyifang 2022-01-29 15:09:41 +08:00
parent c96a83f5d2
commit 12fca6e38c
4 changed files with 0 additions and 73 deletions

View file

@ -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 );

View file

@ -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;

View file

@ -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();

View file

@ -1438,52 +1438,6 @@ download page.</string>
<layout class="QVBoxLayout" name="verticalLayout_11">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_17">
<item>
<widget class="QGroupBox" name="groupBox_ScanPopupTechnologies">
<property name="title">
<string>ScanPopup extra technologies</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_13">
<item>
<widget class="QCheckBox" name="scanPopupUseIAccessibleEx">
<property name="toolTip">
<string>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.</string>
</property>
<property name="text">
<string>Use &amp;IAccessibleEx</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="scanPopupUseUIAutomation">
<property name="toolTip">
<string>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.</string>
</property>
<property name="text">
<string>Use &amp;UIAutomation</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="scanPopupUseGDMessage">
<property name="toolTip">
<string>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.</string>
</property>
<property name="text">
<string>Use &amp;GoldenDict message</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_ScanPopupWindowFlags">
<property name="title">