install headers; refs #119

master
Marc Wäckerlin 13 years ago
parent b7279a5eab
commit aecd32ca6a
  1. 13
      src/browser.hxx
  2. 6
      src/main.cxx
  3. 2
      src/makefile.am
  4. 2
      src/swissbrowser_de.ts
  5. 2
      src/swissbrowser_en.ts
  6. 2
      src/swissbrowser_fr.ts
  7. 2
      src/swissbrowser_it.ts

@ -262,6 +262,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
return browser;
}
protected:
void closeEvent(QCloseEvent *event) {
@ -273,6 +274,14 @@ class Browser: public QMainWindow, protected Ui::Browser {
QApplication::exit(0);
}
public Q_SLOTS:
void on_actionEditBookmarks_triggered() {
_editbookmarks->show();
}
private Q_SLOTS:
void load() {
@ -602,10 +611,6 @@ class Browser: public QMainWindow, protected Ui::Browser {
}
}
void on_actionEditBookmarks_triggered() {
_editbookmarks->show();
}
void zoom(int i) {
LOG<<i;
statusBar()->showMessage(tr("Zoom: %1%").arg(i));

@ -334,6 +334,7 @@ int main(int argv, char** argc) try {
bool login(false);
Settings::MimeTypes mimetypes;
QString bookmarks;
bool editbookmarks(false);
QStringList args(app.arguments());
std::auto_ptr<QSettings> settings
(std::auto_ptr<QSettings>(new QSettings("SwissSign", "SwissBrowser")));
@ -359,6 +360,8 @@ int main(int argv, char** argc) try {
" start <tool> for mimetype <mime>\n"
" -b, --bookmarks <file>\n"
" load and save bookmarks from and to <file>\n"
" -e, --edit-bookmarks\n"
" start in bookmark-edition mode\n"
" <url> optional full URL\n"
"Environment:\n"
" LANGUAGE \"de\", \"en\", ... (actual: %5)\n"
@ -387,6 +390,8 @@ int main(int argv, char** argc) try {
actlib = *it;
} else if ((*it=="-b" || *it=="--bookmarks") && ++it!=args.end()) {
bookmarks = *it;
} else if ((*it=="-e" || *it=="--edit-bookmarks")) {
editbookmarks = true;
} else if ((*it=="-s" || *it=="--settings") && ++it!=args.end()) {
settings = std::auto_ptr<QSettings>
(new QSettings(*it, QSettings::IniFormat));
@ -433,6 +438,7 @@ int main(int argv, char** argc) try {
if (env.contains("QTWEBKIT_PLUGIN_PATH")) qt_drt_overwritePluginDirectories();
Browser browser(actlib, urls, settings.get(), mimetypes, silent,
login, quirks, bookmarks);
if (editbookmarks) browser.on_actionEditBookmarks_triggered();
return app.exec();
} catch (std::exception& x) {
std::cerr<<"**** Error: "<<x.what()<<std::endl;

@ -7,7 +7,7 @@
SUBDIRS = qbrowserlib designer
#include_HEADERS = @srcdir@/qbrowserlib/*.hxx
include_HEADERS = @srcdir@/qbrowserlib/*.hxx
if !MINGW32
if MAC

@ -732,6 +732,8 @@ Options:
start &lt;tool&gt; for mimetype &lt;mime&gt;
-b, --bookmarks &lt;file&gt;
load and save bookmarks from and to &lt;file&gt;
-e, --edit-bookmarks
start in bookmark-edition mode
&lt;url&gt; optional full URL
Environment:
LANGUAGE &quot;de&quot;, &quot;en&quot;, ... (actual: %5)

@ -732,6 +732,8 @@ Options:
start &lt;tool&gt; for mimetype &lt;mime&gt;
-b, --bookmarks &lt;file&gt;
load and save bookmarks from and to &lt;file&gt;
-e, --edit-bookmarks
start in bookmark-edition mode
&lt;url&gt; optional full URL
Environment:
LANGUAGE &quot;de&quot;, &quot;en&quot;, ... (actual: %5)

@ -732,6 +732,8 @@ Options:
start &lt;tool&gt; for mimetype &lt;mime&gt;
-b, --bookmarks &lt;file&gt;
load and save bookmarks from and to &lt;file&gt;
-e, --edit-bookmarks
start in bookmark-edition mode
&lt;url&gt; optional full URL
Environment:
LANGUAGE &quot;de&quot;, &quot;en&quot;, ... (actual: %5)

@ -732,6 +732,8 @@ Options:
start &lt;tool&gt; for mimetype &lt;mime&gt;
-b, --bookmarks &lt;file&gt;
load and save bookmarks from and to &lt;file&gt;
-e, --edit-bookmarks
start in bookmark-edition mode
&lt;url&gt; optional full URL
Environment:
LANGUAGE &quot;de&quot;, &quot;en&quot;, ... (actual: %5)

Loading…
Cancel
Save