switch hyperlinks ON by default

svn path=/trunk/kdegraphics/kdvi/; revision=56070
This commit is contained in:
Stefan Kebekus 2000-07-11 11:00:35 +00:00
parent bd2a761087
commit b2637d6565
9 changed files with 14 additions and 16 deletions

2
TODO
View file

@ -3,8 +3,6 @@ ToDo-List for kdvi
URGENT
o Default settings switch Hyperlinks OFF, this is not good.
o implement SaveAs
HIGHLY DESIRABLE

View file

@ -473,8 +473,6 @@ void dviWindow::mousePressEvent ( QMouseEvent * e )
QString locallink = hyperLinkList[i].linkText.mid(1); // Drop the '#' at the beginning
for(int j=0; j<numAnchors; j++) {
if (locallink.compare(AnchorList_String[j]) == 0) {
// @@@Currently there is no-one listening. Make sure
// kviewshell has a slot for this.
emit(request_goto_page(AnchorList_Page[j], AnchorList_Vert[j]));
break;
}
@ -495,4 +493,4 @@ void dviWindow::mousePressEvent ( QMouseEvent * e )
}
}
}
#include "dviwin.moc"
//#include "dviwin.moc.cpp"

View file

@ -49,7 +49,7 @@
* and Luis Miguel Silveira, MIT RLE.
*/
#define DEBUG 0
//#define DEBUG 0
#include <stdlib.h>

View file

@ -285,6 +285,7 @@ void KDVIMultiPage::preferencesChanged()
if ( !s.isEmpty() && s != window->fontPath() )
window->setFontPath( s );
// Important! The default values here must be the same as in optiondialog.cpp
int basedpi = config->readNumEntry( "BaseResolution" );
if ( basedpi <= 0 )
config->writeEntry( "BaseResolution", basedpi = 300 );
@ -293,7 +294,7 @@ void KDVIMultiPage::preferencesChanged()
QString mfmode = config->readEntry( "MetafontMode" );
if ( mfmode.isNull() )
config->writeEntry( "MetafontMode", mfmode = "/" );
config->writeEntry( "MetafontMode", mfmode = "cx" );
if ( mfmode != window->metafontMode() )
window->setMetafontMode( mfmode );
@ -301,11 +302,11 @@ void KDVIMultiPage::preferencesChanged()
if ( makepk != window->makePK() )
window->setMakePK( makepk );
int showPS = config->readNumEntry( "ShowPS" );
int showPS = config->readNumEntry( "ShowPS", 1 );
if (showPS != window->showPS())
window->setShowPS(showPS);
int showHyperLinks = config->readNumEntry( "ShowHyperLinks" );
int showHyperLinks = config->readNumEntry( "ShowHyperLinks", 1 );
if (showHyperLinks != window->showHyperLinks())
window->setShowHyperLinks(showHyperLinks);
}

View file

@ -89,14 +89,15 @@ void OptionDialog::setup()
config->setGroup("kdvi");
// Font page
// Important! The default values here must be the same as in kdvi_multipage.cpp
mFont.resolutionEdit->setText( config->readEntry( "BaseResolution", "300" ) );
mFont.metafontEdit->setText( config->readEntry( "MetafontMode", "/" ) );
mFont.metafontEdit->setText( config->readEntry( "MetafontMode", "cx" ) );
mFont.fontPathCheck->setChecked( config->readNumEntry( "MakePK" ) );
mFont.fontPathEdit->setText( config->readEntry( "FontPath" ) );
fontPathCheckChanged( mFont.fontPathCheck->isChecked() );
// Rendering page
mRender.showSpecialCheck->setChecked( config->readNumEntry( "ShowPS", 0 ) );
mRender.showSpecialCheck->setChecked( config->readNumEntry( "ShowPS", 1 ) );
mRender.showHyperLinksCheck->setChecked(config->readNumEntry("ShowHyperLinks", 1));
}
@ -159,4 +160,4 @@ void OptionDialog::fontPathCheckChanged( bool state )
}
#include "optiondialog.moc"
//#include "optiondialog.moc.cpp"

View file

@ -335,4 +335,4 @@ void Print::readConfig()
}
#undef Inherited
#include "print.moc"
//#include "print.moc.cpp"

View file

@ -192,4 +192,4 @@ void printData::cancelPressed()
}
#undef Inherited
#include "printData.moc"
//#include "printData.moc.cpp"

View file

@ -94,4 +94,4 @@ void printSetup::readConfig()
}
#undef Inherited
#include "printSetup.moc"
//#include "printSetup.moc.cpp"

View file

@ -157,4 +157,4 @@ void printSetupData::removePrinter()
void printSetupData::okPressed()
{
}
#include "printSetupData.moc"
//#include "printSetupData.moc.cpp"