mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
imp. remove mouseover32 preferences.ui configuration .
This commit is contained in:
parent
ce8fa7ab38
commit
82cff25856
18
config.cc
18
config.cc
|
@ -233,9 +233,6 @@ Preferences::Preferences():
|
||||||
scanPopupAltMode( false ),
|
scanPopupAltMode( false ),
|
||||||
scanPopupAltModeSecs( 3 ),
|
scanPopupAltModeSecs( 3 ),
|
||||||
ignoreOwnClipboardChanges( false ),
|
ignoreOwnClipboardChanges( false ),
|
||||||
scanPopupUseUIAutomation( true ),
|
|
||||||
scanPopupUseIAccessibleEx( true ),
|
|
||||||
scanPopupUseGDMessage( true ),
|
|
||||||
scanPopupUnpinnedWindowFlags( SPWF_default ),
|
scanPopupUnpinnedWindowFlags( SPWF_default ),
|
||||||
scanPopupUnpinnedBypassWMHint( false ),
|
scanPopupUnpinnedBypassWMHint( false ),
|
||||||
scanToMainWindow( false ),
|
scanToMainWindow( false ),
|
||||||
|
@ -899,9 +896,6 @@ Class load() THROW_SPEC( exError )
|
||||||
#ifdef HAVE_X11
|
#ifdef HAVE_X11
|
||||||
c.preferences.showScanFlag= ( preferences.namedItem( "showScanFlag" ).toElement().text() == "1" );
|
c.preferences.showScanFlag= ( preferences.namedItem( "showScanFlag" ).toElement().text() == "1" );
|
||||||
#endif
|
#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.scanPopupUnpinnedWindowFlags = spwfFromInt( preferences.namedItem( "scanPopupUnpinnedWindowFlags" ).toElement().text().toInt() );
|
||||||
c.preferences.scanPopupUnpinnedBypassWMHint = ( preferences.namedItem( "scanPopupUnpinnedBypassWMHint" ).toElement().text() == "1" );
|
c.preferences.scanPopupUnpinnedBypassWMHint = ( preferences.namedItem( "scanPopupUnpinnedBypassWMHint" ).toElement().text() == "1" );
|
||||||
|
|
||||||
|
@ -1807,18 +1801,6 @@ void save( Class const & c ) THROW_SPEC( exError )
|
||||||
preferences.appendChild( opt );
|
preferences.appendChild( opt );
|
||||||
#endif
|
#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 = dd.createElement( "scanPopupUnpinnedWindowFlags" );
|
||||||
opt.appendChild( dd.createTextNode( QString::number( c.preferences.scanPopupUnpinnedWindowFlags ) ) );
|
opt.appendChild( dd.createTextNode( QString::number( c.preferences.scanPopupUnpinnedWindowFlags ) ) );
|
||||||
preferences.appendChild( opt );
|
preferences.appendChild( opt );
|
||||||
|
|
|
@ -312,9 +312,6 @@ struct Preferences
|
||||||
bool scanPopupAltMode; // When you press modifier shortly after the selection
|
bool scanPopupAltMode; // When you press modifier shortly after the selection
|
||||||
unsigned scanPopupAltModeSecs;
|
unsigned scanPopupAltModeSecs;
|
||||||
bool ignoreOwnClipboardChanges;
|
bool ignoreOwnClipboardChanges;
|
||||||
bool scanPopupUseUIAutomation;
|
|
||||||
bool scanPopupUseIAccessibleEx;
|
|
||||||
bool scanPopupUseGDMessage;
|
|
||||||
ScanPopupWindowFlags scanPopupUnpinnedWindowFlags;
|
ScanPopupWindowFlags scanPopupUnpinnedWindowFlags;
|
||||||
bool scanPopupUnpinnedBypassWMHint;
|
bool scanPopupUnpinnedBypassWMHint;
|
||||||
bool scanToMainWindow;
|
bool scanToMainWindow;
|
||||||
|
|
|
@ -195,9 +195,6 @@ Preferences::Preferences( QWidget * parent, Config::Class & cfg_ ):
|
||||||
ui.scanPopupAltModeSecs->setValue( p.scanPopupAltModeSecs );
|
ui.scanPopupAltModeSecs->setValue( p.scanPopupAltModeSecs );
|
||||||
ui.ignoreOwnClipboardChanges->setChecked( p.ignoreOwnClipboardChanges );
|
ui.ignoreOwnClipboardChanges->setChecked( p.ignoreOwnClipboardChanges );
|
||||||
ui.scanToMainWindow->setChecked( p.scanToMainWindow );
|
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.scanPopupUnpinnedWindowFlags->setCurrentIndex( p.scanPopupUnpinnedWindowFlags );
|
||||||
ui.scanPopupUnpinnedBypassWMHint->setChecked( p.scanPopupUnpinnedBypassWMHint );
|
ui.scanPopupUnpinnedBypassWMHint->setChecked( p.scanPopupUnpinnedBypassWMHint );
|
||||||
|
|
||||||
|
@ -416,9 +413,6 @@ Config::Preferences Preferences::getPreferences()
|
||||||
#ifdef HAVE_X11
|
#ifdef HAVE_X11
|
||||||
p.showScanFlag= ui.showScanFlag->isChecked();
|
p.showScanFlag= ui.showScanFlag->isChecked();
|
||||||
#endif
|
#endif
|
||||||
p.scanPopupUseUIAutomation = ui.scanPopupUseUIAutomation->isChecked();
|
|
||||||
p.scanPopupUseIAccessibleEx = ui.scanPopupUseIAccessibleEx->isChecked();
|
|
||||||
p.scanPopupUseGDMessage = ui.scanPopupUseGDMessage->isChecked();
|
|
||||||
p.scanPopupUnpinnedWindowFlags = Config::spwfFromInt( ui.scanPopupUnpinnedWindowFlags->currentIndex() );
|
p.scanPopupUnpinnedWindowFlags = Config::spwfFromInt( ui.scanPopupUnpinnedWindowFlags->currentIndex() );
|
||||||
p.scanPopupUnpinnedBypassWMHint = ui.scanPopupUnpinnedBypassWMHint->isChecked();
|
p.scanPopupUnpinnedBypassWMHint = ui.scanPopupUnpinnedBypassWMHint->isChecked();
|
||||||
|
|
||||||
|
|
|
@ -1438,52 +1438,6 @@ download page.</string>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_11">
|
<layout class="QVBoxLayout" name="verticalLayout_11">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_17">
|
<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 &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 &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 &GoldenDict message</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_ScanPopupWindowFlags">
|
<widget class="QGroupBox" name="groupBox_ScanPopupWindowFlags">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
|
Loading…
Reference in a new issue