as_gui.cpp

changeset 7
751d770bb5e3
parent 1
d64aaa7d146f
child 12
ceb4ba3d2d00
equal deleted inserted replaced
0:13cd6e875813 1:0948bef3e619
1 // 1 //
2 // OSSP asgui - Accounting system graphical user interface 2 // OSSP asgui - Accounting system graphical user interface
3 // Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/) 3 // Copyright (c) 2002-2008 The OSSP Project (http://www.ossp.org/)
4 // Copyright (c) 2002-2004 Ralf S. Engelschall <rse@engelschall.com> 4 // Copyright (c) 2002-2008 Ralf S. Engelschall <rse@engelschall.com>
5 // Copyright (c) 2002-2004 Michael Schloh von Bennewitz <michael@schloh.com> 5 // Copyright (c) 2002-2008 Michael Schloh von Bennewitz <michael@schloh.com>
6 // Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH 6 // Copyright (c) 2002-2008 Cable & Wireless Telecommunications Services GmbH
7 // 7 //
8 // This file is part of OSSP asgui, an accounting system graphical user 8 // This file is part of OSSP asgui, an accounting system graphical user
9 // interface which can be found at http://www.ossp.org/pkg/tool/asgui/. 9 // interface which can be found at http://asgui.europalab.com/.
10 // 10 //
11 // Permission to use, copy, modify, and distribute this software for 11 // Permission to use, copy, modify, and distribute this software for
12 // any purpose with or without fee is hereby granted, provided that 12 // any purpose with or without fee is hereby granted, provided that
13 // the above copyright notice and this permission notice appear in all 13 // the above copyright notice and this permission notice appear in all
14 // copies. 14 // copies.
34 #include "as_except.h" // Exception classes 34 #include "as_except.h" // Exception classes
35 #include "as_table.h" // Class TiTable 35 #include "as_table.h" // Class TiTable
36 #include "as_const.h" // Application constants 36 #include "as_const.h" // Application constants
37 #include "as_pref.h" // Class Preferences 37 #include "as_pref.h" // Class Preferences
38 38
39 //Added by qt3to4:
40 #include <Q3TextStream>
41
39 42
40 // 43 //
41 // Construct a Titraqform which is a child of 'pParent', with the 44 // Construct a Titraqform which is a child of 'pParent', with the
42 // name 'kszName' and widget flags set to 'Flags' 45 // name 'kszName' and widget flags set to 'Flags'
43 // 46 //
44 Titraqform::Titraqform(QWidget *pParent, const char *kszName, WFlags Flags) : 47 Titraqform::Titraqform(QWidget *pParent, const char *kszName, Qt::WFlags Flags) :
45 QMainWindow(pParent, kszName, Flags) 48 Q3MainWindow(pParent, kszName, Flags)
46 { 49 {
47 // Early initializations 50 // Early initializations
48 m_pFiletools = NULL; 51 m_pFiletools = NULL;
49 m_pEdittools = NULL; 52 m_pEdittools = NULL;
50 m_pViewtools = NULL; 53 m_pViewtools = NULL;
79 connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(savePrefs())); 82 connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(savePrefs()));
80 this->setCaption(QString(TITRAQ_APPTITLE) + ' ' + asgui_version.v_short); 83 this->setCaption(QString(TITRAQ_APPTITLE) + ' ' + asgui_version.v_short);
81 84
82 // Rehydrate main window layout and doc positions 85 // Rehydrate main window layout and doc positions
83 QString Laystring = m_pPrefs->getString(TITRAQ_PREFFRAMELAY, NULL); // FIXME: Handle first case better 86 QString Laystring = m_pPrefs->getString(TITRAQ_PREFFRAMELAY, NULL); // FIXME: Handle first case better
84 QTextStream Laystream(&Laystring, IO_ReadOnly); 87 // Q3TextStream Laystream(&Laystring, QIODevice::ReadOnly);
85 Laystream >> *this; 88 // Laystream >> *this;
86 89
87 // // Lock down window size 90 // // Lock down window size
88 // setSizePolicy(QSizePolicy((QSizePolicy::SizeType)0, 91 // setSizePolicy(QSizePolicy((QSizePolicy::SizeType)0,
89 // (QSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth())); 92 // (QSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth()));
90 } 93 }

mercurial