KDE formprint patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1085 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-10-05 14:01:06 +00:00
parent 2c80c7bdd1
commit 5ee94eef10
16 changed files with 2243 additions and 54 deletions

View File

@ -1,3 +1,31 @@
2000-10-03 John Levon <moz@compsoc.man.ac.uk>
* config/kde.m4: fix consecutive ./configure runs,
look for qtarch, fix library order
* src/frontends/kde/Makefile.am: tidy up,
add Print dialog, add .dlg dependencies
* src/frontends/kde/FormPrint.C:
* src/frontends/kde/FormPrint.h:
* src/frontends/kde/formprintdialog.C:
* src/frontends/kde/formprintdialog.h:
* src/frontends/kde/formprintdialogdata.C:
* src/frontends/kde/formprintdialogdata.h:
* src/frontends/kde/dlg/formprintdialog.dlg: add
print dialog
* src/frontends/kde/dlg/README: Added explanatory readme
* src/frontends/kde/dlg/checkinitorder.pl: small perl
script to double-check qtarch's output
* src/frontends/kde/formindexdialog.C:
* src/frontends/kde/formindexdialogdata.C:
* src/frontends/kde/formindexdialogdata.h:
* src/frontends/kde/dlg/formindexdialog.dlg: update
for qtarch, minor fixes
2000-10-05 Allan Rae <rae@lyx.org>
* src/BufferView_pimpl.C (buffer): don't hide all buffer dependent

View File

@ -633,6 +633,8 @@ dnl should check it's not Qt2, so it will fail now, rather than in KDE check
SAVE_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -I$qt_includes -L$qt_libraries"
dnl specify we are definitely C++ compiling first
AC_LANG_CPLUSPLUS
AC_TRY_COMPILE([
#include <qglobal.h>
],
@ -836,7 +838,7 @@ AC_DEFUN(KDE_CREATE_LIBS_ALIASES,
[
AC_REQUIRE([KDE_MISC_TESTS])
KDE_LIBS='-lqt -lkdecore -lkdeui -lkfm -lkfile'
KDE_LIBS='-lkfile -lkfm -lkdeui -lkdecore -lqt'
AC_SUBST(KDE_LIBS)
# LIB_X11='-lX11 $(LIBSOCKET)'
# AC_SUBST(LIB_X11)
@ -1230,6 +1232,7 @@ AC_DEFUN(KDE_DO_IT_ALL,
AC_PREFIX_DEFAULT(${KDEDIR:-/usr/local/kde})
KDE_PROG_LIBTOOL
AC_PATH_KDE
AC_PATH_PROG(QTARCH, "qtarch",qtarch-notinstalled)
])
AC_DEFUN(AC_CHECK_RPATH,

View File

@ -0,0 +1,142 @@
/*
* FormPrint.C
* (C) 2000 LyX Team
* John Levon, moz@compsoc.man.ac.uk
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <config.h>
#include "formprintdialog.h"
#include "Dialogs.h"
#include "FormPrint.h"
#include "gettext.h"
#include "buffer.h"
#include "lyxrc.h"
#include "QtLyXView.h"
#include "PrinterParams.h"
#include "Liason.h"
#include "BufferView.h"
#include "support/lstrings.h"
#include <kmsgbox.h>
#ifdef SIGC_CXX_NAMESPACES
using SigC::slot;
#endif
#ifdef CXX_WORKING_NAMESPACES
using Liason::printBuffer;
using Liason::getPrinterParams;
#endif
FormPrint::FormPrint(LyXView *v, Dialogs *d)
: dialog_(0), lv_(v), d_(d), h_(0), u_(0)
{
// let the dialog be shown
// This is a permanent connection so we won't bother
// storing a copy because we won't be disconnecting.
d->showPrint.connect(slot(this, &FormPrint::show));
}
FormPrint::~FormPrint()
{
delete dialog_;
}
void FormPrint::update()
{
if (!lv_->view()->available())
return;
PrinterParams pp(getPrinterParams(lv_->buffer()));
dialog_->setTarget(pp.target);
dialog_->setPrinter(pp.printer_name.c_str());
dialog_->setFile(pp.file_name.c_str());
dialog_->setWhichPages(pp.which_pages);
dialog_->setReverse(pp.reverse_order);
dialog_->setSort(pp.unsorted_copies);
dialog_->setCount(tostr(pp.count_copies).c_str());
if (!pp.from_page.empty()) {
dialog_->setFrom(pp.from_page.c_str());
if (pp.to_page)
dialog_->setTo(tostr(pp.to_page).c_str());
else
dialog_->setTo("");
} else {
dialog_->setFrom("");
dialog_->setTo("");
}
}
void FormPrint::print()
{
if (!lv_->view()->available())
return;
string from;
int to(0);
if (strlen(dialog_->getFrom())) {
from = dialog_->getFrom();
if (strlen(dialog_->getTo()))
to = strToInt(dialog_->getTo());
}
int retval;
retval = printBuffer(lv_->buffer(), PrinterParams(dialog_->getTarget(),
string(dialog_->getPrinter()), string(dialog_->getFile()),
dialog_->getWhichPages(), from, to, dialog_->getReverse(),
dialog_->getSort(), strToInt(dialog_->getCount())));
if (retval!=0) {
// FIXME: should have a utility class for this
string message(_("The error :\n\n"));
message += strerror(retval);
message += _("\n\noccurred while printing.\n");
message += _("Check the parameters are correct.\n");
KMsgBox msg(0, _("LyX: Print Error"), message.c_str(), KMsgBox::EXCLAMATION, _("&OK"));
msg.raise();
msg.setActiveWindow();
msg.show();
}
}
void FormPrint::show()
{
if (!dialog_)
dialog_ = new FormPrintDialog(this, 0, _("LyX: Print"));
if (!dialog_->isVisible()) {
h_ = d_->hideBufferDependent.connect(slot(this, &FormPrint::hide));
u_ = d_->updateBufferDependent.connect(slot(this, &FormPrint::update));
}
dialog_->raise();
dialog_->setActiveWindow();
update();
dialog_->show();
}
void FormPrint::close()
{
h_.disconnect();
u_.disconnect();
}
void FormPrint::hide()
{
dialog_->hide();
close();
}

View File

@ -0,0 +1,65 @@
/* FormPrint.h
* (C) 2000 LyX Team
* John Levon, moz@compsoc.man.ac.uk
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef FORMPRINT_H
#define FORMPRINT_H
#include "DialogBase.h"
#include "boost/utility.hpp"
class Dialogs;
class LyXView;
class FormPrintDialog;
class FormPrint : public DialogBase, public noncopyable {
public:
/**@name Constructors and Destructors */
//@{
///
FormPrint(LyXView *, Dialogs *);
///
~FormPrint();
//@}
/// start print
void print();
/// close
void close();
private:
/// Create the dialog if necessary, update it and display it.
void show();
/// Hide the dialog.
void hide();
/// Update the dialog.
void update();
/// Real GUI implementation.
FormPrintDialog * dialog_;
/// the LyXView we belong to
LyXView * lv_;
/** Which Dialogs do we belong to?
Used so we can get at the signals we have to connect to.
*/
Dialogs * d_;
/// Hide connection.
SigC::Connection h_;
/// Update connection.
SigC::Connection u_;
};
#endif

View File

@ -7,13 +7,15 @@ INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \
-I${top_srcdir}/src/frontends/xforms
# just to make sure, automake makes them
BUILTSOURCES = formcopyrightdialog_moc.C \
formurldialog_moc.C \
BUILTSOURCES = formcitationdialog_moc.C \
formcopyrightdialog_moc.C \
formindexdialog_moc.C \
formindexdialogdata_moc.C \
formcitationdialog_moc.C \
formprintdialog_moc.C \
formprintdialogdata_moc.C \
formrefdialog_moc.C \
formtocdialog_moc.C \
formrefdialog_moc.C
formurldialog_moc.C
DISTCLEANFILES = $(BUILTSOURCES) *.orig *.rej *~ *.bak core
@ -30,8 +32,6 @@ libkde_la_OBJADD = \
../xforms/form_paragraph.lo \
../xforms/FormPreferences.lo \
../xforms/form_preferences.lo \
../xforms/FormPrint.lo \
../xforms/form_print.lo \
../xforms/FormTabular.lo \
../xforms/form_tabular.lo \
../xforms/input_validators.lo \
@ -47,33 +47,39 @@ libkde_la_SOURCES = \
Dialogs.C \
GUIRunTime.C \
QtLyXView.h \
FormCitation.C \
FormCitation.h \
FormCopyright.C \
FormCopyright.h \
FormIndex.C \
FormIndex.h \
FormPrint.C \
FormPrint.h \
FormRef.C \
FormRef.h \
FormToc.C \
FormToc.h \
FormUrl.C \
FormUrl.h \
formcitationdialog.C \
formcitationdialog.h \
formcopyrightdialog.C \
formcopyrightdialog.h \
formcopyrightdialogdata.C \
FormUrl.C \
FormUrl.h \
formurldialog.C \
formurldialog.h \
FormIndex.C \
FormIndex.h \
formindexdialog.C \
formindexdialog.h \
formindexdialogdata.C \
formindexdialogdata.h \
FormCitation.C \
FormCitation.h \
formcitationdialog.C \
formcitationdialog.h \
FormToc.C \
FormToc.h \
formtocdialog.C \
formtocdialog.h \
FormRef.C \
FormRef.h \
formprintdialog.C \
formprintdialog.h \
formprintdialogdata.C \
formprintdialogdata.h \
formrefdialog.C \
formrefdialog.h \
formtocdialog.C \
formtocdialog.h \
formurldialog.C \
formurldialog.h \
$(BUILTSOURCES)
# These still have to be added. Sooner or later. ARRae-20000129
@ -97,31 +103,44 @@ dist-hook:
done ; \
done
# dialog file dependencies
formindexdialogdata.C formindexdialogdata.h: dlg/formindexdialog.dlg
$(QTARCH) -g dlg/formindexdialog.dlg
formprintdialogdata.C formprintdialogdata.h: dlg/formprintdialog.dlg
$(QTARCH) -g dlg/formprintdialog.dlg
# add a dependency for every moc file to be full portable
# I've added a key binding to emacs for this.
formcitationdialog.C: formcitationdialog_moc.C
formcitationdialog_moc.C: formcitationdialog.h
$(MOC) formcitationdialog.h -o formcitationdialog_moc.C
formcopyrightdialog.C: formcopyrightdialog_moc.C
formcopyrightdialog_moc.C: formcopyrightdialog.h
$(MOC) formcopyrightdialog.h -o formcopyrightdialog_moc.C
formurldialog.C: formurldialog_moc.C
formurldialog_moc.C: formurldialog.h
$(MOC) formurldialog.h -o formurldialog_moc.C
formindexdialog.C: formindexdialog_moc.C
formindexdialog_moc.C: formindexdialog.h
$(MOC) formindexdialog.h -o formindexdialog_moc.C
formindexdialogdata_moc.C: formindexdialogdata.h
$(MOC) formindexdialogdata.h -o formindexdialogdata_moc.C
formcitationdialog.C: formcitationdialog_moc.C
formcitationdialog_moc.C: formcitationdialog.h
$(MOC) formcitationdialog.h -o formcitationdialog_moc.C
formtocdialog.C: formtocdialog_moc.C
formtocdialog_moc.C: formtocdialog.h
$(MOC) formtocdialog.h -o formtocdialog_moc.C
formprintdialog.C: formprintdialog_moc.C
formprintdialog_moc.C: formprintdialog.h
$(MOC) formprintdialog.h -o formprintdialog_moc.C
formprintdialogdata_moc.C: formprintdialogdata.h
$(MOC) formprintdialogdata.h -o formprintdialogdata_moc.C
formrefdialog.C: formrefdialog_moc.C
formrefdialog_moc.C: formrefdialog.h
$(MOC) formrefdialog.h -o formrefdialog_moc.C
formtocdialog.C: formtocdialog_moc.C
formtocdialog_moc.C: formtocdialog.h
$(MOC) formtocdialog.h -o formtocdialog_moc.C
formurldialog.C: formurldialog_moc.C
formurldialog_moc.C: formurldialog.h
$(MOC) formurldialog.h -o formurldialog_moc.C

View File

@ -0,0 +1,61 @@
These files are generated with qtarch-1.4-5 which can be downloaded
from
http://qtarch.sourceforge.net/
FIXME. Note this is *not* the latest version, as they only
support Qt 2.0.
You should compile in the KDE module when you compile qtarch-1.4.
For me this was just a case of a make in the module/kde/ directory,
and then you can add the .so library file in the qtarch GUI.
Note that the formsomethingdialogdata.* files are automatically
generated, but the derived class files are *not* (i.e. they have
been edited by hand). So you should only ever generate the base
class files, and then propogate any changes into the derived class
by hand.
Some tips and guidelines for qtarch and the KDE frontend :
o the default button should be the one that causes least harm, unless
the action can be undone. So Print should default to cancel, whereas
insert index entry can be undone, so should default to OK
o the dialog should derive from QWidget (set in Properties)
o the dialog should always have the gettext option set
o give every widget a name - useful for the geometry layouts later
o don't bother setting min/max sizes for anything, but do set the size Hint
stuff appropriately. e.g. QLineEdit's should have a max height specified by
size Hint, but variable width
o if you map a variable make it the same as the widget name
o radio groups are done automagically based on positioning
o grid units are 5 pixels
o set alignment before placing a widget inside a layout, it doesn't seem to
update properly. Alternatively you can just edit the .dlg file directly
o push buttons are arranged symmetrically across the dialog e.g.
<1 stretch> <button> <2 stretch> <button> <2 stretch> <button> <1 stretch>
o for GroupBox and similar, you set the children in the layout manager
o do the geometry layouts last. you cannot alter the geometry of widgets
whilst they're being managed which makes any settings a pain, which
are useful mainly while editing the dialog in qtarch
o when doing layout, add all the layouts before any of the widgets otherwise
qtarch has a tendency to get confused
o qtarch often produces code that initialises stuff in the wrong order.
This is nasty, but usually dumps core so is noticable. Either way, the
cheesy perl script checkinitorder.pl will verify the produced files for
you - if it complains you need to hack the .dlg file to re-arrange the order.
- jbl

View File

@ -0,0 +1,24 @@
#! /usr/bin/perl -w
# this is a corny script to check that qtarch hasn't fscked up
# the initialisation order of the widgets. perl hackers are free
# to improve this
# usage: dlg/checkinitorder.pl *data.C
$found{"this"} = 1;
while (<>) {
if (/new/ && ! /Layout/) {
( $varname, $parent) = split('=');
$varname =~ s/^\s*//;
$varname =~ s/\s*$//;
$found{$varname} = 1;
$parent =~ s/^.*\(\s*//;
$parent =~ s/\s*,.*$//;
chomp($parent);
if (!defined($found{$parent})) {
print "Widget $varname constructed with ",
"uninitialised parent $parent !\n";
}
}
};

View File

@ -7,11 +7,12 @@ Dialog {
DataSource {formindexdialogdata.C}
DataName {FormIndexDialogData}
WindowBaseClass {QWidget}
UseGetText {TRUE}
WindowFlags {53248}
}
WidgetLayout {
InitialPos {-1 -1}
Size {200 65}
Size {250 105}
MinSize {200 65}
MaxSize {32767 65}
Grid {5}
@ -25,7 +26,7 @@ Label {
LineWidth {1}
MidLineWidth {0}
FrameMargin {0}
Rect {5 5 60 25}
Rect {5 15 60 25}
Name {Label_1}
Variable {labelindex}
MinimumSize {60 25}
@ -36,6 +37,10 @@ Label {
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {NoFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
@ -46,7 +51,7 @@ LineEdit {
EchoMode {Normal}
MaxLength {32767}
FrameShown {TRUE}
Rect {70 5 125 25}
Rect {70 15 175 25}
Name {LineEdit_1}
Variable {index}
MinimumSize {125 25}
@ -57,6 +62,10 @@ LineEdit {
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {TRUE}
FocusPolicy {StrongFocus}
BackgroundMode {PaletteBase}
FontPropagation {NoChildren}
@ -67,10 +76,10 @@ PushButton {
Default {FALSE}
AutoDefault {TRUE}
IsMenuButton {FALSE}
Text {OK}
Text {&OK}
AutoRepeat {FALSE}
AutoResize {FALSE}
Rect {30 35 80 25}
Rect {24 65 80 25}
Name {PushButton_OK}
Variable {buttonOk}
Signal {[Protected] clicked --> clickedOK ()}
@ -82,6 +91,10 @@ PushButton {
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
@ -95,7 +108,7 @@ PushButton {
Text {&Cancel}
AutoRepeat {FALSE}
AutoResize {FALSE}
Rect {115 35 80 25}
Rect {146 65 80 25}
Name {PushButton_Cancel}
Variable {buttonCancel}
Signal {[Protected] clicked --> clickedCancel ()}
@ -107,6 +120,10 @@ PushButton {
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
@ -162,9 +179,15 @@ Layout_Widget-1.2.1.2{
BoxStretch {1}
Alignment {36}
}
Layout_Widget-1.2.1.3{
Box_Stretch-1.2.1.3{
Stretch {2}
}
Layout_Widget-1.2.1.4{
Widget {PushButton_Cancel}
BoxStretch {1}
Alignment {36}
}
Box_Stretch-1.2.1.5{
Stretch {1}
}
}

View File

@ -0,0 +1,943 @@
DlgEdit:v1.2:Dialog:
Dialog {
ClassHeader {formprintdialog.h}
ClassSource {formprintdialog.C}
ClassName {FormPrintDialog}
DataHeader {formprintdialogdata.h}
DataSource {formprintdialogdata.C}
DataName {FormPrintDialogData}
WindowBaseClass {QWidget}
UseGetText {TRUE}
WindowFlags {0}
}
WidgetLayout {
InitialPos {-1 -1}
Size {435 255}
MinSize {0 0}
MaxSize {32767 32767}
Grid {5}
GroupBox {
Title {Pages}
Alignment {Left}
Style {49}
LineWidth {1}
MidLineWidth {0}
FrameMargin {0}
Rect {5 5 140 208}
Name {pagesGroupBox}
Variable {pagesGroupBox}
MinimumSize {15 47}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {FALSE}
minHeightSizeHint {FALSE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {FALSE}
FocusPolicy {NoFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
ButtonGroup {
Exclusive {TRUE}
Title {}
Alignment {Left}
Style {0}
LineWidth {1}
MidLineWidth {0}
FrameMargin {0}
Rect {10 22 130 106}
Name {pagesRadioGroup}
Variable {pagesRadioGroup}
MinimumSize {10 20}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {FALSE}
minHeightSizeHint {FALSE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {FALSE}
FocusPolicy {NoFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
GroupBox {
Title {Copies}
Alignment {Left}
Style {49}
LineWidth {1}
MidLineWidth {0}
FrameMargin {0}
Rect {150 5 280 51}
Name {copies}
Variable {copies}
MinimumSize {30 10}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {FALSE}
minHeightSizeHint {FALSE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {FALSE}
FocusPolicy {NoFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
GroupBox {
Title {Print to}
Alignment {Left}
Style {49}
LineWidth {1}
MidLineWidth {0}
FrameMargin {0}
Rect {150 61 280 152}
Name {printToGroupBox}
Variable {printToGroupBox}
MinimumSize {25 30}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {FALSE}
minHeightSizeHint {FALSE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {FALSE}
FocusPolicy {NoFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
ButtonGroup {
Exclusive {TRUE}
Title {}
Alignment {Left}
Style {0}
LineWidth {1}
MidLineWidth {0}
FrameMargin {0}
Rect {162 94 131 62}
Name {printToRadioGroup}
Variable {printToRadioGroup}
MinimumSize {10 15}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {FALSE}
minHeightSizeHint {FALSE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {FALSE}
FocusPolicy {NoFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
PushButton {
ToggleButton {FALSE}
Default {FALSE}
AutoDefault {FALSE}
IsMenuButton {FALSE}
Text {&Print}
AutoRepeat {FALSE}
AutoResize {FALSE}
Rect {75 218 70 32}
Name {print}
Variable {print}
Signal {[Protected] clicked --> clickedPrint ()}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
PushButton {
ToggleButton {FALSE}
Default {FALSE}
AutoDefault {FALSE}
IsMenuButton {FALSE}
Text {&Cancel}
AutoRepeat {FALSE}
AutoResize {FALSE}
Rect {290 218 70 32}
Name {cancel}
Variable {cancel}
Signal {[Protected] clicked --> clickedCancel ()}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
RadioButton {
Checked {FALSE}
Text {&All pages}
AutoRepeat {FALSE}
AutoResize {FALSE}
Rect {15 36 120 30}
Name {allpages}
Variable {allpages}
MinimumSize {80 20}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
RadioButton {
Checked {FALSE}
Text {&Even pages}
AutoRepeat {FALSE}
AutoResize {FALSE}
Rect {15 104 120 10}
Name {evenpages}
Variable {evenpages}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
KDE::KIntLineEdit {
Text {}
EchoMode {Normal}
MaxLength {32767}
FrameShown {TRUE}
Rect {98 133 42 22}
Name {from}
Variable {from}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {TRUE}
FocusPolicy {StrongFocus}
BackgroundMode {PaletteBase}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
Label {
Text {From}
Alignment {289}
AutoResize {FALSE}
Margin {-1}
Style {0}
LineWidth {1}
MidLineWidth {0}
FrameMargin {0}
Rect {10 133 83 22}
Name {fromLabel}
Variable {fromLabel}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {NoFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
Label {
Text {To}
Alignment {289}
AutoResize {FALSE}
Margin {-1}
Style {0}
LineWidth {1}
MidLineWidth {0}
FrameMargin {0}
Rect {10 160 83 21}
Name {toLabel}
Variable {toLabel}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {NoFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
RadioButton {
Checked {FALSE}
Text {&Odd pages}
AutoRepeat {FALSE}
AutoResize {FALSE}
Rect {15 80 120 10}
Name {oddpages}
Variable {oddpages}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
RadioButton {
Checked {FALSE}
Text {&Printer}
AutoRepeat {FALSE}
AutoResize {FALSE}
Rect {167 99 121 16}
Name {toprinter}
Variable {toprinter}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
RadioButton {
Checked {FALSE}
Text {&File}
AutoRepeat {FALSE}
AutoResize {FALSE}
Rect {167 135 121 16}
Name {tofile}
Variable {tofile}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
LineEdit {
Text {}
EchoMode {Normal}
MaxLength {32767}
FrameShown {TRUE}
Rect {298 94 120 19}
Name {printername}
Variable {printername}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {TRUE}
FocusPolicy {StrongFocus}
BackgroundMode {PaletteBase}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
CheckBox {
Checked {FALSE}
Text {&Reverse order}
AutoRepeat {FALSE}
AutoResize {TRUE}
Rect {10 186 130 22}
Name {reverse}
Variable {reverse}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
LineEdit {
Text {}
EchoMode {Normal}
MaxLength {32767}
FrameShown {TRUE}
Rect {298 137 120 19}
Name {filename}
Variable {filename}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {TRUE}
FocusPolicy {StrongFocus}
BackgroundMode {PaletteBase}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
CheckBox {
Checked {FALSE}
Text {&Sort}
AutoRepeat {FALSE}
AutoResize {TRUE}
Rect {382 17 43 31}
Name {sort}
Variable {sort}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
PushButton {
ToggleButton {FALSE}
Default {FALSE}
AutoDefault {FALSE}
IsMenuButton {FALSE}
Text {&Browse}
AutoRepeat {FALSE}
AutoResize {FALSE}
Rect {287 177 131 15}
Name {browse}
Variable {browse}
Signal {[Protected] clicked --> clickedBrowse ()}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {TabFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
KDE::KIntLineEdit {
Text {}
EchoMode {Normal}
MaxLength {32767}
FrameShown {TRUE}
Rect {290 17 43 31}
Name {count}
Variable {count}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {TRUE}
FocusPolicy {StrongFocus}
BackgroundMode {PaletteBase}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
Label {
Text {Count}
Alignment {289}
AutoResize {FALSE}
Margin {-1}
Style {0}
LineWidth {1}
MidLineWidth {0}
FrameMargin {0}
Rect {198 17 44 31}
Name {countLabel}
Variable {countLabel}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {TRUE}
maxHeightSizeHint {TRUE}
FocusPolicy {NoFocus}
BackgroundMode {PaletteBackground}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
KDE::KIntLineEdit {
Text {}
EchoMode {Normal}
MaxLength {32767}
FrameShown {TRUE}
Rect {98 160 42 21}
Name {to}
Variable {to}
MinimumSize {0 0}
MaximumSize {32767 32767}
BackgroundPixmap {}
UseBackgroundPixmap {FALSE}
AdjustSize {FALSE}
ReadPixmapFromData {FALSE}
DataVarName {}
DataLenName {}
minWidthSizeHint {TRUE}
minHeightSizeHint {TRUE}
maxWidthSizeHint {FALSE}
maxHeightSizeHint {TRUE}
FocusPolicy {StrongFocus}
BackgroundMode {PaletteBase}
FontPropagation {NoChildren}
PalettePropagation {NoChildren}
}
Grid_Layout-1{
Border {5}
AutoBorder {5}
Name {}
ColumnInfo {5 1}
BoxStretch {1}
}
Grid_Row-1.1{
Stretch {5}
Spacing {0}
}
Box_Layout-1.1.1{
Direction {LeftToRight}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Layout_Widget-1.1.1.1{
Widget {pagesGroupBox}
BoxStretch {1}
Alignment {36}
}
Box_Layout-1.1.1.1.1{
Direction {TopToBottom}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Box_Spacing-1.1.1.1.1.1{
Spacing {12}
}
Layout_Widget-1.1.1.1.1.2{
Widget {pagesRadioGroup}
BoxStretch {4}
Alignment {33}
}
Box_Layout-1.1.1.1.1.2.1{
Direction {TopToBottom}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {2}
}
Box_Stretch-1.1.1.1.1.2.1.1{
Stretch {1}
}
Layout_Widget-1.1.1.1.1.2.1.2{
Widget {allpages}
BoxStretch {1}
Alignment {1}
}
Box_Stretch-1.1.1.1.1.2.1.3{
Stretch {1}
}
Layout_Widget-1.1.1.1.1.2.1.4{
Widget {oddpages}
BoxStretch {1}
Alignment {1}
}
Box_Stretch-1.1.1.1.1.2.1.5{
Stretch {1}
}
Layout_Widget-1.1.1.1.1.2.1.6{
Widget {evenpages}
BoxStretch {1}
Alignment {1}
}
Box_Stretch-1.1.1.1.1.2.1.7{
Stretch {1}
}
Box_Layout-1.1.1.1.1.3{
Direction {LeftToRight}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Layout_Widget-1.1.1.1.1.3.1{
Widget {fromLabel}
BoxStretch {2}
Alignment {36}
}
Layout_Widget-1.1.1.1.1.3.2{
Widget {from}
BoxStretch {1}
Alignment {36}
}
Box_Layout-1.1.1.1.1.4{
Direction {LeftToRight}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Layout_Widget-1.1.1.1.1.4.1{
Widget {toLabel}
BoxStretch {2}
Alignment {36}
}
Layout_Widget-1.1.1.1.1.4.2{
Widget {to}
BoxStretch {1}
Alignment {36}
}
Layout_Widget-1.1.1.1.1.5{
Widget {reverse}
BoxStretch {1}
Alignment {36}
}
Box_Layout-1.1.1.2{
Direction {TopToBottom}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {2}
}
Layout_Widget-1.1.1.2.1{
Widget {copies}
BoxStretch {1}
Alignment {36}
}
Box_Layout-1.1.1.2.1.1{
Direction {TopToBottom}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Box_Spacing-1.1.1.2.1.1.1{
Spacing {7}
}
Box_Layout-1.1.1.2.1.1.2{
Direction {LeftToRight}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Box_Stretch-1.1.1.2.1.1.2.1{
Stretch {1}
}
Layout_Widget-1.1.1.2.1.1.2.2{
Widget {countLabel}
BoxStretch {1}
Alignment {36}
}
Box_Stretch-1.1.1.2.1.1.2.3{
Stretch {1}
}
Layout_Widget-1.1.1.2.1.1.2.4{
Widget {count}
BoxStretch {1}
Alignment {36}
}
Box_Stretch-1.1.1.2.1.1.2.5{
Stretch {1}
}
Layout_Widget-1.1.1.2.1.1.2.6{
Widget {sort}
BoxStretch {1}
Alignment {36}
}
Box_Spacing-1.1.1.2.1.1.3{
Spacing {3}
}
Layout_Widget-1.1.1.2.2{
Widget {printToGroupBox}
BoxStretch {3}
Alignment {36}
}
Box_Layout-1.1.1.2.2.1{
Direction {TopToBottom}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Box_Spacing-1.1.1.2.2.1.1{
Spacing {12}
}
Box_Stretch-1.1.1.2.2.1.2{
Stretch {1}
}
Box_Layout-1.1.1.2.2.1.3{
Direction {LeftToRight}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {3}
}
Box_Spacing-1.1.1.2.2.1.3.1{
Spacing {7}
}
Layout_Widget-1.1.1.2.2.1.3.2{
Widget {printToRadioGroup}
BoxStretch {1}
Alignment {33}
}
Box_Layout-1.1.1.2.2.1.3.2.1{
Direction {TopToBottom}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Layout_Widget-1.1.1.2.2.1.3.2.1.1{
Widget {toprinter}
BoxStretch {1}
Alignment {1}
}
Box_Stretch-1.1.1.2.2.1.3.2.1.2{
Stretch {1}
}
Layout_Widget-1.1.1.2.2.1.3.2.1.3{
Widget {tofile}
BoxStretch {1}
Alignment {1}
}
Box_Layout-1.1.1.2.2.1.3.3{
Direction {TopToBottom}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Layout_Widget-1.1.1.2.2.1.3.3.1{
Widget {printername}
BoxStretch {1}
Alignment {36}
}
Box_Stretch-1.1.1.2.2.1.3.3.2{
Stretch {1}
}
Layout_Widget-1.1.1.2.2.1.3.3.3{
Widget {filename}
BoxStretch {1}
Alignment {36}
}
Box_Spacing-1.1.1.2.2.1.3.4{
Spacing {7}
}
Box_Stretch-1.1.1.2.2.1.4{
Stretch {1}
}
Box_Layout-1.1.1.2.2.1.5{
Direction {LeftToRight}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Box_Stretch-1.1.1.2.2.1.5.1{
Stretch {1}
}
Layout_Widget-1.1.1.2.2.1.5.2{
Widget {browse}
BoxStretch {1}
Alignment {36}
}
Box_Spacing-1.1.1.2.2.1.5.3{
Spacing {7}
}
Box_Stretch-1.1.1.2.2.1.6{
Stretch {1}
}
Grid_Row-1.2{
Stretch {1}
Spacing {0}
}
Box_Layout-1.2.1{
Direction {LeftToRight}
Border {5}
AutoBorder {5}
Name {}
Strut {0}
Stretch {1}
}
Box_Stretch-1.2.1.1{
Stretch {1}
}
Layout_Widget-1.2.1.2{
Widget {print}
BoxStretch {1}
Alignment {36}
}
Box_Stretch-1.2.1.3{
Stretch {2}
}
Layout_Widget-1.2.1.4{
Widget {cancel}
BoxStretch {1}
Alignment {36}
}
Box_Stretch-1.2.1.5{
Stretch {1}
}
}

View File

@ -57,11 +57,11 @@ void FormIndexDialog::setReadOnly(bool readonly)
if (readonly) {
index->setFocusPolicy(QWidget::NoFocus);
buttonOk->setEnabled(false);
buttonCancel->setText(_("Close"));
buttonCancel->setText(_("&Close"));
} else {
index->setFocusPolicy(QWidget::StrongFocus);
index->setFocus();
buttonOk->setEnabled(true);
buttonCancel->setText(_("Cancel"));
buttonCancel->setText(_("&Cancel"));
}
}

View File

@ -3,13 +3,15 @@
--- Qt Architect generated file ---
File: formindexdialogdata.C
Last generated: Thu Sep 14 15:35:19 2000
Last generated: Tue Oct 3 16:28:36 2000
DO NOT EDIT!!! This file will be automatically
regenerated by qtarch. All changes will be lost.
*********************************************************************/
#include <gettext.h>
#include <qpixmap.h>
#include <qlayout.h>
#include "formindexdialogdata.h"
@ -26,7 +28,7 @@ FormIndexDialogData::FormIndexDialogData
Inherited( parent, name, 53248 )
{
labelindex = new QLabel( this, "Label_1" );
labelindex->setGeometry( 5, 5, 60, 25 );
labelindex->setGeometry( 5, 15, 60, 25 );
labelindex->setMinimumSize( 60, 25 );
labelindex->setMaximumSize( 60, 25 );
labelindex->setFocusPolicy( QWidget::NoFocus );
@ -37,25 +39,25 @@ FormIndexDialogData::FormIndexDialogData
labelindex->setLineWidth( 1 );
labelindex->setMidLineWidth( 0 );
labelindex->QFrame::setMargin( 0 );
labelindex->setText( "Keyword:" );
labelindex->setText( _("Keyword:") );
labelindex->setAlignment( 289 );
labelindex->setMargin( -1 );
index = new QLineEdit( this, "LineEdit_1" );
index->setGeometry( 70, 5, 125, 25 );
index->setGeometry( 70, 15, 175, 25 );
index->setMinimumSize( 125, 25 );
index->setMaximumSize( 32767, 25 );
index->setFocusPolicy( QWidget::StrongFocus );
index->setBackgroundMode( QWidget::PaletteBase );
index->setFontPropagation( QWidget::NoChildren );
index->setPalettePropagation( QWidget::NoChildren );
index->setText( "" );
index->setText( _("") );
index->setMaxLength( 32767 );
index->setFrame( QLineEdit::Normal );
index->setFrame( TRUE );
buttonOk = new QPushButton( this, "PushButton_OK" );
buttonOk->setGeometry( 30, 35, 80, 25 );
buttonOk->setGeometry( 24, 65, 80, 25 );
buttonOk->setMinimumSize( 80, 25 );
buttonOk->setMaximumSize( 80, 25 );
connect( buttonOk, SIGNAL(clicked()), SLOT(clickedOK()) );
@ -63,7 +65,7 @@ FormIndexDialogData::FormIndexDialogData
buttonOk->setBackgroundMode( QWidget::PaletteBackground );
buttonOk->setFontPropagation( QWidget::NoChildren );
buttonOk->setPalettePropagation( QWidget::NoChildren );
buttonOk->setText( "OK" );
buttonOk->setText( _("&OK") );
buttonOk->setAutoRepeat( FALSE );
buttonOk->setAutoResize( FALSE );
buttonOk->setToggleButton( FALSE );
@ -72,7 +74,7 @@ FormIndexDialogData::FormIndexDialogData
buttonOk->setIsMenuButton( FALSE );
buttonCancel = new QPushButton( this, "PushButton_Cancel" );
buttonCancel->setGeometry( 115, 35, 80, 25 );
buttonCancel->setGeometry( 146, 65, 80, 25 );
buttonCancel->setMinimumSize( 80, 25 );
buttonCancel->setMaximumSize( 80, 25 );
connect( buttonCancel, SIGNAL(clicked()), SLOT(clickedCancel()) );
@ -80,7 +82,7 @@ FormIndexDialogData::FormIndexDialogData
buttonCancel->setBackgroundMode( QWidget::PaletteBackground );
buttonCancel->setFontPropagation( QWidget::NoChildren );
buttonCancel->setPalettePropagation( QWidget::NoChildren );
buttonCancel->setText( "&Cancel" );
buttonCancel->setText( _("&Cancel") );
buttonCancel->setAutoRepeat( FALSE );
buttonCancel->setAutoResize( FALSE );
buttonCancel->setToggleButton( FALSE );
@ -88,6 +90,36 @@ FormIndexDialogData::FormIndexDialogData
buttonCancel->setAutoDefault( FALSE );
buttonCancel->setIsMenuButton( FALSE );
if (labelindex->sizeHint().width()!=-1)
labelindex->setMinimumWidth(labelindex->sizeHint().width());
if (labelindex->sizeHint().height()!=-1)
labelindex->setMinimumHeight(labelindex->sizeHint().height());
if (labelindex->sizeHint().width()!=-1)
labelindex->setMaximumWidth(labelindex->sizeHint().width());
if (labelindex->sizeHint().height()!=-1)
labelindex->setMaximumHeight(labelindex->sizeHint().height());
if (index->sizeHint().width()!=-1)
index->setMinimumWidth(index->sizeHint().width());
if (index->sizeHint().height()!=-1)
index->setMinimumHeight(index->sizeHint().height());
if (index->sizeHint().height()!=-1)
index->setMaximumHeight(index->sizeHint().height());
if (buttonOk->sizeHint().width()!=-1)
buttonOk->setMinimumWidth(buttonOk->sizeHint().width());
if (buttonOk->sizeHint().height()!=-1)
buttonOk->setMinimumHeight(buttonOk->sizeHint().height());
if (buttonOk->sizeHint().width()!=-1)
buttonOk->setMaximumWidth(buttonOk->sizeHint().width());
if (buttonOk->sizeHint().height()!=-1)
buttonOk->setMaximumHeight(buttonOk->sizeHint().height());
if (buttonCancel->sizeHint().width()!=-1)
buttonCancel->setMinimumWidth(buttonCancel->sizeHint().width());
if (buttonCancel->sizeHint().height()!=-1)
buttonCancel->setMinimumHeight(buttonCancel->sizeHint().height());
if (buttonCancel->sizeHint().width()!=-1)
buttonCancel->setMaximumWidth(buttonCancel->sizeHint().width());
if (buttonCancel->sizeHint().height()!=-1)
buttonCancel->setMaximumHeight(buttonCancel->sizeHint().height());
QGridLayout* qtarch_layout_1 = new QGridLayout( this, 2, 1, 5, 5, NULL );
qtarch_layout_1->addColSpacing( 0, 5 );
qtarch_layout_1->setColStretch( 0, 1 );
@ -105,8 +137,10 @@ FormIndexDialogData::FormIndexDialogData
qtarch_layout_1_2_1->addStrut( 0 );
qtarch_layout_1_2_1->addStretch( 1 );
qtarch_layout_1_2_1->addWidget( buttonOk, 1, 36 );
qtarch_layout_1_2_1->addStretch( 2 );
qtarch_layout_1_2_1->addWidget( buttonCancel, 1, 36 );
resize( 200,65 );
qtarch_layout_1_2_1->addStretch( 1 );
resize( 250,105 );
setMinimumSize( 200, 65 );
setMaximumSize( 32767, 65 );
}

View File

@ -3,7 +3,7 @@
--- Qt Architect generated file ---
File: formindexdialogdata.h
Last generated: Thu Sep 14 15:35:19 2000
Last generated: Tue Oct 3 16:28:36 2000
DO NOT EDIT!!! This file will be automatically
regenerated by qtarch. All changes will be lost.

View File

@ -0,0 +1,30 @@
/*
* formprintdialog.C
* (C) 2000, LyX Team
* John Levon, moz@compsoc.man.ac.uk
*/
#include "formprintdialogdata.h"
#include "formprintdialog.h"
#include "support/lstrings.h"
#include <kfiledialog.h>
#include <gettext.h>
#include <cstring>
#define Inherited FormPrintDialogData
FormPrintDialog::FormPrintDialog(FormPrint *f, QWidget* parent, const char * name)
: FormPrintDialogData(parent, name), form_(f)
{
setCaption(name);
}
FormPrintDialog::~FormPrintDialog()
{
}
void FormPrintDialog::clickedBrowse()
{
// FIXME: open a file dialog here
}

View File

@ -0,0 +1,131 @@
/*
* formprintdialog.h
* (C) 2000 LyX Team
* John Levon, moz@compsoc.man.ac.uk
*/
#ifndef FORMPRINTDIALOG_H
#define FORMPRINTDIALOG_H
#include "formprintdialogdata.h"
#include "lyxrc.h"
#include "PrinterParams.h"
#include "FormPrint.h"
class FormPrintDialog : public FormPrintDialogData
{
Q_OBJECT
public:
FormPrintDialog(FormPrint *f, QWidget* parent = NULL, const char* name = NULL);
virtual ~FormPrintDialog();
const char *getFrom() {
return from->text();
}
const char *getTo() {
return to->text();
}
PrinterParams::Target getTarget() {
if (toprinter->isChecked())
return PrinterParams::PRINTER;
else
return PrinterParams::FILE;
}
const char *getPrinter() {
return printername->text();
}
const char *getFile() {
return filename->text();
}
PrinterParams::WhichPages getWhichPages() {
if (oddpages->isChecked())
return PrinterParams::ODD;
else if (evenpages->isChecked())
return PrinterParams::EVEN;
else
return PrinterParams::ALL;
}
bool getReverse() {
return reverse->isChecked();
}
bool getSort() {
return sort->isChecked();
}
const char *getCount() {
return count->text();
}
void setTarget(PrinterParams::Target t) {
toprinter->setChecked(t==PrinterParams::PRINTER);
tofile->setChecked(t!=PrinterParams::PRINTER);
}
void setPrinter(const char *name) {
printername->setText(name);
}
void setFile(const char *name) {
filename->setText(name);
}
void setWhichPages(PrinterParams::WhichPages wp) {
switch (wp) {
case PrinterParams::ALL:
allpages->setChecked(true);
break;
case PrinterParams::EVEN:
evenpages->setChecked(true);
break;
case PrinterParams::ODD:
oddpages->setChecked(true);
break;
}
}
void setReverse(bool on) {
reverse->setChecked(on);
}
void setSort(bool on) {
sort->setChecked(on);
}
void setCount(const char *num) {
count->setText(num);
}
void setFrom(const char *text) {
from->setText(text);
}
void setTo(const char *text) {
to->setText(text);
}
protected slots:
void clickedCancel() {
form_->close();
hide();
}
void clickedPrint() {
form_->print();
form_->close();
hide();
}
void clickedBrowse();
private:
FormPrint *form_;
};
#endif // FORMPRINTDIALOG_H

View File

@ -0,0 +1,610 @@
/**********************************************************************
--- Qt Architect generated file ---
File: formprintdialogdata.C
Last generated: Tue Oct 3 18:09:27 2000
DO NOT EDIT!!! This file will be automatically
regenerated by qtarch. All changes will be lost.
*********************************************************************/
#include <gettext.h>
#include <qpixmap.h>
#include <qlayout.h>
#include "formprintdialogdata.h"
#define Inherited QWidget
FormPrintDialogData::FormPrintDialogData
(
QWidget* parent,
const char* name
)
:
Inherited( parent, name, 0 )
{
pagesGroupBox = new QGroupBox( this, "pagesGroupBox" );
pagesGroupBox->setGeometry( 5, 5, 140, 208 );
pagesGroupBox->setMinimumSize( 15, 47 );
pagesGroupBox->setMaximumSize( 32767, 32767 );
pagesGroupBox->setFocusPolicy( QWidget::NoFocus );
pagesGroupBox->setBackgroundMode( QWidget::PaletteBackground );
pagesGroupBox->setFontPropagation( QWidget::NoChildren );
pagesGroupBox->setPalettePropagation( QWidget::NoChildren );
pagesGroupBox->setFrameStyle( 49 );
pagesGroupBox->setLineWidth( 1 );
pagesGroupBox->setMidLineWidth( 0 );
pagesGroupBox->QFrame::setMargin( 0 );
pagesGroupBox->setTitle( _("Pages") );
pagesGroupBox->setAlignment( 1 );
pagesRadioGroup = new QButtonGroup( pagesGroupBox, "pagesRadioGroup" );
pagesRadioGroup->setGeometry( 5, 17, 130, 106 );
pagesRadioGroup->setMinimumSize( 10, 20 );
pagesRadioGroup->setMaximumSize( 32767, 32767 );
pagesRadioGroup->setFocusPolicy( QWidget::NoFocus );
pagesRadioGroup->setBackgroundMode( QWidget::PaletteBackground );
pagesRadioGroup->setFontPropagation( QWidget::NoChildren );
pagesRadioGroup->setPalettePropagation( QWidget::NoChildren );
pagesRadioGroup->setFrameStyle( 0 );
pagesRadioGroup->setLineWidth( 1 );
pagesRadioGroup->setMidLineWidth( 0 );
pagesRadioGroup->QFrame::setMargin( 0 );
pagesRadioGroup->setTitle( _("") );
pagesRadioGroup->setAlignment( 1 );
pagesRadioGroup->setExclusive( TRUE );
copies = new QGroupBox( this, "copies" );
copies->setGeometry( 150, 5, 280, 51 );
copies->setMinimumSize( 30, 10 );
copies->setMaximumSize( 32767, 32767 );
copies->setFocusPolicy( QWidget::NoFocus );
copies->setBackgroundMode( QWidget::PaletteBackground );
copies->setFontPropagation( QWidget::NoChildren );
copies->setPalettePropagation( QWidget::NoChildren );
copies->setFrameStyle( 49 );
copies->setLineWidth( 1 );
copies->setMidLineWidth( 0 );
copies->QFrame::setMargin( 0 );
copies->setTitle( _("Copies") );
copies->setAlignment( 1 );
printToGroupBox = new QGroupBox( this, "printToGroupBox" );
printToGroupBox->setGeometry( 150, 61, 280, 152 );
printToGroupBox->setMinimumSize( 25, 30 );
printToGroupBox->setMaximumSize( 32767, 32767 );
printToGroupBox->setFocusPolicy( QWidget::NoFocus );
printToGroupBox->setBackgroundMode( QWidget::PaletteBackground );
printToGroupBox->setFontPropagation( QWidget::NoChildren );
printToGroupBox->setPalettePropagation( QWidget::NoChildren );
printToGroupBox->setFrameStyle( 49 );
printToGroupBox->setLineWidth( 1 );
printToGroupBox->setMidLineWidth( 0 );
printToGroupBox->QFrame::setMargin( 0 );
printToGroupBox->setTitle( _("Print to") );
printToGroupBox->setAlignment( 1 );
printToRadioGroup = new QButtonGroup( printToGroupBox, "printToRadioGroup" );
printToRadioGroup->setGeometry( 12, 33, 131, 62 );
printToRadioGroup->setMinimumSize( 10, 15 );
printToRadioGroup->setMaximumSize( 32767, 32767 );
printToRadioGroup->setFocusPolicy( QWidget::NoFocus );
printToRadioGroup->setBackgroundMode( QWidget::PaletteBackground );
printToRadioGroup->setFontPropagation( QWidget::NoChildren );
printToRadioGroup->setPalettePropagation( QWidget::NoChildren );
printToRadioGroup->setFrameStyle( 0 );
printToRadioGroup->setLineWidth( 1 );
printToRadioGroup->setMidLineWidth( 0 );
printToRadioGroup->QFrame::setMargin( 0 );
printToRadioGroup->setTitle( _("") );
printToRadioGroup->setAlignment( 1 );
printToRadioGroup->setExclusive( TRUE );
print = new QPushButton( this, "print" );
print->setGeometry( 75, 218, 70, 32 );
print->setMinimumSize( 0, 0 );
print->setMaximumSize( 32767, 32767 );
connect( print, SIGNAL(clicked()), SLOT(clickedPrint()) );
print->setFocusPolicy( QWidget::TabFocus );
print->setBackgroundMode( QWidget::PaletteBackground );
print->setFontPropagation( QWidget::NoChildren );
print->setPalettePropagation( QWidget::NoChildren );
print->setText( _("&Print") );
print->setAutoRepeat( FALSE );
print->setAutoResize( FALSE );
print->setToggleButton( FALSE );
print->setDefault( FALSE );
print->setAutoDefault( FALSE );
print->setIsMenuButton( FALSE );
cancel = new QPushButton( this, "cancel" );
cancel->setGeometry( 290, 218, 70, 32 );
cancel->setMinimumSize( 0, 0 );
cancel->setMaximumSize( 32767, 32767 );
connect( cancel, SIGNAL(clicked()), SLOT(clickedCancel()) );
cancel->setFocusPolicy( QWidget::TabFocus );
cancel->setBackgroundMode( QWidget::PaletteBackground );
cancel->setFontPropagation( QWidget::NoChildren );
cancel->setPalettePropagation( QWidget::NoChildren );
cancel->setText( _("&Cancel") );
cancel->setAutoRepeat( FALSE );
cancel->setAutoResize( FALSE );
cancel->setToggleButton( FALSE );
cancel->setDefault( FALSE );
cancel->setAutoDefault( FALSE );
cancel->setIsMenuButton( FALSE );
allpages = new QRadioButton( pagesRadioGroup, "allpages" );
allpages->setGeometry( 5, 14, 120, 30 );
allpages->setMinimumSize( 80, 20 );
allpages->setMaximumSize( 32767, 32767 );
allpages->setFocusPolicy( QWidget::TabFocus );
allpages->setBackgroundMode( QWidget::PaletteBackground );
allpages->setFontPropagation( QWidget::NoChildren );
allpages->setPalettePropagation( QWidget::NoChildren );
allpages->setText( _("&All pages") );
allpages->setAutoRepeat( FALSE );
allpages->setAutoResize( FALSE );
allpages->setChecked( FALSE );
evenpages = new QRadioButton( pagesRadioGroup, "evenpages" );
evenpages->setGeometry( 5, 82, 120, 10 );
evenpages->setMinimumSize( 0, 0 );
evenpages->setMaximumSize( 32767, 32767 );
evenpages->setFocusPolicy( QWidget::TabFocus );
evenpages->setBackgroundMode( QWidget::PaletteBackground );
evenpages->setFontPropagation( QWidget::NoChildren );
evenpages->setPalettePropagation( QWidget::NoChildren );
evenpages->setText( _("&Even pages") );
evenpages->setAutoRepeat( FALSE );
evenpages->setAutoResize( FALSE );
evenpages->setChecked( FALSE );
from = new KIntLineEdit( pagesGroupBox, "from" );
from->setGeometry( 93, 128, 42, 22 );
from->setMinimumSize( 0, 0 );
from->setMaximumSize( 32767, 32767 );
from->setFocusPolicy( QWidget::StrongFocus );
from->setBackgroundMode( QWidget::PaletteBase );
from->setFontPropagation( QWidget::NoChildren );
from->setPalettePropagation( QWidget::NoChildren );
from->setText( _("") );
from->setMaxLength( 32767 );
from->setFrame( QLineEdit::Normal );
from->setFrame( TRUE );
fromLabel = new QLabel( pagesGroupBox, "fromLabel" );
fromLabel->setGeometry( 5, 128, 83, 22 );
fromLabel->setMinimumSize( 0, 0 );
fromLabel->setMaximumSize( 32767, 32767 );
fromLabel->setFocusPolicy( QWidget::NoFocus );
fromLabel->setBackgroundMode( QWidget::PaletteBackground );
fromLabel->setFontPropagation( QWidget::NoChildren );
fromLabel->setPalettePropagation( QWidget::NoChildren );
fromLabel->setFrameStyle( 0 );
fromLabel->setLineWidth( 1 );
fromLabel->setMidLineWidth( 0 );
fromLabel->QFrame::setMargin( 0 );
fromLabel->setText( _("From") );
fromLabel->setAlignment( 289 );
fromLabel->setMargin( -1 );
toLabel = new QLabel( pagesGroupBox, "toLabel" );
toLabel->setGeometry( 5, 155, 83, 21 );
toLabel->setMinimumSize( 0, 0 );
toLabel->setMaximumSize( 32767, 32767 );
toLabel->setFocusPolicy( QWidget::NoFocus );
toLabel->setBackgroundMode( QWidget::PaletteBackground );
toLabel->setFontPropagation( QWidget::NoChildren );
toLabel->setPalettePropagation( QWidget::NoChildren );
toLabel->setFrameStyle( 0 );
toLabel->setLineWidth( 1 );
toLabel->setMidLineWidth( 0 );
toLabel->QFrame::setMargin( 0 );
toLabel->setText( _("To") );
toLabel->setAlignment( 289 );
toLabel->setMargin( -1 );
oddpages = new QRadioButton( pagesRadioGroup, "oddpages" );
oddpages->setGeometry( 5, 58, 120, 10 );
oddpages->setMinimumSize( 0, 0 );
oddpages->setMaximumSize( 32767, 32767 );
oddpages->setFocusPolicy( QWidget::TabFocus );
oddpages->setBackgroundMode( QWidget::PaletteBackground );
oddpages->setFontPropagation( QWidget::NoChildren );
oddpages->setPalettePropagation( QWidget::NoChildren );
oddpages->setText( _("&Odd pages") );
oddpages->setAutoRepeat( FALSE );
oddpages->setAutoResize( FALSE );
oddpages->setChecked( FALSE );
toprinter = new QRadioButton( printToRadioGroup, "toprinter" );
toprinter->setGeometry( 5, 5, 121, 16 );
toprinter->setMinimumSize( 0, 0 );
toprinter->setMaximumSize( 32767, 32767 );
toprinter->setFocusPolicy( QWidget::TabFocus );
toprinter->setBackgroundMode( QWidget::PaletteBackground );
toprinter->setFontPropagation( QWidget::NoChildren );
toprinter->setPalettePropagation( QWidget::NoChildren );
toprinter->setText( _("&Printer") );
toprinter->setAutoRepeat( FALSE );
toprinter->setAutoResize( FALSE );
toprinter->setChecked( FALSE );
tofile = new QRadioButton( printToRadioGroup, "tofile" );
tofile->setGeometry( 5, 41, 121, 16 );
tofile->setMinimumSize( 0, 0 );
tofile->setMaximumSize( 32767, 32767 );
tofile->setFocusPolicy( QWidget::TabFocus );
tofile->setBackgroundMode( QWidget::PaletteBackground );
tofile->setFontPropagation( QWidget::NoChildren );
tofile->setPalettePropagation( QWidget::NoChildren );
tofile->setText( _("&File") );
tofile->setAutoRepeat( FALSE );
tofile->setAutoResize( FALSE );
tofile->setChecked( FALSE );
printername = new QLineEdit( printToGroupBox, "printername" );
printername->setGeometry( 148, 33, 120, 19 );
printername->setMinimumSize( 0, 0 );
printername->setMaximumSize( 32767, 32767 );
printername->setFocusPolicy( QWidget::StrongFocus );
printername->setBackgroundMode( QWidget::PaletteBase );
printername->setFontPropagation( QWidget::NoChildren );
printername->setPalettePropagation( QWidget::NoChildren );
printername->setText( _("") );
printername->setMaxLength( 32767 );
printername->setFrame( QLineEdit::Normal );
printername->setFrame( TRUE );
reverse = new QCheckBox( pagesGroupBox, "reverse" );
reverse->setGeometry( 5, 181, 130, 22 );
reverse->setMinimumSize( 0, 0 );
reverse->setMaximumSize( 32767, 32767 );
reverse->setFocusPolicy( QWidget::TabFocus );
reverse->setBackgroundMode( QWidget::PaletteBackground );
reverse->setFontPropagation( QWidget::NoChildren );
reverse->setPalettePropagation( QWidget::NoChildren );
reverse->setText( _("&Reverse order") );
reverse->setAutoRepeat( FALSE );
reverse->setAutoResize( TRUE );
reverse->setChecked( FALSE );
filename = new QLineEdit( printToGroupBox, "filename" );
filename->setGeometry( 148, 76, 120, 19 );
filename->setMinimumSize( 0, 0 );
filename->setMaximumSize( 32767, 32767 );
filename->setFocusPolicy( QWidget::StrongFocus );
filename->setBackgroundMode( QWidget::PaletteBase );
filename->setFontPropagation( QWidget::NoChildren );
filename->setPalettePropagation( QWidget::NoChildren );
filename->setText( _("") );
filename->setMaxLength( 32767 );
filename->setFrame( QLineEdit::Normal );
filename->setFrame( TRUE );
sort = new QCheckBox( copies, "sort" );
sort->setGeometry( 232, 12, 43, 31 );
sort->setMinimumSize( 0, 0 );
sort->setMaximumSize( 32767, 32767 );
sort->setFocusPolicy( QWidget::TabFocus );
sort->setBackgroundMode( QWidget::PaletteBackground );
sort->setFontPropagation( QWidget::NoChildren );
sort->setPalettePropagation( QWidget::NoChildren );
sort->setText( _("&Sort") );
sort->setAutoRepeat( FALSE );
sort->setAutoResize( TRUE );
sort->setChecked( FALSE );
browse = new QPushButton( printToGroupBox, "browse" );
browse->setGeometry( 137, 116, 131, 15 );
browse->setMinimumSize( 0, 0 );
browse->setMaximumSize( 32767, 32767 );
connect( browse, SIGNAL(clicked()), SLOT(clickedBrowse()) );
browse->setFocusPolicy( QWidget::TabFocus );
browse->setBackgroundMode( QWidget::PaletteBackground );
browse->setFontPropagation( QWidget::NoChildren );
browse->setPalettePropagation( QWidget::NoChildren );
browse->setText( _("&Browse") );
browse->setAutoRepeat( FALSE );
browse->setAutoResize( FALSE );
browse->setToggleButton( FALSE );
browse->setDefault( FALSE );
browse->setAutoDefault( FALSE );
browse->setIsMenuButton( FALSE );
count = new KIntLineEdit( copies, "count" );
count->setGeometry( 140, 12, 43, 31 );
count->setMinimumSize( 0, 0 );
count->setMaximumSize( 32767, 32767 );
count->setFocusPolicy( QWidget::StrongFocus );
count->setBackgroundMode( QWidget::PaletteBase );
count->setFontPropagation( QWidget::NoChildren );
count->setPalettePropagation( QWidget::NoChildren );
count->setText( _("") );
count->setMaxLength( 32767 );
count->setFrame( QLineEdit::Normal );
count->setFrame( TRUE );
countLabel = new QLabel( copies, "countLabel" );
countLabel->setGeometry( 48, 12, 44, 31 );
countLabel->setMinimumSize( 0, 0 );
countLabel->setMaximumSize( 32767, 32767 );
countLabel->setFocusPolicy( QWidget::NoFocus );
countLabel->setBackgroundMode( QWidget::PaletteBackground );
countLabel->setFontPropagation( QWidget::NoChildren );
countLabel->setPalettePropagation( QWidget::NoChildren );
countLabel->setFrameStyle( 0 );
countLabel->setLineWidth( 1 );
countLabel->setMidLineWidth( 0 );
countLabel->QFrame::setMargin( 0 );
countLabel->setText( _("Count") );
countLabel->setAlignment( 289 );
countLabel->setMargin( -1 );
to = new KIntLineEdit( pagesGroupBox, "to" );
to->setGeometry( 93, 155, 42, 21 );
to->setMinimumSize( 0, 0 );
to->setMaximumSize( 32767, 32767 );
to->setFocusPolicy( QWidget::StrongFocus );
to->setBackgroundMode( QWidget::PaletteBase );
to->setFontPropagation( QWidget::NoChildren );
to->setPalettePropagation( QWidget::NoChildren );
to->setText( _("") );
to->setMaxLength( 32767 );
to->setFrame( QLineEdit::Normal );
to->setFrame( TRUE );
pagesRadioGroup->insert( allpages );
pagesRadioGroup->insert( evenpages );
pagesRadioGroup->insert( oddpages );
printToRadioGroup->insert( toprinter );
printToRadioGroup->insert( tofile );
if (print->sizeHint().width()!=-1)
print->setMinimumWidth(print->sizeHint().width());
if (print->sizeHint().height()!=-1)
print->setMinimumHeight(print->sizeHint().height());
if (print->sizeHint().width()!=-1)
print->setMaximumWidth(print->sizeHint().width());
if (print->sizeHint().height()!=-1)
print->setMaximumHeight(print->sizeHint().height());
if (cancel->sizeHint().width()!=-1)
cancel->setMinimumWidth(cancel->sizeHint().width());
if (cancel->sizeHint().height()!=-1)
cancel->setMinimumHeight(cancel->sizeHint().height());
if (cancel->sizeHint().width()!=-1)
cancel->setMaximumWidth(cancel->sizeHint().width());
if (cancel->sizeHint().height()!=-1)
cancel->setMaximumHeight(cancel->sizeHint().height());
if (allpages->sizeHint().width()!=-1)
allpages->setMinimumWidth(allpages->sizeHint().width());
if (allpages->sizeHint().height()!=-1)
allpages->setMinimumHeight(allpages->sizeHint().height());
if (allpages->sizeHint().width()!=-1)
allpages->setMaximumWidth(allpages->sizeHint().width());
if (allpages->sizeHint().height()!=-1)
allpages->setMaximumHeight(allpages->sizeHint().height());
if (evenpages->sizeHint().width()!=-1)
evenpages->setMinimumWidth(evenpages->sizeHint().width());
if (evenpages->sizeHint().height()!=-1)
evenpages->setMinimumHeight(evenpages->sizeHint().height());
if (evenpages->sizeHint().width()!=-1)
evenpages->setMaximumWidth(evenpages->sizeHint().width());
if (evenpages->sizeHint().height()!=-1)
evenpages->setMaximumHeight(evenpages->sizeHint().height());
if (from->sizeHint().width()!=-1)
from->setMinimumWidth(from->sizeHint().width());
if (from->sizeHint().height()!=-1)
from->setMinimumHeight(from->sizeHint().height());
if (from->sizeHint().height()!=-1)
from->setMaximumHeight(from->sizeHint().height());
if (fromLabel->sizeHint().width()!=-1)
fromLabel->setMinimumWidth(fromLabel->sizeHint().width());
if (fromLabel->sizeHint().height()!=-1)
fromLabel->setMinimumHeight(fromLabel->sizeHint().height());
if (fromLabel->sizeHint().width()!=-1)
fromLabel->setMaximumWidth(fromLabel->sizeHint().width());
if (fromLabel->sizeHint().height()!=-1)
fromLabel->setMaximumHeight(fromLabel->sizeHint().height());
if (toLabel->sizeHint().width()!=-1)
toLabel->setMinimumWidth(toLabel->sizeHint().width());
if (toLabel->sizeHint().height()!=-1)
toLabel->setMinimumHeight(toLabel->sizeHint().height());
if (toLabel->sizeHint().width()!=-1)
toLabel->setMaximumWidth(toLabel->sizeHint().width());
if (toLabel->sizeHint().height()!=-1)
toLabel->setMaximumHeight(toLabel->sizeHint().height());
if (oddpages->sizeHint().width()!=-1)
oddpages->setMinimumWidth(oddpages->sizeHint().width());
if (oddpages->sizeHint().height()!=-1)
oddpages->setMinimumHeight(oddpages->sizeHint().height());
if (oddpages->sizeHint().width()!=-1)
oddpages->setMaximumWidth(oddpages->sizeHint().width());
if (oddpages->sizeHint().height()!=-1)
oddpages->setMaximumHeight(oddpages->sizeHint().height());
if (toprinter->sizeHint().width()!=-1)
toprinter->setMinimumWidth(toprinter->sizeHint().width());
if (toprinter->sizeHint().height()!=-1)
toprinter->setMinimumHeight(toprinter->sizeHint().height());
if (toprinter->sizeHint().width()!=-1)
toprinter->setMaximumWidth(toprinter->sizeHint().width());
if (toprinter->sizeHint().height()!=-1)
toprinter->setMaximumHeight(toprinter->sizeHint().height());
if (tofile->sizeHint().width()!=-1)
tofile->setMinimumWidth(tofile->sizeHint().width());
if (tofile->sizeHint().height()!=-1)
tofile->setMinimumHeight(tofile->sizeHint().height());
if (tofile->sizeHint().width()!=-1)
tofile->setMaximumWidth(tofile->sizeHint().width());
if (tofile->sizeHint().height()!=-1)
tofile->setMaximumHeight(tofile->sizeHint().height());
if (printername->sizeHint().width()!=-1)
printername->setMinimumWidth(printername->sizeHint().width());
if (printername->sizeHint().height()!=-1)
printername->setMinimumHeight(printername->sizeHint().height());
if (printername->sizeHint().height()!=-1)
printername->setMaximumHeight(printername->sizeHint().height());
if (reverse->sizeHint().width()!=-1)
reverse->setMinimumWidth(reverse->sizeHint().width());
if (reverse->sizeHint().height()!=-1)
reverse->setMinimumHeight(reverse->sizeHint().height());
if (reverse->sizeHint().width()!=-1)
reverse->setMaximumWidth(reverse->sizeHint().width());
if (reverse->sizeHint().height()!=-1)
reverse->setMaximumHeight(reverse->sizeHint().height());
if (filename->sizeHint().width()!=-1)
filename->setMinimumWidth(filename->sizeHint().width());
if (filename->sizeHint().height()!=-1)
filename->setMinimumHeight(filename->sizeHint().height());
if (filename->sizeHint().height()!=-1)
filename->setMaximumHeight(filename->sizeHint().height());
if (sort->sizeHint().width()!=-1)
sort->setMinimumWidth(sort->sizeHint().width());
if (sort->sizeHint().height()!=-1)
sort->setMinimumHeight(sort->sizeHint().height());
if (sort->sizeHint().width()!=-1)
sort->setMaximumWidth(sort->sizeHint().width());
if (sort->sizeHint().height()!=-1)
sort->setMaximumHeight(sort->sizeHint().height());
if (browse->sizeHint().width()!=-1)
browse->setMinimumWidth(browse->sizeHint().width());
if (browse->sizeHint().height()!=-1)
browse->setMinimumHeight(browse->sizeHint().height());
if (browse->sizeHint().width()!=-1)
browse->setMaximumWidth(browse->sizeHint().width());
if (browse->sizeHint().height()!=-1)
browse->setMaximumHeight(browse->sizeHint().height());
if (count->sizeHint().width()!=-1)
count->setMinimumWidth(count->sizeHint().width());
if (count->sizeHint().height()!=-1)
count->setMinimumHeight(count->sizeHint().height());
if (count->sizeHint().height()!=-1)
count->setMaximumHeight(count->sizeHint().height());
if (countLabel->sizeHint().width()!=-1)
countLabel->setMinimumWidth(countLabel->sizeHint().width());
if (countLabel->sizeHint().height()!=-1)
countLabel->setMinimumHeight(countLabel->sizeHint().height());
if (countLabel->sizeHint().width()!=-1)
countLabel->setMaximumWidth(countLabel->sizeHint().width());
if (countLabel->sizeHint().height()!=-1)
countLabel->setMaximumHeight(countLabel->sizeHint().height());
if (to->sizeHint().width()!=-1)
to->setMinimumWidth(to->sizeHint().width());
if (to->sizeHint().height()!=-1)
to->setMinimumHeight(to->sizeHint().height());
if (to->sizeHint().height()!=-1)
to->setMaximumHeight(to->sizeHint().height());
QGridLayout* qtarch_layout_1 = new QGridLayout( this, 2, 1, 5, 5, NULL );
qtarch_layout_1->addColSpacing( 0, 5 );
qtarch_layout_1->setColStretch( 0, 1 );
qtarch_layout_1->addRowSpacing( 0, 0 );
qtarch_layout_1->setRowStretch( 0, 5 );
QBoxLayout* qtarch_layout_1_1_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
qtarch_layout_1->addLayout( qtarch_layout_1_1_1, 0, 0 );
qtarch_layout_1_1_1->addStrut( 0 );
qtarch_layout_1_1_1->addWidget( pagesGroupBox, 1, 36 );
QBoxLayout* qtarch_layout_1_1_1_1 = new QBoxLayout( pagesGroupBox, QBoxLayout::TopToBottom, 5, 5, NULL );
qtarch_layout_1_1_1_1->addStrut( 0 );
qtarch_layout_1_1_1_1->addSpacing( 12 );
qtarch_layout_1_1_1_1->addWidget( pagesRadioGroup, 4, 33 );
QBoxLayout* qtarch_layout_1_1_1_1_2 = new QBoxLayout( pagesRadioGroup, QBoxLayout::TopToBottom, 5, 5, NULL );
qtarch_layout_1_1_1_1_2->addStrut( 0 );
qtarch_layout_1_1_1_1_2->addStretch( 1 );
qtarch_layout_1_1_1_1_2->addWidget( allpages, 1, 1 );
qtarch_layout_1_1_1_1_2->addStretch( 1 );
qtarch_layout_1_1_1_1_2->addWidget( oddpages, 1, 1 );
qtarch_layout_1_1_1_1_2->addStretch( 1 );
qtarch_layout_1_1_1_1_2->addWidget( evenpages, 1, 1 );
qtarch_layout_1_1_1_1_2->addStretch( 1 );
QBoxLayout* qtarch_layout_1_1_1_1_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
qtarch_layout_1_1_1_1->addLayout( qtarch_layout_1_1_1_1_3, 1 );
qtarch_layout_1_1_1_1_3->addStrut( 0 );
qtarch_layout_1_1_1_1_3->addWidget( fromLabel, 2, 36 );
qtarch_layout_1_1_1_1_3->addWidget( from, 1, 36 );
QBoxLayout* qtarch_layout_1_1_1_1_4 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
qtarch_layout_1_1_1_1->addLayout( qtarch_layout_1_1_1_1_4, 1 );
qtarch_layout_1_1_1_1_4->addStrut( 0 );
qtarch_layout_1_1_1_1_4->addWidget( toLabel, 2, 36 );
qtarch_layout_1_1_1_1_4->addWidget( to, 1, 36 );
qtarch_layout_1_1_1_1->addWidget( reverse, 1, 36 );
QBoxLayout* qtarch_layout_1_1_1_2 = new QBoxLayout( QBoxLayout::TopToBottom, 5, NULL );
qtarch_layout_1_1_1->addLayout( qtarch_layout_1_1_1_2, 2 );
qtarch_layout_1_1_1_2->addStrut( 0 );
qtarch_layout_1_1_1_2->addWidget( copies, 1, 36 );
QBoxLayout* qtarch_layout_1_1_1_2_1 = new QBoxLayout( copies, QBoxLayout::TopToBottom, 5, 5, NULL );
qtarch_layout_1_1_1_2_1->addStrut( 0 );
qtarch_layout_1_1_1_2_1->addSpacing( 7 );
QBoxLayout* qtarch_layout_1_1_1_2_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
qtarch_layout_1_1_1_2_1->addLayout( qtarch_layout_1_1_1_2_1_2, 1 );
qtarch_layout_1_1_1_2_1_2->addStrut( 0 );
qtarch_layout_1_1_1_2_1_2->addStretch( 1 );
qtarch_layout_1_1_1_2_1_2->addWidget( countLabel, 1, 36 );
qtarch_layout_1_1_1_2_1_2->addStretch( 1 );
qtarch_layout_1_1_1_2_1_2->addWidget( count, 1, 36 );
qtarch_layout_1_1_1_2_1_2->addStretch( 1 );
qtarch_layout_1_1_1_2_1_2->addWidget( sort, 1, 36 );
qtarch_layout_1_1_1_2_1->addSpacing( 3 );
qtarch_layout_1_1_1_2->addWidget( printToGroupBox, 3, 36 );
QBoxLayout* qtarch_layout_1_1_1_2_2 = new QBoxLayout( printToGroupBox, QBoxLayout::TopToBottom, 5, 5, NULL );
qtarch_layout_1_1_1_2_2->addStrut( 0 );
qtarch_layout_1_1_1_2_2->addSpacing( 12 );
qtarch_layout_1_1_1_2_2->addStretch( 1 );
QBoxLayout* qtarch_layout_1_1_1_2_2_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
qtarch_layout_1_1_1_2_2->addLayout( qtarch_layout_1_1_1_2_2_3, 3 );
qtarch_layout_1_1_1_2_2_3->addStrut( 0 );
qtarch_layout_1_1_1_2_2_3->addSpacing( 7 );
qtarch_layout_1_1_1_2_2_3->addWidget( printToRadioGroup, 1, 33 );
QBoxLayout* qtarch_layout_1_1_1_2_2_3_2 = new QBoxLayout( printToRadioGroup, QBoxLayout::TopToBottom, 5, 5, NULL );
qtarch_layout_1_1_1_2_2_3_2->addStrut( 0 );
qtarch_layout_1_1_1_2_2_3_2->addWidget( toprinter, 1, 1 );
qtarch_layout_1_1_1_2_2_3_2->addStretch( 1 );
qtarch_layout_1_1_1_2_2_3_2->addWidget( tofile, 1, 1 );
QBoxLayout* qtarch_layout_1_1_1_2_2_3_3 = new QBoxLayout( QBoxLayout::TopToBottom, 5, NULL );
qtarch_layout_1_1_1_2_2_3->addLayout( qtarch_layout_1_1_1_2_2_3_3, 1 );
qtarch_layout_1_1_1_2_2_3_3->addStrut( 0 );
qtarch_layout_1_1_1_2_2_3_3->addWidget( printername, 1, 36 );
qtarch_layout_1_1_1_2_2_3_3->addStretch( 1 );
qtarch_layout_1_1_1_2_2_3_3->addWidget( filename, 1, 36 );
qtarch_layout_1_1_1_2_2_3->addSpacing( 7 );
qtarch_layout_1_1_1_2_2->addStretch( 1 );
QBoxLayout* qtarch_layout_1_1_1_2_2_5 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
qtarch_layout_1_1_1_2_2->addLayout( qtarch_layout_1_1_1_2_2_5, 1 );
qtarch_layout_1_1_1_2_2_5->addStrut( 0 );
qtarch_layout_1_1_1_2_2_5->addStretch( 1 );
qtarch_layout_1_1_1_2_2_5->addWidget( browse, 1, 36 );
qtarch_layout_1_1_1_2_2_5->addSpacing( 7 );
qtarch_layout_1_1_1_2_2->addStretch( 1 );
qtarch_layout_1->addRowSpacing( 1, 0 );
qtarch_layout_1->setRowStretch( 1, 1 );
QBoxLayout* qtarch_layout_1_2_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
qtarch_layout_1->addLayout( qtarch_layout_1_2_1, 1, 0 );
qtarch_layout_1_2_1->addStrut( 0 );
qtarch_layout_1_2_1->addStretch( 1 );
qtarch_layout_1_2_1->addWidget( print, 1, 36 );
qtarch_layout_1_2_1->addStretch( 2 );
qtarch_layout_1_2_1->addWidget( cancel, 1, 36 );
qtarch_layout_1_2_1->addStretch( 1 );
resize( 435,255 );
setMinimumSize( 0, 0 );
setMaximumSize( 32767, 32767 );
}
FormPrintDialogData::~FormPrintDialogData()
{
}
void FormPrintDialogData::clickedPrint()
{
}
void FormPrintDialogData::clickedCancel()
{
}
void FormPrintDialogData::clickedBrowse()
{
}

View File

@ -0,0 +1,76 @@
/**********************************************************************
--- Qt Architect generated file ---
File: formprintdialogdata.h
Last generated: Tue Oct 3 18:09:27 2000
DO NOT EDIT!!! This file will be automatically
regenerated by qtarch. All changes will be lost.
*********************************************************************/
#ifndef FormPrintDialogData_included
#define FormPrintDialogData_included
#include <qwidget.h>
#include <qlabel.h>
#include <qradiobutton.h>
#include <qcheckbox.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <keditcl.h>
#include <qlineedit.h>
#include <qbuttongroup.h>
class FormPrintDialogData : public QWidget
{
Q_OBJECT
public:
FormPrintDialogData
(
QWidget* parent = NULL,
const char* name = NULL
);
virtual ~FormPrintDialogData();
public slots:
protected slots:
virtual void clickedCancel();
virtual void clickedBrowse();
virtual void clickedPrint();
protected:
QGroupBox* pagesGroupBox;
QButtonGroup* pagesRadioGroup;
QGroupBox* copies;
QGroupBox* printToGroupBox;
QButtonGroup* printToRadioGroup;
QPushButton* print;
QPushButton* cancel;
QRadioButton* allpages;
QRadioButton* evenpages;
KIntLineEdit* from;
QLabel* fromLabel;
QLabel* toLabel;
QRadioButton* oddpages;
QRadioButton* toprinter;
QRadioButton* tofile;
QLineEdit* printername;
QCheckBox* reverse;
QLineEdit* filename;
QCheckBox* sort;
QPushButton* browse;
KIntLineEdit* count;
QLabel* countLabel;
KIntLineEdit* to;
};
#endif // FormPrintDialogData_included