forked from pool/TreeMaker
- Initial release based on version 5.0.1. - Add patches to fix build: * Allow-building-with-system-wxWidgets.patch * Use-explicit-this-for-dependent-base-members.patch * Fix-missing-declaration-of-wxPageSetupData-in-tmwxAp.patch * Replace-call-to-protected-wxWindow-ProcessEvent-by-H.patch * Stop-using-wxT-with-non-literals.patch * Explicitly-cast-argument-to-wxConfigBase-Write.patch * Let-tmwxTextCtrl-constructor-take-a-wxString.patch * Replace-tmwxDoc-GetPrintableName-call-by-GetDocument.patch * Inline-private-wxDocChildFrameAny-OnActivate.patch * Fix-flag-arguments-to-wxFileDialog-constructor.patch * Try-to-resolve-missing-members-in-tmwxHtmlHelpFrame.patch * Don-t-set-private-wxDialog-m_modalShowing.patch * Resolve-ambiguous-call-to-tmOnAssert.patch * Let-tmwxHtmlHelpController-CreateHelpWindow-match-wi.patch * Link-with-GTK-libraries.patch * Internalize-g_openDialogs-in-tmwxOptimizerDialog_gtk.patch - Add patches to fix some bugs: * Fix-annoying-warning-about-suspiciuos-cast.patch * Fix-popups-about-ignored-flags-at-startup.patch * Fix-crash-on-opening-help.patch * Make-some-build-options-configurable.patch OBS-URL: https://build.opensuse.org/request/show/1079531 OBS-URL: https://build.opensuse.org/package/show/science/TreeMaker?expand=0&rev=1
39 lines
649 B
C++
39 lines
649 B
C++
/*
|
|
Converts hhp (HTML Help Workshop) files into cached
|
|
version for faster reading
|
|
|
|
Usage: hhp2cached file.hhp [file2.hhp ...]
|
|
|
|
*/
|
|
|
|
// For compilers that support precompilation, includes "wx/wx.h".
|
|
#include "wx/wxprec.h"
|
|
|
|
#ifndef WX_PRECOMP
|
|
#include "wx/wx.h"
|
|
#endif
|
|
|
|
#include "wx/html/helpdata.h"
|
|
|
|
|
|
class MyApp : public wxApp
|
|
{
|
|
public:
|
|
virtual bool OnInit();
|
|
};
|
|
|
|
wxIMPLEMENT_APP(MyApp);
|
|
|
|
bool MyApp::OnInit()
|
|
{
|
|
for (int i = 1; i < argc; i++)
|
|
{
|
|
wxHtmlHelpData data;
|
|
wxPrintf(wxT("Processing %s...\n"), argv[i]);
|
|
data.SetTempDir(wxPathOnly(argv[i]));
|
|
data.AddBook(argv[i]);
|
|
}
|
|
|
|
return false;
|
|
}
|