some BarIcon() => UserIcon()

svn path=/trunk/kdegraphics/kdvi/; revision=44819
This commit is contained in:
Geert Jansen 2000-03-26 22:20:57 +00:00
parent cd6943dbb0
commit 9b2bf9ee0c
2 changed files with 9 additions and 6 deletions

View file

@ -232,6 +232,8 @@ void kdvi::makeButtons()
#define I(f,o,s,h) toolBar()->insertButton( BarIcon(f),\
0, SIGNAL(clicked()), o, SLOT(s()), TRUE, h);
#define U(f,o,s,h) toolBar()->insertButton( UserIcon(f),\
0, SIGNAL(clicked()), o, SLOT(s()), TRUE, h);
I( "fileopen", this, fileOpen, i18n("Open document ...") )
I( "reload", dviwin, drawPage, i18n("Reload document") )
@ -239,15 +241,16 @@ void kdvi::makeButtons()
toolBar()->insertSeparator();
I( "start", dviwin, firstPage, i18n("Go to first page") )
I( "back", dviwin, prevPage, i18n("Go to previous page") )
I( "forwpage", dviwin, goForward, i18n("Go down then top of next page") )
U( "forwpage", dviwin, goForward, i18n("Go down then top of next page") )
I( "forward", dviwin, nextPage, i18n("Go to next page") )
I( "finish", dviwin, lastPage, i18n("Go to last page") )
toolBar()->insertSeparator();
I( "viewmag-", dviwin, nextShrink, i18n("Decrease magnification") )
I( "smalltext", this, selectSmall, i18n("Small text") )
I( "largetext", this, selectLarge, i18n("Large text") )
U( "smalltext", this, selectSmall, i18n("Small text") )
U( "largetext", this, selectLarge, i18n("Large text") )
I( "viewmag+", dviwin, prevShrink, i18n("Increase magnification") )
#undef I
#undef U
}

View file

@ -63,7 +63,7 @@ KDVIPart::KDVIPart( QWidget *parent, const char *name )
QIconSet(BarIcon("back", KDVIFactory::instance())) ,
0, dviwin, SLOT(prevPage() ), actionCollection(), "prevPage");
forPageAct = new KAction(i18n("Go down then top of next page"),
QIconSet(BarIcon("forwpage", KDVIFactory::instance())) ,
QIconSet(UserIcon("forwpage", KDVIFactory::instance())) ,
0, dviwin, SLOT(goForward() ), actionCollection(), "goForward");
forwardAct = new KAction(i18n("Go to next page"),
QIconSet(BarIcon("forward", KDVIFactory::instance())) ,
@ -75,10 +75,10 @@ KDVIPart::KDVIPart( QWidget *parent, const char *name )
QIconSet(BarIcon("viewmag-", KDVIFactory::instance())) ,
0, dviwin, SLOT(nextShrink() ), actionCollection(), "nextShrink");
smallAct = new KAction(i18n("Small text"),
QIconSet(BarIcon("smalltext", KDVIFactory::instance())) ,
QIconSet(UserIcon("smalltext", KDVIFactory::instance())) ,
0, w, SLOT(selectSmall() ), actionCollection(), "selectSmall");
largeAct = new KAction(i18n("Large text"),
QIconSet(BarIcon("largetext", KDVIFactory::instance())) ,
QIconSet(UserIcon("largetext", KDVIFactory::instance())) ,
0, w, SLOT(selectLarge() ), actionCollection(), "selectLarge");
zoomInAct = new KAction(i18n("Increase magnification"),
QIconSet(BarIcon("viewmag+", KDVIFactory::instance())) ,