mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Launch system pdf viewer for qucs-doc pdf's
This commit is contained in:
parent
d8e4b16080
commit
a4fc3169f1
@ -1,4 +1,4 @@
|
||||
# Makefile.in generated by automake 1.11.3 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.11.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
@ -17,6 +17,23 @@
|
||||
|
||||
# Install examples
|
||||
VPATH = @srcdir@
|
||||
am__make_dryrun = \
|
||||
{ \
|
||||
am__dry=no; \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
|
||||
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
|
||||
*) \
|
||||
for am__flg in $$MAKEFLAGS; do \
|
||||
case $$am__flg in \
|
||||
*=*|--*) ;; \
|
||||
*n*) am__dry=yes; break;; \
|
||||
esac; \
|
||||
done;; \
|
||||
esac; \
|
||||
test $$am__dry = yes; \
|
||||
}
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
@ -34,9 +51,10 @@ NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
subdir = .
|
||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/../install-sh \
|
||||
$(srcdir)/../missing $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
|
||||
ChangeLog INSTALL NEWS install-sh missing
|
||||
ChangeLog INSTALL NEWS
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
@ -54,6 +72,11 @@ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
@ -284,7 +307,7 @@ distcheck: dist
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
chmod -R a-w $(distdir); chmod u+w $(distdir)
|
||||
mkdir $(distdir)/_build
|
||||
mkdir $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
|
@ -1411,6 +1411,7 @@ bool QucsApp::closeAllFiles()
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void QucsApp::slotFileExamples()
|
||||
{
|
||||
statusBar()->message(tr("Open examples directory..."));
|
||||
@ -1421,14 +1422,23 @@ void QucsApp::slotFileExamples()
|
||||
|
||||
void QucsApp::slotHelpTutorial()
|
||||
{
|
||||
QString path = QDir::toNativeSeparators(QucsSettings.DocDir);
|
||||
QUrl url = QUrl("file:///" + path + "tutorial/" + QObject::sender()->objectName());
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
void QucsApp::slotHelpTechnical()
|
||||
{
|
||||
QString path = QDir::toNativeSeparators(QucsSettings.DocDir);
|
||||
QUrl url = QUrl("file:///" + path + "technical/" + QObject::sender()->objectName());
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
void QucsApp::slotHelpReport()
|
||||
{
|
||||
QString path = QDir::toNativeSeparators(QucsSettings.DocDir);
|
||||
QUrl url = QUrl("file:///" + path + "report/" + QObject::sender()->objectName());
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
|
||||
|
@ -643,8 +643,7 @@ void QucsApp::initActions()
|
||||
helpAboutQt->setWhatsThis(tr("About Qt\n\nAbout Qt by Trolltech"));
|
||||
connect(helpAboutQt, SIGNAL(activated()), SLOT(slotHelpAboutQt()));
|
||||
}
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
// ----------------------------------------------------------
|
||||
void QucsApp::initMenuBar()
|
||||
{
|
||||
@ -785,11 +784,13 @@ void QucsApp::initMenuBar()
|
||||
for(int i=0;i<entries.size();i++)
|
||||
{
|
||||
QAction* helpTechnicalActions = new QAction(entries[i], this);
|
||||
helpTechnicalActions->setObjectName ( entries[i] );
|
||||
helpTechnicalActions->setStatusTip(tr("Open ")+entries[i]);
|
||||
helpTechnicalActions->setWhatsThis(tr(entries[i]+"\n\nOpen "+entries[i]));
|
||||
connect(helpTechnicalActions, SIGNAL(activated()), SLOT(slotHelpTechnical()));
|
||||
helpTechnical->addAction(helpTechnicalActions);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Fill submenu's with filenames of PDF documents
|
||||
@ -803,6 +804,7 @@ void QucsApp::initMenuBar()
|
||||
for(int i=0;i<entries.size();i++)
|
||||
{
|
||||
QAction* helpReportActions = new QAction(entries[i], this);
|
||||
helpReportActions->setObjectName ( entries[i] );
|
||||
helpReportActions->setStatusTip(tr("Open ")+entries[i]);
|
||||
helpReportActions->setWhatsThis(tr(entries[i]+"\n\nOpen "+entries[i]));
|
||||
connect(helpReportActions, SIGNAL(activated()), SLOT(slotHelpReport()));
|
||||
@ -821,6 +823,7 @@ void QucsApp::initMenuBar()
|
||||
for(int i=0;i<entries.size();i++)
|
||||
{
|
||||
QAction* helpTutorialActions = new QAction(entries[i], this);
|
||||
helpTutorialActions->setObjectName ( entries[i] );
|
||||
helpTutorialActions->setStatusTip(tr("Open ")+entries[i]);
|
||||
helpTutorialActions->setWhatsThis(tr(entries[i]+"\n\nOpen "+entries[i]));
|
||||
connect(helpTutorialActions, SIGNAL(activated()), SLOT(slotHelpTutorial()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user