Esempio n. 1
0
OPFResource::OPFResource(const QString &mainfolder, const QString &fullfilepath, QObject *parent)
  : XMLResource(mainfolder, fullfilepath, parent),
    m_NavResource(NULL),
    m_WarnedAboutVersion(false)
{
    CreateMimetypes();
    FillWithDefaultText();
    // Make sure the file exists on disk.
    // Among many reasons, this also solves the problem
    // with the Book Browser not displaying an icon for this resource.
    SaveToDisk();
}
Esempio n. 2
0
Application::Application()
 :	BApplication	(SIGNATURE),
	m_window		(NULL)
{
	PRINT(("Application::Application()\n"));

#ifndef __HAIKU__
	CreateMimetypes();
#endif

	m_window = AppWindow::CreateWindow();
	m_window->Show();
}