~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to kugar/shell_qt/form1.ui.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
** ui.h extension file, included from the uic-generated form implementation.
 
3
**
 
4
** If you wish to add, delete or rename functions or slots use
 
5
** Qt Designer which will update this file, preserving your code. Create an
 
6
** init() function in place of a constructor, and a destroy() function in
 
7
** place of a destructor.
 
8
*****************************************************************************/
 
9
#include "kugarqt.h"
 
10
#include <qfile.h>
 
11
#include <qmessagebox.h>
 
12
 
 
13
void Form1::init()
 
14
{
 
15
        MReportViewer* rptviewer = new MReportViewer(this);
 
16
 
 
17
        setCentralWidget(rptviewer);
 
18
 
 
19
        QFile f("sample3.kud");
 
20
 
 
21
        if (f.open(IO_ReadOnly))
 
22
        {
 
23
                if (!rptviewer -> setReportData(&f))
 
24
                        QMessageBox::warning(this,"",tr("Invalid data file: %1").arg("sample1.kud"));
 
25
 
 
26
                f.close();
 
27
        }
 
28
        else
 
29
                QMessageBox::warning(this,"",tr("Unable to open data file: %1").arg("sample1.kud"));
 
30
 
 
31
        QFile ff("sample3.kut");
 
32
 
 
33
        if (ff.open(IO_ReadOnly))
 
34
        {
 
35
                if (!rptviewer -> setReportTemplate(&ff))
 
36
                        QMessageBox::warning(this,"",tr("Invalid data file: %1").arg("sample1.kut"));
 
37
 
 
38
                ff.close();
 
39
        }
 
40
        else
 
41
                QMessageBox::warning(this,"",tr("Unable to open data file: %1").arg("sample1.kud"));
 
42
 
 
43
        rptviewer->renderReport();
 
44
        rptviewer->show();
 
45
}
 
46
 
 
47
void Form1::fileNew()
 
48
{
 
49
 
 
50
}
 
51
 
 
52
void Form1::fileOpen()
 
53
{
 
54
 
 
55
}
 
56
 
 
57
void Form1::fileSave()
 
58
{
 
59
 
 
60
}
 
61
 
 
62
void Form1::fileSaveAs()
 
63
{
 
64
 
 
65
}
 
66
 
 
67
void Form1::filePrint()
 
68
{
 
69
 
 
70
}
 
71
 
 
72
void Form1::fileExit()
 
73
{
 
74
 
 
75
}
 
76
 
 
77
void Form1::editUndo()
 
78
{
 
79
 
 
80
}
 
81
 
 
82
void Form1::editRedo()
 
83
{
 
84
 
 
85
}
 
86
 
 
87
void Form1::editCut()
 
88
{
 
89
 
 
90
}
 
91
 
 
92
void Form1::editCopy()
 
93
{
 
94
 
 
95
}
 
96
 
 
97
void Form1::editPaste()
 
98
{
 
99
 
 
100
}
 
101
 
 
102
void Form1::editFind()
 
103
{
 
104
 
 
105
}
 
106
 
 
107
void Form1::helpIndex()
 
108
{
 
109
 
 
110
}
 
111
 
 
112
void Form1::helpContents()
 
113
{
 
114
 
 
115
}
 
116
 
 
117
void Form1::helpAbout()
 
118
{
 
119
 
 
120
}
 
121
 
 
122
void Form1::destroy()
 
123
{
 
124
 
 
125
}