SVN_SILENT cleanups

Patch by Angus Leeming

svn path=/trunk/KDE/kdegraphics/kdvi/; revision=453640
This commit is contained in:
Wilfried Huss 2005-08-26 18:18:29 +00:00
parent 42989fa4e3
commit 235c9d7dc4
45 changed files with 133 additions and 104 deletions

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// TeXFont.cpp
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt
@ -25,7 +26,7 @@ class TeXFont {
virtual ~TeXFont();
void setDisplayResolution(void)
void setDisplayResolution()
{
for(unsigned int i=0; i<TeXFontDefinition::max_num_of_chars_in_font; i++)
glyphtable[i].shrunkenCharacter.resize(0, 0);

View file

@ -174,7 +174,7 @@ void TeXFontDefinition::fontNameReceiver(QString fname)
}
void TeXFontDefinition::reset(void)
void TeXFontDefinition::reset()
{
if (font != 0) {
delete font;
@ -212,10 +212,10 @@ void TeXFontDefinition::setDisplayResolution(double _displayResolution_in_dpi)
/** mark_as_used marks the font, and all the fonts it referrs to, as
used, i.e. their FONT_IN_USE-flag is set. */
void TeXFontDefinition::mark_as_used(void)
void TeXFontDefinition::mark_as_used()
{
#ifdef DEBUG_FONT
kdDebug(4300) << "TeXFontDefinition::mark_as_used(void)" << endl;
kdDebug(4300) << "TeXFontDefinition::mark_as_used()" << endl;
#endif
if (flags & TeXFontDefinition::FONT_IN_USE)

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
/*
* The layout of a font information block.
* There is one of these for every loaded font or magnification thereof.
@ -34,8 +35,8 @@ class TeXFont;
class macro {
public:
macro(void);
~macro(void);
macro();
~macro();
unsigned char *pos; /* address of first byte of macro */
unsigned char *end; /* address of last+1 byte */
@ -64,16 +65,16 @@ class TeXFontDefinition {
class fontPool *pool, double _enlargement);
~TeXFontDefinition();
void reset(void);
void reset();
void fontNameReceiver(QString);
// Members for character fonts
void setDisplayResolution(double _displayResolution_in_dpi);
bool isLocated(void) const {return ((flags & FONT_KPSE_NAME) != 0);}
void markAsLocated(void) {flags |= FONT_KPSE_NAME;}
bool isLocated() const {return ((flags & FONT_KPSE_NAME) != 0);}
void markAsLocated() {flags |= FONT_KPSE_NAME;}
void mark_as_used(void);
void mark_as_used();
class fontPool *font_pool; // Pointer to the pool that contains this font.
QString fontname; // name of font, such as "cmr10"
unsigned char flags; // flags byte (see values below)
@ -95,10 +96,10 @@ class TeXFontDefinition {
TeXFontDefinition *first_font; // used by (loaded) virtual fonts, list of fonts used by this vf
#ifdef HAVE_FREETYPE
const QString &getFullFontName(void) const {return fullFontName;};
const QString &getFullEncodingName(void) const {return fullEncodingName;};
const QString &getFullFontName() const {return fullFontName;}
const QString &getFullEncodingName() const {return fullEncodingName;}
#endif
const QString &getFontTypeName(void) const {return fontTypeName;};
const QString &getFontTypeName() const {return fontTypeName;}
#ifdef HAVE_FREETYPE
/** For FREETYPE fonts, which use a map file, this field will

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// TeXFont_PFB.cpp
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt

View file

@ -422,7 +422,7 @@ int TeXFont_PK::PK_packed_num(FILE *fp)
}
void TeXFont_PK::PK_skip_specials(void)
void TeXFont_PK::PK_skip_specials()
{
#ifdef DEBUG_PK
kdDebug(4300) << "TeXFont_PK::PK_skip_specials() called" << endl;
@ -721,7 +721,7 @@ void TeXFont_PK::read_PK_char(unsigned int ch)
}
void TeXFont_PK::read_PK_index(void)
void TeXFont_PK::read_PK_index()
{
#ifdef DEBUG_PK
kdDebug(4300) << "TeXFont_PK::read_PK_index() called" << endl;

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
#ifndef _TEXFONT_PK_H
#define _TEXFONT_PK_H
@ -33,8 +34,8 @@ class TeXFont_PK : public TeXFont {
inline void read_PK_char(unsigned int ch);
inline int PK_get_nyb(FILE *fp);
inline int PK_packed_num(FILE *fp);
inline void read_PK_index(void);
inline void PK_skip_specials(void);
inline void read_PK_index();
inline void PK_skip_specials();
};
#endif

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// TeXFont_TFM.h
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt
@ -19,9 +20,9 @@ class glyph;
class fix_word {
public:
void fromINT32(Q_INT32 val) {value = val;};
void fromDouble(double val) {value = (Q_INT32)(val * (1<<20) + 0.5);};
double toDouble(void) {return (double(value)) / (double(1<<20));};
void fromINT32(Q_INT32 val) {value = val;}
void fromDouble(double val) {value = (Q_INT32)(val * (1<<20) + 0.5);}
double toDouble() {return (double(value)) / (double(1<<20));}
Q_INT32 value;
};

View file

@ -13,7 +13,7 @@
//#define DEBUG_ENDIANREADER
Q_UINT8 bigEndianByteReader::readUINT8(void)
Q_UINT8 bigEndianByteReader::readUINT8()
{
// This check saveguards us against segmentation fault. It is also
// necessary for virtual fonts, which do not end whith EOP.
@ -29,7 +29,7 @@ Q_UINT8 bigEndianByteReader::readUINT8(void)
return *(command_pointer++);
}
Q_UINT16 bigEndianByteReader::readUINT16(void)
Q_UINT16 bigEndianByteReader::readUINT16()
{
// This check saveguards us against segmentation fault. It is also
// necessary for virtual fonts, which do not end whith EOP.
@ -42,7 +42,7 @@ Q_UINT16 bigEndianByteReader::readUINT16(void)
return a;
}
Q_UINT32 bigEndianByteReader::readUINT32(void)
Q_UINT32 bigEndianByteReader::readUINT32()
{
// This check saveguards us against segmentation fault. It is also
// necessary for virtual fonts, which do not end whith EOP.

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
/* This file is part of KDVI (C) 2001 by Stefan Kebekus (kebekus@kde.org)
This library is free software; you can redistribute it and/or
@ -35,15 +36,15 @@ class bigEndianByteReader {
/** If command_pointer >= end_pointer, this method return EOP (=140)
and exists. Otherwise, the method returns the unsigned byte
and increases the command_pointer by one. */
Q_UINT8 readUINT8(void);
Q_UINT8 readUINT8();
/** Similar to the method above, only that the method reads a big
endian 2-byte word and increases the pointer by two. */
Q_UINT16 readUINT16(void);
Q_UINT16 readUINT16();
/** Similar to the method above, only that the method reads a big
endian 4-byte word and increases the pointer by four. */
Q_UINT32 readUINT32(void);
Q_UINT32 readUINT32();
void writeUINT32(Q_UINT32 a);

1
dvi.h
View file

@ -1,3 +1,4 @@
// -*- C++ -*-
/*
* Mnemonics for bytes in dvi file.
*/

View file

@ -100,7 +100,7 @@ dvifile::dvifile(const dvifile *old, fontPool *fp)
}
void dvifile::process_preamble(void)
void dvifile::process_preamble()
{
command_pointer = dvi_Data();
@ -142,7 +142,7 @@ void dvifile::process_preamble(void)
/** find_postamble locates the beginning of the postamble and leaves
the file ready to start reading at that location. */
void dvifile::find_postamble(void)
void dvifile::find_postamble()
{
// Move backwards through the TRAILER bytes
command_pointer = dvi_Data() + size_of_file - 1;
@ -160,7 +160,7 @@ void dvifile::find_postamble(void)
}
void dvifile::read_postamble(void)
void dvifile::read_postamble()
{
Q_UINT8 magic_byte = readUINT8();
if (magic_byte != POST) {

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
//
// Class: dviFile
//
@ -45,7 +46,7 @@ class dvifile : public bigEndianByteReader
// Returns a pointer to the DVI file's data, or 0 if no data has yet
// been allocated.
Q_UINT8 * dvi_Data() {return dviData.data();};
Q_UINT8 * dvi_Data() {return dviData.data();}
QIODevice::Offset size_of_file;
QString errorMsg;
@ -74,7 +75,7 @@ class dvifile : public bigEndianByteReader
/** Returns the number of centimeters per DVI unit in this DVI
file. */
double getCmPerDVIunit(void) const {return cmPerDVIunit;}
double getCmPerDVIunit() const {return cmPerDVIunit;}
/** Returns the magnification of the DVI file, as described in the
DVI Standard. */
@ -91,7 +92,7 @@ class dvifile : public bigEndianByteReader
/** Sets new DVI data; all old data is erased. EXPERIMENTAL, use
with care. */
void setNewData(Q3MemArray<Q_UINT8> newData) {dviData = newData;};
void setNewData(Q3MemArray<Q_UINT8> newData) {dviData = newData;}
/** Page numbers that appear in a DVI document need not be
ordered. Worse, page numbers need not be unique. This method
@ -101,13 +102,13 @@ class dvifile : public bigEndianByteReader
private:
/** process_preamble reads the information in the preamble and
stores it into global variables for later use. */
void process_preamble(void);
void find_postamble(void);
void process_preamble();
void find_postamble();
/** read_postamble reads the information in the postamble, storing
it into global variables. It also takes care of reading in all
of the pixel files for the fonts used in the job. */
void read_postamble(void);
void prepare_pages(void);
void read_postamble();
void prepare_pages();
/** Offset in DVI file of last page, set in read_postamble(). */

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
/***************************************************************************
* Copyright (C) 2005 by Wilfried Huss *
* Wilfried.Huss@gmx.at *

View file

@ -131,7 +131,7 @@ void dviRenderer::setPrefs(bool flag_showPS, const QString &str_editorCommand, b
}
void dviRenderer::showInfo(void)
void dviRenderer::showInfo()
{
mutex.lock();
info->setDVIData(dviFile);
@ -229,7 +229,7 @@ void dviRenderer::drawPage(double resolution, RenderedDocumentPage *page)
}
void dviRenderer::showThatSourceInformationIsPresent(void)
void dviRenderer::showThatSourceInformationIsPresent()
{
// In principle, we should use a KMessagebox here, but we want to
// add a button "Explain in more detail..." which opens the
@ -285,7 +285,7 @@ void dviRenderer::showThatSourceInformationIsPresent(void)
}
void dviRenderer::embedPostScript(void)
void dviRenderer::embedPostScript()
{
#ifdef DEBUG_DVIRENDERER
kdDebug(4300) << "dviRenderer::embedPostScript()" << endl;
@ -695,7 +695,7 @@ void dviRenderer::setResolution(double resolution_in_DPI)
}
void dviRenderer::clearStatusBar(void)
void dviRenderer::clearStatusBar()
{
emit setStatusBarText( QString::null );
}

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
//
// Class: dviRenderer
//
@ -106,10 +107,10 @@ public:
void setPrefs(bool flag_showPS, const QString &editorCommand, bool useFontHints );
virtual bool supportsTextSearch(void) {return true;};
virtual bool supportsTextSearch() {return true;}
bool showPS(void) { return _postscript; };
int curr_page(void) { return current_page+1; };
bool showPS() { return _postscript; };
int curr_page() { return current_page+1; };
virtual bool isValidFile(const QString fileName);
@ -121,7 +122,7 @@ public:
virtual Anchor parseReference(const QString &reference);
// These should not be public... only for the moment
void read_postamble(void);
void read_postamble();
void draw_part(double current_dimconv, bool is_vfmacro);
void set_vf_char(unsigned int cmd, unsigned int ch);
void set_char(unsigned int cmd, unsigned int ch);
@ -133,22 +134,22 @@ public:
void printErrorMsgForSpecials(QString msg);
void color_special(QString cp);
void html_href_special(QString cp);
void html_anchor_end(void);
void draw_page(void);
void html_anchor_end();
void draw_page();
public slots:
void exportPS(QString fname = QString::null, QString options = QString::null, KPrinter *printer = 0);
void exportPDF();
void showInfo(void);
void showInfo();
void handleSRCLink(const QString &linkText, QMouseEvent *e, DocumentWidget *widget);
void embedPostScript(void);
void abortExternalProgramm(void);
void embedPostScript();
void abortExternalProgramm();
/** simply emits "setStatusBarText( QString::null )". This is used
in dviRenderer::mouseMoveEvent(), see the explanation there. */
void clearStatusBar(void);
void clearStatusBar();
@ -167,7 +168,7 @@ private slots:
/** This method shows a dialog that tells the user that source
information is present, and gives the opportunity to open the
manual and learn more about forward and inverse search */
void showThatSourceInformationIsPresent(void);
void showThatSourceInformationIsPresent();
private:
/** This method parses a color specification of type "gray 0.5", "rgb
@ -229,7 +230,7 @@ private:
/** TPIC specials */
void TPIC_setPen_special(QString cp);
void TPIC_addPath_special(QString cp);
void TPIC_flushPath_special(void);
void TPIC_flushPath_special();
/** This timer is used to delay clearing of the statusbar. Clearing
the statusbar is delayed to avoid awful flickering when the

View file

@ -566,7 +566,7 @@ void dviRenderer::draw_part(double current_dimconv, bool is_vfmacro)
}
void dviRenderer::draw_page(void)
void dviRenderer::draw_page()
{
// Reset a couple of variables
HTML_href = 0;

View file

@ -46,7 +46,7 @@ extern QPainter foreGroundPaint; // QPainter used for text
void dviRenderer::exportPDF(void)
void dviRenderer::exportPDF()
{
// It could perhaps happen that a kShellProcess, which runs an
// editor for inverse search, is still running. In that case, we
@ -116,7 +116,7 @@ void dviRenderer::exportPDF(void)
if (progress != 0) {
progress->TextLabel2->setText( i18n("Please be patient") );
progress->setTotalSteps( dviFile->total_pages );
qApp->connect(progress, SIGNAL(finished(void)), this, SLOT(abortExternalProgramm(void)));
qApp->connect(progress, SIGNAL(finished()), this, SLOT(abortExternalProgramm()));
}
proc = new KShellProcess();
@ -219,7 +219,7 @@ void dviRenderer::exportPS(QString fname, QString options, KPrinter *printer)
if (progress != 0) {
progress->TextLabel2->setText( i18n("Please be patient") );
progress->setTotalSteps( dviFile->total_pages );
qApp->connect(progress, SIGNAL(finished(void)), this, SLOT(abortExternalProgramm(void)));
qApp->connect(progress, SIGNAL(finished()), this, SLOT(abortExternalProgramm()));
}
// There is a major problem with dvips, at least 5.86 and lower: the
@ -366,7 +366,7 @@ void dviRenderer::editorCommand_terminated(KProcess *sproc)
}
void dviRenderer::abortExternalProgramm(void)
void dviRenderer::abortExternalProgramm()
{
delete proc; // Deleting the KProcess kills the child.
proc = 0;

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
//
// Class: DVIWidget
//

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
//
// C++ Interface: dvisourcesplitter
//

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// fontEncoding.h
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt

View file

@ -11,7 +11,7 @@
#include "fontEncodingPool.h"
fontEncodingPool::fontEncodingPool(void)
fontEncodingPool::fontEncodingPool()
{
}

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// fontEncodingPool.h
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt
@ -21,7 +22,7 @@
class fontEncodingPool {
public:
fontEncodingPool(void);
fontEncodingPool();
fontEncoding *findByName(const QString &name);

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// fontMap.h
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt

View file

@ -42,7 +42,7 @@ bool fontPoolTimerFlag;
//#define DEBUG_FONTPOOL
fontPool::fontPool(void)
fontPool::fontPool()
: progress( "fontgen", // Chapter in the documentation for help.
i18n( "KDVI is currently generating bitmap fonts..." ),
i18n( "Aborts the font generation. Don't do this." ),
@ -53,7 +53,7 @@ fontPool::fontPool(void)
0 )
{
#ifdef DEBUG_FONTPOOL
kdDebug(4300) << "fontPool::fontPool(void) called" << endl;
kdDebug(4300) << "fontPool::fontPool() called" << endl;
#endif
setName("Font Pool");
@ -106,10 +106,10 @@ fontPool::fontPool(void)
}
fontPool::~fontPool(void)
fontPool::~fontPool()
{
#ifdef DEBUG_FONTPOOL
kdDebug(4300) << "fontPool::~fontPool(void) called" << endl;
kdDebug(4300) << "fontPool::~fontPool() called" << endl;
#endif
#ifdef HAVE_FREETYPE
@ -171,7 +171,7 @@ class TeXFontDefinition *fontPool::appendx(QString fontname, Q_UINT32 checksum,
}
QString fontPool::status(void)
QString fontPool::status()
{
#ifdef DEBUG_FONTPOOL
kdDebug(4300) << "fontPool::status() called" << endl;
@ -227,10 +227,10 @@ QString fontPool::status(void)
}
bool fontPool::areFontsLocated(void)
bool fontPool::areFontsLocated()
{
#ifdef DEBUG_FONTPOOL
kdDebug(4300) << "fontPool::areFontsLocated(void) called" << endl;
kdDebug(4300) << "fontPool::areFontsLocated() called" << endl;
#endif
// Is there a font whose name we did not try to find out yet?
@ -248,7 +248,7 @@ bool fontPool::areFontsLocated(void)
}
void fontPool::locateFonts(void)
void fontPool::locateFonts()
{
kpsewhichOutput = QString::null;
@ -500,7 +500,7 @@ void fontPool::setDisplayResolution( double _displayResolution_in_dpi )
}
void fontPool::markFontsAsLocated(void)
void fontPool::markFontsAsLocated()
{
TeXFontDefinition *fontp=fontList.first();
while ( fontp != 0 ) {
@ -511,10 +511,10 @@ void fontPool::markFontsAsLocated(void)
void fontPool::mark_fonts_as_unused(void)
void fontPool::mark_fonts_as_unused()
{
#ifdef DEBUG_FONTPOOL
kdDebug(4300) << "fontPool::mark_fonts_as_unused(void) called" << endl;
kdDebug(4300) << "fontPool::mark_fonts_as_unused() called" << endl;
#endif
TeXFontDefinition *fontp = fontList.first();
@ -525,7 +525,7 @@ void fontPool::mark_fonts_as_unused(void)
}
void fontPool::release_fonts(void)
void fontPool::release_fonts()
{
#ifdef DEBUG_FONTPOOL
kdDebug(4300) << "Release_fonts" << endl;

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// fontpool.h
//
// (C) 2001-2004 Stefan Kebekus
@ -59,22 +60,22 @@ public:
current working directory for the kpsewhich command, so that
kpsewhich will find fonts that are stored in the DVI file's
directory. */
void setExtraSearchPath( const QString &path ) {extraSearchPath = path;};
void setExtraSearchPath( const QString &path ) {extraSearchPath = path;}
/** Returns the path that is set as the current working directory
for the kpsewhich command, so that kpsewhich will find fonts
that are stored in the DVI file's directory. */
QString getExtraSearchPath( ) const {return extraSearchPath;};
QString getExtraSearchPath( ) const {return extraSearchPath;}
/** Sets the resolution of the output device. */
void setDisplayResolution( double _displayResolution_in_dpi );
/** Sets the number of centimeters per DVI unit. */
void setCMperDVIunit( double CMperDVI );
double getCMperDVIunit(void) const {return CMperDVIunit;}
double getCMperDVIunit() const {return CMperDVIunit;}
// If return value is true, font hinting should be used if possible
bool getUseFontHints(void) const {return useFontHints;}
bool getUseFontHints() const {return useFontHints;}
// This method adds a font to the list. If the font is not currently
// loaded, it's file will be located and font::load_font will be
@ -96,12 +97,12 @@ public:
// is closed. Because the next dvi-file which will be loaded is
// likely to use most of the fonts again, this method implements a
// convenient way of re-using fonts without loading them repeatedly.
void mark_fonts_as_unused(void);
void mark_fonts_as_unused();
/** This methods removes all fonts from the fontpool (and thus from
memory) which are labeled "not in use". For explanation, see the
mark_fonts_as_unused method. */
void release_fonts(void);
void release_fonts();
#ifdef HAVE_FREETYPE
/** A handle to the FreeType library, which is used by TeXFont_PFM
@ -145,17 +146,17 @@ public slots:
// characters. If not null, the bool pointed at by virtualFontsFound
// is set to true if one of the fonts found is a virtual font. If no
// virtual font is found, the variable remains untouched.
void locateFonts(void);
void locateFonts();
private:
// This method goes through the list of fonts, and marks each of them
// as 'located'. Used, e.g. after a fatal error in the font lookup
// process to ensure that the problematic kpsewhich is not used again
void markFontsAsLocated(void);
void markFontsAsLocated();
// Checks if all the fonts file names have been located, and returns
// true if that is so.
bool areFontsLocated(void);
bool areFontsLocated();
// This flag is used by PFB fonts to determine if the FREETYPE engine
// should use hinted fonts or not
@ -196,7 +197,7 @@ private:
// This string is set to the DVI file's path. It is used to set the
// current working directory for the kpsewhich command, so that
// kpsewhich will find fonts that are stored in the DVI file's
// directory. Used by the locateFonts(void) and the locateFonts(bool,
// directory. Used by the locateFonts() and the locateFonts(bool,
// bool, bool *) method. Values are set by the
// setExtraSearchPath(...) method
QString extraSearchPath;

View file

@ -60,7 +60,7 @@ fontProgressDialog::fontProgressDialog( QString helpIndex, QString label, QStrin
progress = 0;
procIO = 0;
qApp->connect(this, SIGNAL(finished(void)), this, SLOT(killProcIO(void)));
qApp->connect(this, SIGNAL(finished()), this, SLOT(killProcIO()));
}
@ -93,7 +93,7 @@ void fontProgressDialog::setTotalSteps(int steps, KProcIO *proc)
}
void fontProgressDialog::killProcIO(void)
void fontProgressDialog::killProcIO()
{
if (!procIO.isNull())
procIO->kill();

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
//
// fontprogress.h
//
@ -65,7 +66,7 @@ public:
private slots:
/** Calling this slot does nothing than to kill the process that is
pointed to be procIO, if procIO is not zero.*/
void killProcIO(void);
void killProcIO();
private:
QLabel* TextLabel1;

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
#ifndef _GLYPH_H
#define _GLYPH_H

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// infodialog.h
//
// (C) 2001 Stefan Kebekus

1
kdvi.h
View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// kdvi.h
//
// global variables and definitions for kdvi.

View file

@ -124,14 +124,14 @@ KAboutData* KDVIMultiPage::createAboutData()
}
void KDVIMultiPage::slotEmbedPostScript(void)
void KDVIMultiPage::slotEmbedPostScript()
{
DVIRenderer.embedPostScript();
emit askingToCheckActions();
}
void KDVIMultiPage::setEmbedPostScriptAction(void)
void KDVIMultiPage::setEmbedPostScriptAction()
{
if ((DVIRenderer.dviFile == 0) || (DVIRenderer.dviFile->numberOfExternalPSFiles == 0))
embedPSAction->setEnabled(false);
@ -413,7 +413,7 @@ void KDVIMultiPage::enableActions(bool b)
}
void KDVIMultiPage::doEnableWarnings(void)
void KDVIMultiPage::doEnableWarnings()
{
KMessageBox::information (scrollView(), i18n("All messages and warnings will now be shown."));
KMessageBox::enableAllMessages();
@ -421,13 +421,13 @@ void KDVIMultiPage::doEnableWarnings(void)
}
void KDVIMultiPage::showTip(void)
void KDVIMultiPage::showTip()
{
KTipDialog::showTip(scrollView(), "kdvi/tips", true);
}
void KDVIMultiPage::showTipOnStart(void)
void KDVIMultiPage::showTipOnStart()
{
KTipDialog::showTip(scrollView(), "kdvi/tips");
}

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
#ifndef __KDVIMULTIPAGE_H
#define __KDVIMULTIPAGE_H
@ -28,7 +29,7 @@ public:
/// KDVI offers read- and write functionality must re-implement this
/// method and return true here.
virtual bool isReadWrite() {return true;};
virtual bool isReadWrite() {return true;}
virtual void addConfigDialogs(KConfigDialog* configDialog);
@ -51,9 +52,9 @@ public slots:
/** Similar to slotSave, but does not ask for a filename. */
virtual void slotSave_defaultFilename();
void setEmbedPostScriptAction(void);
void setEmbedPostScriptAction();
void slotEmbedPostScript(void);
void slotEmbedPostScript();
virtual void preferencesChanged();
@ -67,8 +68,8 @@ protected slots:
void doExportText();
void doEnableWarnings();
void showTip(void);
void showTipOnStart(void);
void showTip();
void showTipOnStart();
private:
// Points to the same object as renderer to avoid downcasting.

View file

@ -44,10 +44,10 @@
//#define KDVI_MULTIPAGE_DEBUG
void KDVIMultiPage::doExportText(void)
void KDVIMultiPage::doExportText()
{
#ifdef KDVI_MULTIPAGE_DEBUG
kdDebug(4300) << "KDVIMultiPage::doExportText(void) called" << endl;
kdDebug(4300) << "KDVIMultiPage::doExportText() called" << endl;
#endif
// Paranoid safety checks

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// kprinterwrapper.h
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt
@ -14,7 +15,7 @@
class KDVIPrinterWrapper : public KPrinter
{
public:
KDVIPrinterWrapper(void) : KPrinter(true, QPrinter::ScreenResolution) {; };
KDVIPrinterWrapper() : KPrinter(true, QPrinter::ScreenResolution) {; };
void doPreparePrinting() { preparePrinting(); };
};

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// optionDiologWidget.h
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt

View file

@ -124,7 +124,7 @@ void optionDialogSpecialWidget::slotExtraHelpButton( const QString & )
kapp->invokeHelp( "inv-search", "kdvi" );
}
void optionDialogSpecialWidget::apply(void)
void optionDialogSpecialWidget::apply()
{
Prefs::setEditorCommand(EditorCommand);
}

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
// optionDialogSpecialWidget.h
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt
@ -21,7 +22,7 @@ class optionDialogSpecialWidget : public optionDialogSpecialWidget_base
~optionDialogSpecialWidget();
public slots:
void apply(void);
void apply();
void slotComboBox(int item);
void slotUserDefdEditorCommand( const QString &text );
void slotExtraHelpButton( const QString &anchor);

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
//#define PERFORMANCE_MEASUREMENT

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
/***************************************************************************
* Copyright (C) 2005 by Stefan Kebekus *
* kebekus@kde.org *

View file

@ -130,7 +130,7 @@ QColor ghostscript_interface::getBackgroundColor(PageNumber page) {
}
void ghostscript_interface::clear(void) {
void ghostscript_interface::clear() {
PostScriptHeaderString->truncate(0);
// Deletes all items, removes temporary files, etc.

1
psgs.h
View file

@ -1,3 +1,4 @@
// -*- C++ -*-
//
// ghostscript_interface
//

View file

@ -1,3 +1,4 @@
// -*- C++ -*-
/***************************************************************************
* Copyright (C) 2005 by Wilfried Huss *
* Wilfried.Huss@gmx.at *

View file

@ -258,7 +258,7 @@ void dviRenderer::html_href_special(QString cp)
}
void dviRenderer::html_anchor_end(void)
void dviRenderer::html_anchor_end()
{
#ifdef DEBUG_SPECIAL
kdDebug(4300) << "HTML-special, anchor-end" << endl;
@ -428,7 +428,7 @@ void dviRenderer::epsf_special(QString cp)
}
void dviRenderer::TPIC_flushPath_special(void)
void dviRenderer::TPIC_flushPath_special()
{
#ifdef DEBUG_SPECIAL
kdDebug(4300) << "TPIC special flushPath" << endl;

4
vf.cpp
View file

@ -63,10 +63,10 @@ extern void oops(QString message);
* The main routine
*/
void TeXFontDefinition::read_VF_index(void)
void TeXFontDefinition::read_VF_index()
{
#ifdef DEBUG_FONTS
kdDebug(4300) << "font::read_VF_index(void)" << endl;
kdDebug(4300) << "font::read_VF_index()" << endl;
#endif
FILE *VF_file = file;
unsigned char cmnd;

1
xdvi.h
View file

@ -1,3 +1,4 @@
// -*- C++ -*-
#ifndef _xdvi_h
#define _xdvi_h