Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 224 → Rev 225

/trunk/Scribus/ChangeLogCVS
1,4 → 1,8
Changes since Version 1.1.5
08.03.2004 Fixed behaviour of the Icons of PDF-Buttons.
Fixed Bug #326.
Added more ToolTips.
 
07.04.2004 Added an Option to the Preferences to determine if the Contents of a Page
are clipped at the Margins or not.
Added a Folder for storing official approved Scripts.
/trunk/Scribus/scribus/lineformats.cpp
7,73 → 7,83
extern QPixmap loadIcon(QString nam);
 
LineFormate::LineFormate( QWidget* parent, ScribusDoc *doc)
: QDialog( parent, "Formate", true, 0)
: QDialog( parent, "Formate", true, 0)
{
resize( 327, 260 );
setCaption( tr( "Edit Line Styles" ) );
setIcon(loadIcon("AppIcon.png"));
resize( 327, 260 );
setCaption( tr( "Edit Line Styles" ) );
setIcon(loadIcon("AppIcon.png"));
Docu = doc;
TempStyles = doc->MLineStyles;
StilFormateLayout = new QHBoxLayout( this );
StilFormateLayout->setSpacing( 5 );
StilFormateLayout->setMargin( 10 );
StilFormateLayout = new QHBoxLayout( this );
StilFormateLayout->setSpacing( 5 );
StilFormateLayout->setMargin( 10 );
 
ListBox1 = new QListBox( this, "ListBox1" );
ListBox1->setMinimumSize( QSize( 200, 240 ) );
StilFormateLayout->addWidget( ListBox1 );
ListBox1 = new QListBox( this, "ListBox1" );
ListBox1->setMinimumSize( QSize( 200, 240 ) );
StilFormateLayout->addWidget( ListBox1 );
 
Layout15 = new QVBoxLayout;
Layout15->setSpacing( 6 );
Layout15->setMargin( 0 );
Layout15 = new QVBoxLayout;
Layout15->setSpacing( 6 );
Layout15->setMargin( 0 );
 
LoadLS = new QPushButton( this, "LoadF" );
LoadLS->setText( tr( "Append" ) );
Layout15->addWidget( LoadLS );
LoadLS = new QPushButton( this, "LoadF" );
LoadLS->setText( tr( "Append" ) );
Layout15->addWidget( LoadLS );
 
NewB = new QPushButton( this, "NewB" );
NewB->setText( tr( "New" ) );
Layout15->addWidget( NewB );
NewB = new QPushButton( this, "NewB" );
NewB->setText( tr( "New" ) );
Layout15->addWidget( NewB );
 
EditB = new QPushButton( this, "EditB" );
EditB->setText( tr( "Edit" ) );
EditB->setDefault( true );
EditB->setEnabled(false);
Layout15->addWidget( EditB );
EditB = new QPushButton( this, "EditB" );
EditB->setText( tr( "Edit" ) );
EditB->setDefault( true );
EditB->setEnabled(false);
Layout15->addWidget( EditB );
 
DublicateB = new QPushButton( this, "DublicateB" );
DublicateB->setText( tr( "Duplicate" ) );
DublicateB->setEnabled(false);
Layout15->addWidget( DublicateB );
DublicateB = new QPushButton( this, "DublicateB" );
DublicateB->setText( tr( "Duplicate" ) );
DublicateB->setEnabled(false);
Layout15->addWidget( DublicateB );
 
DeleteB = new QPushButton( this, "DeleteB" );
DeleteB->setText( tr( "Delete" ) );
DeleteB->setEnabled(false);
Layout15->addWidget( DeleteB );
DeleteB = new QPushButton( this, "DeleteB" );
DeleteB->setText( tr( "Delete" ) );
DeleteB->setEnabled(false);
Layout15->addWidget( DeleteB );
 
SaveB = new QPushButton( this, "SaveB" );
SaveB->setText( tr( "Save" ) );
Layout15->addWidget( SaveB );
SaveB = new QPushButton( this, "SaveB" );
SaveB->setText( tr( "Save" ) );
Layout15->addWidget( SaveB );
 
CancelB = new QPushButton( this, "CancelB" );
CancelB->setText( tr( "Cancel" ) );
Layout15->addWidget( CancelB );
QSpacerItem* spacer = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
Layout15->addItem( spacer );
StilFormateLayout->addLayout( Layout15 );
ExitB = new QPushButton( this, "ExitB" );
ExitB->setText( tr( "Exit" ) );
Layout15->addWidget( ExitB );
 
// signals and slots connections
connect(CancelB, SIGNAL(clicked()), this, SLOT(reject()));
connect(SaveB, SIGNAL(clicked()), this, SLOT(accept()));
connect(LoadLS, SIGNAL(clicked()), this, SLOT(loadLStyles()));
connect(EditB, SIGNAL(clicked()), this, SLOT(editFormat()));
connect(NewB, SIGNAL(clicked()), this, SLOT(neuesFormat()));
connect(DublicateB, SIGNAL(clicked()), this, SLOT(dupFormat()));
connect(DeleteB, SIGNAL(clicked()), this, SLOT(deleteFormat()));
connect(ListBox1, SIGNAL(highlighted(QListBoxItem*)), this, SLOT(selFormat(QListBoxItem*)));
CancelB = new QPushButton( this, "CancelB" );
CancelB->setText( tr( "Cancel" ) );
Layout15->addWidget( CancelB );
QSpacerItem* spacer = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
Layout15->addItem( spacer );
StilFormateLayout->addLayout( Layout15 );
 
// signals and slots connections
connect(CancelB, SIGNAL(clicked()), this, SLOT(reject()));
connect(SaveB, SIGNAL(clicked()), this, SLOT(saveIt()));
connect(ExitB, SIGNAL(clicked()), this, SLOT(accept()));
connect(LoadLS, SIGNAL(clicked()), this, SLOT(loadLStyles()));
connect(EditB, SIGNAL(clicked()), this, SLOT(editFormat()));
connect(NewB, SIGNAL(clicked()), this, SLOT(neuesFormat()));
connect(DublicateB, SIGNAL(clicked()), this, SLOT(dupFormat()));
connect(DeleteB, SIGNAL(clicked()), this, SLOT(deleteFormat()));
connect(ListBox1, SIGNAL(highlighted(QListBoxItem*)), this, SLOT(selFormat(QListBoxItem*)));
sFnumber = ListBox1->count() > 0 ? TempStyles.begin().key() : QString("");
UpdateFList();
UpdateFList();
}
 
void LineFormate::saveIt()
{
emit saveStyle(this);
}
 
void LineFormate::selFormat(QListBoxItem *c)
{
sFnumber = c->text();
126,15 → 136,15
 
void LineFormate::deleteFormat()
{
int exit=QMessageBox::warning(this,
tr("Warning"),
tr("Do you really want do delete this Style?"),
tr("No"),
tr("Yes"),
0, QMessageBox::No, QMessageBox::Yes);
/* PFJ - 29.02.04 - Changed from 1 to QMessageBox::Yes */
int exit=QMessageBox::warning(this,
tr("Warning"),
tr("Do you really want do delete this Style?"),
tr("No"),
tr("Yes"),
0, QMessageBox::No, QMessageBox::Yes);
/* PFJ - 29.02.04 - Changed from 1 to QMessageBox::Yes */
if (exit == QMessageBox::Yes)
{
{
TempStyles.remove(sFnumber);
UpdateFList();
}
153,12 → 163,12
else
return;
if (!fileName.isEmpty())
{
ScriXmlDoc *ss = new ScriXmlDoc();
if (ss->ReadLStyles(fileName, &TempStyles))
{
ScriXmlDoc *ss = new ScriXmlDoc();
if (ss->ReadLStyles(fileName, &TempStyles))
UpdateFList();
delete ss;
}
}
}
 
void LineFormate::UpdateFList()
/trunk/Scribus/scribus/editformats.h
9,27 → 9,27
#include "scribusdoc.h"
 
class StilFormate : public QDialog
{
Q_OBJECT
{
Q_OBJECT
 
public:
StilFormate( QWidget* parent, ScribusDoc *doc, preV *avail);
~StilFormate() {};
StilFormate( QWidget* parent, ScribusDoc *doc, preV *avail);
~StilFormate() {};
 
QListBox* ListBox1;
QPushButton* LoadS;
QPushButton* NewB;
QPushButton* EditB;
QPushButton* DublicateB;
QPushButton* DeleteB;
QPushButton* SaveB;
QPushButton* ExitB;
QPushButton* CancelB;
int sFnumber;
QValueList<StVorL> TempVorl;
preV *fon;
QListBox* ListBox1;
QPushButton* LoadS;
QPushButton* NewB;
QPushButton* EditB;
QPushButton* DublicateB;
QPushButton* DeleteB;
QPushButton* SaveB;
QPushButton* ExitB;
QPushButton* CancelB;
int sFnumber;
QValueList<StVorL> TempVorl;
preV *fon;
ScribusDoc *Docu;
void UpdateFList();
void UpdateFList();
 
public slots:
void saveIt();
44,8 → 44,8
void saveStyle(StilFormate *);
 
protected:
QHBoxLayout* StilFormateLayout;
QVBoxLayout* Layout15;
QHBoxLayout* StilFormateLayout;
QVBoxLayout* Layout15;
};
 
#endif // STILFORMATE_H
/trunk/Scribus/scribus/buttonicon.cpp
3,118 → 3,118
extern QPixmap loadIcon(QString nam);
 
ButtonIcon::ButtonIcon(QWidget* parent, PageItem* ite)
: QDialog( parent, "bu", true, 0 )
: QDialog( parent, "bu", true, 0 )
{
Item = ite;
setCaption( tr( "Icon Placement" ) );
setIcon(loadIcon("AppIcon.png"));
ButtonIconLayout = new QVBoxLayout( this, 11, 6, "ButtonIconLayout");
Layout1 = new QGridLayout( 0, 0, 6, "Layout6");
TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
TextLabel1_2->setText( tr( "Layout:" ) );
Layout1->addWidget( TextLabel1_2, 0, 0 );
Place = new QComboBox( true, this, "Place" );
QString tmp_pla[] = { tr("Caption only"), tr("Icon only"), tr("Caption below Icon"), tr("Caption above Icon"),
tr("Caption right to Icon"), tr("Caption left to Icon"), tr("Caption overlays Icon")};
setCaption( tr( "Icon Placement" ) );
setIcon(loadIcon("AppIcon.png"));
ButtonIconLayout = new QVBoxLayout( this, 11, 6, "ButtonIconLayout");
Layout1 = new QGridLayout( 0, 0, 6, "Layout6");
TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
TextLabel1_2->setText( tr( "Layout:" ) );
Layout1->addWidget( TextLabel1_2, 0, 0 );
Place = new QComboBox( true, this, "Place" );
QString tmp_pla[] = { tr("Caption only"), tr("Icon only"), tr("Caption below Icon"), tr("Caption above Icon"),
tr("Caption right to Icon"), tr("Caption left to Icon"), tr("Caption overlays Icon")};
size_t array_pla = sizeof(tmp_pla) / sizeof(*tmp_pla);
/* PFJ - 29/02/04 - Changed from uint to int and var name */
for (uint prop = 0; prop < array_pla; ++prop)
Place->insertItem(tmp_pla[prop]);
Place->setEditable(false);
Layout1->addWidget( Place, 0, 1 );
TextLabel1 = new QLabel( this, "TextLabel1" );
TextLabel1->setText( tr( "Scale:" ) );
Layout1->addWidget( TextLabel1, 1, 0 );
ScaleW = new QComboBox( true, this, "ScaleW" );
Layout1->addWidget( Place, 0, 1 );
TextLabel1 = new QLabel( this, "TextLabel1" );
TextLabel1->setText( tr( "Scale:" ) );
Layout1->addWidget( TextLabel1, 1, 0 );
ScaleW = new QComboBox( true, this, "ScaleW" );
/* PFJ - 29/02/04 - Changed to QString/size_t/for style. It saves a small
of time during the setup */
QString scalew[] = {tr("Always"), tr("When Icon it too small"),
tr("When Icon is too big"), tr("Never")};
QString scalew[] = {tr("Always"), tr("When Icon it too small"),
tr("When Icon is too big"), tr("Never")};
size_t scalewArray = sizeof(scalew) / sizeof(*scalew);
for (uint prop = 0; prop < scalewArray; ++prop)
ScaleW->insertItem(scalew[prop]);
ScaleW->setEditable(false);
Layout1->addWidget( ScaleW, 1, 1 );
TextLabel2 = new QLabel( this, "TextLabel2" );
TextLabel2->setText( tr( "Scale How:" ) );
Layout1->addWidget( TextLabel2, 2, 0 );
ScaleH = new QComboBox( true, this, "ScaleH" );
ScaleH->insertItem( tr( "Proportional" ) );
ScaleH->insertItem( tr( "Non Proportional" ) );
Layout1->addWidget( ScaleW, 1, 1 );
TextLabel2 = new QLabel( this, "TextLabel2" );
TextLabel2->setText( tr( "Scale How:" ) );
Layout1->addWidget( TextLabel2, 2, 0 );
ScaleH = new QComboBox( true, this, "ScaleH" );
ScaleH->insertItem( tr( "Proportional" ) );
ScaleH->insertItem( tr( "Non Proportional" ) );
ScaleH->setEditable(false);
Layout1->addWidget( ScaleH, 2, 1 );
ButtonIconLayout->addLayout( Layout1 );
QSpacerItem* spacer = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
ButtonIconLayout->addItem( spacer );
Layout5 = new QHBoxLayout( 0, 0, 6, "Layout5");
QSpacerItem* spacer_2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout5->addItem( spacer_2 );
Layout3 = new QGridLayout( 0, 1, 1, 0, 6, "Layout3");
GroupButton = new QGroupBox( this, "GroupButton" );
GroupButton->setMinimumSize( QSize( 150, 150 ) );
GroupButton->setMaximumSize( QSize( 150, 150 ) );
GroupButton->setTitle( tr( "" ) );
TextLabel3 = new QLabel( GroupButton, "TextLabel3" );
TextLabel3->setGeometry( QRect( 50, 50, 48, 48 ) );
TextLabel3->setFrameShape( QLabel::Box );
TextLabel3->setFrameShadow( QLabel::Raised );
TextLabel3->setLineWidth( 1 );
TextLabel3->setText( tr( "Icon" ) );
Layout3->addWidget( GroupButton, 0, 0 );
SliderX = new QSlider( this, "SliderX" );
SliderX->setMaxValue( 1000 );
SliderX->setValue( 500 );
SliderX->setOrientation( QSlider::Horizontal );
SliderX->setTickmarks( QSlider::Left );
SliderX->setTickInterval( 100 );
Layout3->addWidget( SliderX, 1, 0 );
SliderY = new QSlider( this, "SliderY" );
SliderY->setMaxValue( 1000 );
SliderY->setValue( 500 );
SliderY->setOrientation( QSlider::Vertical );
SliderY->setTickmarks( QSlider::Left );
SliderY->setTickInterval( 100 );
Layout3->addWidget( SliderY, 0, 1 );
Layout5->addLayout( Layout3 );
QSpacerItem* spacer_3 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout5->addItem( spacer_3 );
ButtonIconLayout->addLayout( Layout5 );
QSpacerItem* spacer_4 = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
ButtonIconLayout->addItem( spacer_4 );
Layout4 = new QHBoxLayout( 0, 0, 6, "Layout4");
OK = new QPushButton( this, "OK" );
OK->setText( tr( "OK" ) );
OK->setDefault( TRUE );
Layout4->addWidget( OK );
Cancel = new QPushButton( this, "Cancel" );
Cancel->setText( tr( "Cancel" ) );
Layout4->addWidget( Cancel );
Reset = new QPushButton( this, "Reset" );
Reset->setText( tr( "Reset" ) );
Layout4->addWidget( Reset );
ButtonIconLayout->addLayout( Layout4 );
Layout1->addWidget( ScaleH, 2, 1 );
ButtonIconLayout->addLayout( Layout1 );
QSpacerItem* spacer = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
ButtonIconLayout->addItem( spacer );
Layout5 = new QHBoxLayout( 0, 0, 6, "Layout5");
QSpacerItem* spacer_2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout5->addItem( spacer_2 );
Layout3 = new QGridLayout( 0, 1, 1, 0, 6, "Layout3");
GroupButton = new QGroupBox( this, "GroupButton" );
GroupButton->setMinimumSize( QSize( 150, 150 ) );
GroupButton->setMaximumSize( QSize( 150, 150 ) );
GroupButton->setTitle( tr( "" ) );
TextLabel3 = new QLabel( GroupButton, "TextLabel3" );
TextLabel3->setGeometry( QRect( 50, 50, 48, 48 ) );
TextLabel3->setFrameShape( QLabel::Box );
TextLabel3->setFrameShadow( QLabel::Raised );
TextLabel3->setLineWidth( 1 );
TextLabel3->setText( tr( "Icon" ) );
Layout3->addWidget( GroupButton, 0, 0 );
SliderX = new QSlider( this, "SliderX" );
SliderX->setMaxValue( 1000 );
SliderX->setValue( 500 );
SliderX->setOrientation( QSlider::Horizontal );
SliderX->setTickmarks( QSlider::Left );
SliderX->setTickInterval( 100 );
Layout3->addWidget( SliderX, 1, 0 );
SliderY = new QSlider( this, "SliderY" );
SliderY->setMaxValue( 1000 );
SliderY->setValue( 500 );
SliderY->setOrientation( QSlider::Vertical );
SliderY->setTickmarks( QSlider::Left );
SliderY->setTickInterval( 100 );
Layout3->addWidget( SliderY, 0, 1 );
Layout5->addLayout( Layout3 );
QSpacerItem* spacer_3 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout5->addItem( spacer_3 );
ButtonIconLayout->addLayout( Layout5 );
QSpacerItem* spacer_4 = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
ButtonIconLayout->addItem( spacer_4 );
Layout4 = new QHBoxLayout( 0, 0, 6, "Layout4");
OK = new QPushButton( this, "OK" );
OK->setText( tr( "OK" ) );
OK->setDefault( TRUE );
Layout4->addWidget( OK );
Cancel = new QPushButton( this, "Cancel" );
Cancel->setText( tr( "Cancel" ) );
Layout4->addWidget( Cancel );
Reset = new QPushButton( this, "Reset" );
Reset->setText( tr( "Reset" ) );
Layout4->addWidget( Reset );
ButtonIconLayout->addLayout( Layout4 );
 
SetAllVals();
 
connect(ScaleH, SIGNAL(activated(int)), this, SLOT(SetScaleHow(int)));
connect(SliderX, SIGNAL(valueChanged(int)), this, SLOT(MoveIconX(int)));
connect(SliderY, SIGNAL(valueChanged(int)), this, SLOT(MoveIconY(int)));
connect(Cancel, SIGNAL(clicked()), this, SLOT(reject()));
connect(OK, SIGNAL(clicked()), this, SLOT(accept()));
connect(Reset, SIGNAL(clicked()), this, SLOT(SetAllVals()));
connect(ScaleW, SIGNAL(activated(int)), this, SLOT(SetScaleHow(int)));
connect(SliderX, SIGNAL(valueChanged(int)), this, SLOT(MoveIconX(int)));
connect(SliderY, SIGNAL(valueChanged(int)), this, SLOT(MoveIconY(int)));
connect(Cancel, SIGNAL(clicked()), this, SLOT(reject()));
connect(OK, SIGNAL(clicked()), this, SLOT(accept()));
connect(Reset, SIGNAL(clicked()), this, SLOT(SetAllVals()));
}
 
void ButtonIcon::MoveIconY(int y)
{
TextLabel3->setGeometry(QRect(static_cast<int>(SliderX->value() / 1000.0 * 100),
static_cast<int>(y / 1000.0 * 100), 48, 48));
TextLabel3->setGeometry(QRect(static_cast<int>(SliderX->value() / 1000.0 * 100),
static_cast<int>(y / 1000.0 * 100), 48, 48));
IcPlaceY = y / 1000.0;
}
 
void ButtonIcon::MoveIconX(int x)
{
TextLabel3->setGeometry(QRect(static_cast<int>(x / 1000.0 * 100),
static_cast<int>(SliderY->value() / 1000.0 * 100), 48, 48));
TextLabel3->setGeometry(QRect(static_cast<int>(x / 1000.0 * 100),
static_cast<int>(SliderY->value() / 1000.0 * 100), 48, 48));
IcPlaceX = x / 1000.0;
}
 
123,24 → 123,16
Place->setCurrentItem(Item->AnIPlace);
ScaleW->setCurrentItem(Item->AnScaleW);
ScaleH->setCurrentItem(Item->LocalScX != Item->LocalScY ? 1 : 0);
SetScaleHow(ScaleH->currentItem());
if ((Item->Width/Item->LocalScX - Item->pixm.width()) != 0)
SliderX->setValue(static_cast<int>
(Item->LocalX / (Item->Width/Item->LocalScX - Item->pixm.width()) * 1000));
else
SliderX->setValue(0);
if ((Item->Height/Item->LocalScY - Item->pixm.height()) != 0)
SliderY->setValue(static_cast<int>
(Item->LocalY / (Item->Height/Item->LocalScY - Item->pixm.height()) * 1000));
else
SliderY->setValue(0);
SetScaleHow(ScaleW->currentItem());
SliderX->setValue(static_cast<int>(Item->LocalX / (Item->Width - Item->pixm.width()) * 1000));
SliderY->setValue(static_cast<int>(Item->LocalY / (Item->Height - Item->pixm.height()) * 1000));
TextLabel3->setGeometry(QRect(static_cast<int>(SliderX->value() / 1000.0 * 100),
static_cast<int>(SliderY->value() / 1000.0 * 100), 48, 48));
static_cast<int>(SliderY->value() / 1000.0 * 100), 48, 48));
}
 
void ButtonIcon::SetScaleHow(int s)
{
bool setter = (s == 1) ? false : true;
bool setter = (s == 3) ? true : false;
GroupButton->setEnabled(setter);
TextLabel3->setEnabled(setter);
SliderX->setEnabled(setter);
/trunk/Scribus/scribus/pageitem.cpp
264,8 → 264,6
}
Doc->Vorlagen[0].Ausri = Ausrich;
pf.begin(Parent);
// pf.translate(qRound(Xpos*sc), qRound(Ypos*sc));
// pf.scale(sc, sc);
pf.translate(Xpos*sc, Ypos*sc);
pf.rotate(Rot);
pf.scale(sc, sc);
560,6 → 558,7
DrawPoly(&pd, Clip, pd.brush().color());
}
}
pd.scale(LocalScX, LocalScY);
if (!pixm.isNull())
pd.drawImage(static_cast<int>(LocalX*LocalScX), static_cast<int>(LocalY*LocalScY), pixm);
pd.end();
1838,7 → 1837,7
 
void PageItem::DrawPoly(QPainter *p, QPointArray pts, QColor BackF, bool bitm)
{
if ((Pcolor != "None") || (GrType != 0) || (PType == 2))
if ((Pcolor != "None") || (GrType != 0) || (PType == 2) || (PType == 4))
{
QBitmap bm(static_cast<int>(Width), static_cast<int>(Height));
bm.fill(Qt::color0);
/trunk/Scribus/scribus/muster.cpp
9,68 → 9,68
extern void CopyPageItem(struct CLBuf *Buffer, PageItem *b);
 
MusterSeiten::MusterSeiten( QWidget* parent, ScribusDoc *doc, ScribusView *view, QString temp)
: QDialog( parent, "Muster", false, WDestructiveClose)
: QDialog( parent, "Muster", false, WDestructiveClose)
{
setCaption( tr( "Edit Templates" ) );
setIcon(loadIcon("AppIcon.png"));
Doc = doc;
View = view;
MusterSeitenLayout = new QHBoxLayout( this );
MusterSeitenLayout->setSpacing( 6 );
MusterSeitenLayout->setMargin( 10 );
setCaption( tr( "Edit Templates" ) );
setIcon(loadIcon("AppIcon.png"));
Doc = doc;
View = view;
MusterSeitenLayout = new QHBoxLayout( this );
MusterSeitenLayout->setSpacing( 6 );
MusterSeitenLayout->setMargin( 10 );
 
ListBox1 = new QListBox( this, "ListBox1" );
ListBox1->setMinimumSize( QSize( 150, 240 ) );
MusterSeitenLayout->addWidget( ListBox1 );
ListBox1 = new QListBox( this, "ListBox1" );
ListBox1->setMinimumSize( QSize( 150, 240 ) );
MusterSeitenLayout->addWidget( ListBox1 );
 
Layout2 = new QVBoxLayout;
Layout2->setSpacing( 6 );
Layout2->setMargin( 0 );
Layout2 = new QVBoxLayout;
Layout2->setSpacing( 6 );
Layout2->setMargin( 0 );
 
LoadM = new QPushButton( this, "LoadF" );
LoadM->setText( tr( "Append" ) );
Layout2->addWidget( LoadM );
LoadM = new QPushButton( this, "LoadF" );
LoadM->setText( tr( "Append" ) );
Layout2->addWidget( LoadM );
 
NewB = new QPushButton( this, "NewB" );
NewB->setText( tr( "New" ) );
Layout2->addWidget( NewB );
NewB = new QPushButton( this, "NewB" );
NewB->setText( tr( "New" ) );
Layout2->addWidget( NewB );
 
DuplicateB = new QPushButton( this, "DublicateB" );
DuplicateB->setText( tr( "Duplicate" ) );
Layout2->addWidget( DuplicateB );
DuplicateB = new QPushButton( this, "DublicateB" );
DuplicateB->setText( tr( "Duplicate" ) );
Layout2->addWidget( DuplicateB );
 
DeleteB = new QPushButton( this, "DeleteB" );
DeleteB->setText( tr( "Delete" ) );
Layout2->addWidget( DeleteB );
DeleteB = new QPushButton( this, "DeleteB" );
DeleteB->setText( tr( "Delete" ) );
Layout2->addWidget( DeleteB );
 
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
Layout2->addItem( spacer );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
Layout2->addItem( spacer );
 
ExitB = new QPushButton( this, "ExitB" );
ExitB->setText( tr( "Exit" ) );
Layout2->addWidget( ExitB );
MusterSeitenLayout->addLayout( Layout2 );
ExitB = new QPushButton( this, "ExitB" );
ExitB->setText( tr( "Exit" ) );
Layout2->addWidget( ExitB );
MusterSeitenLayout->addLayout( Layout2 );
if (temp == "")
{
sMuster = "Normal";
updateMList(sMuster);
View->ShowTemplate(0);
sMuster = "Normal";
updateMList(sMuster);
View->ShowTemplate(0);
}
else
{
sMuster = temp;
updateMList(sMuster);
View->ShowTemplate(View->MasterNames[sMuster]);
sMuster = temp;
updateMList(sMuster);
View->ShowTemplate(View->MasterNames[sMuster]);
}
setMaximumSize(sizeHint());
setMaximumSize(sizeHint());
 
// signals and slots connections
connect(ExitB, SIGNAL(clicked()), this, SLOT(ExitEditor()));
connect(DuplicateB, SIGNAL(clicked()), this, SLOT(DuplTemp()));
connect(DeleteB, SIGNAL(clicked()), this, SLOT(DelTemp()));
connect(NewB, SIGNAL(clicked()), this, SLOT(NewTemp()));
// signals and slots connections
connect(ExitB, SIGNAL(clicked()), this, SLOT(ExitEditor()));
connect(DuplicateB, SIGNAL(clicked()), this, SLOT(DuplTemp()));
connect(DeleteB, SIGNAL(clicked()), this, SLOT(DelTemp()));
connect(NewB, SIGNAL(clicked()), this, SLOT(NewTemp()));
connect(LoadM, SIGNAL(clicked()), this, SLOT(loadMpage()));
connect(ListBox1, SIGNAL(highlighted(QListBoxItem*)), this, SLOT(selTemplate(QListBoxItem*)));
connect(ListBox1, SIGNAL(highlighted(QListBoxItem*)), this, SLOT(selTemplate(QListBoxItem*)));
}
 
void MusterSeiten::closeEvent(QCloseEvent *ce)
89,13 → 89,13
if (sMuster == "Normal")
return;
int exit=QMessageBox::warning(this,
tr("Warning"),
tr("Do you really want do delete this Template?"),
tr("No"),
tr("Yes"),
0, QMessageBox::No, QMessageBox::Yes);
tr("Warning"),
tr("Do you really want do delete this Template?"),
tr("No"),
tr("Yes"),
0, QMessageBox::No, QMessageBox::Yes);
if (exit == 1)
{
{
Doc->PageC = View->Pages.count();
View->delPage(View->MasterNames[sMuster]);
View->reformPages();
115,40 → 115,39
 
void MusterSeiten::DuplTemp()
{
QString nam;
int nr;
bool atf;
struct CLBuf Buffer;
NewTm *dia = new NewTm(this, tr("Name:"), tr("New Template"), Doc);
dia->Answer->setText( tr("Copy of %1").arg(sMuster));
dia->Answer->selectAll();
if (dia->exec())
{
nam = dia->Answer->text();
while (View->MasterNames.contains(nam) || (nam == "Normal"))
{
if (!dia->exec())
{
delete dia;
return;
}
nam = dia->Answer->text();
}
nr = View->Pages.count();
View->MasterNames.insert(nam, nr);
QString nam;
int nr;
bool atf;
struct CLBuf Buffer;
NewTm *dia = new NewTm(this, tr("Name:"), tr("New Template"), Doc);
dia->Answer->setText( tr("Copy of %1").arg(sMuster));
dia->Answer->selectAll();
if (dia->exec())
{
nam = dia->Answer->text();
while (View->MasterNames.contains(nam) || (nam == "Normal"))
{
if (!dia->exec())
{
delete dia;
return;
}
nam = dia->Answer->text();
}
nr = View->Pages.count();
View->MasterNames.insert(nam, nr);
for (uint a=0; a<View->Pages.count(); ++a)
View->Pages.at(a)->parentWidget()->hide();
View->Pages.at(a)->parentWidget()->hide();
Doc->PageC = 0;
atf = Doc->PageAT;
Doc->PageAT = false;
emit CreateNew(nr);
if (Doc->PageFP)
View->Pages.at(nr)->LeftPg = dia->Links->currentItem() == 0 ? true : false;
View->Pages.at(nr)->LeftPg = dia->Links->currentItem() == 0 ? true : false;
int inde = View->MasterNames[sMuster];
for (uint a=0; a<View->Pages.at(inde)->Items.count(); ++a)
{
CopyPageItem(&Buffer, View->Pages.at(inde)->Items.at(a));
// View->Pages.at(inde)->Items.at(a)->CopyIt(&Buffer);
Doc->ActPage->PasteItem(&Buffer, true, true);
}
Doc->ActPage->Deselect(true);
157,32 → 156,32
View->Pages.at(nr)->MPageNam = "";
updateMList(nam);
Doc->PageAT = atf;
}
delete dia;
}
delete dia;
}
 
void MusterSeiten::NewTemp()
{
QString nam;
int nr;
bool atf;
NewTm *dia = new NewTm(this, tr("Name:"), tr("New Template"), Doc);
dia->Answer->setText( tr("New Template"));
dia->Answer->selectAll();
if (dia->exec())
{
nam = dia->Answer->text();
while (View->MasterNames.contains(nam) || (nam == "Normal"))
{
if (!dia->exec())
{
delete dia;
return;
}
nam = dia->Answer->text();
}
nr = View->Pages.count();
View->MasterNames.insert(nam, nr);
QString nam;
int nr;
bool atf;
NewTm *dia = new NewTm(this, tr("Name:"), tr("New Template"), Doc);
dia->Answer->setText( tr("New Template"));
dia->Answer->selectAll();
if (dia->exec())
{
nam = dia->Answer->text();
while (View->MasterNames.contains(nam) || (nam == "Normal"))
{
if (!dia->exec())
{
delete dia;
return;
}
nam = dia->Answer->text();
}
nr = View->Pages.count();
View->MasterNames.insert(nam, nr);
for (uint a=0; a<View->Pages.count(); ++a)
View->Pages.at(a)->parentWidget()->hide();
Doc->PageC = 0;
195,8 → 194,8
View->Pages.at(nr)->MPageNam = "";
updateMList(nam);
Doc->PageAT = atf;
}
delete dia;
}
delete dia;
}
 
void MusterSeiten::loadMpage()
208,7 → 207,7
if (dia->exec())
{
qApp->setOverrideCursor(QCursor(waitCursor), true);
nr = View->Pages.count();
nr = View->Pages.count();
for (uint a=0; a<View->Pages.count(); ++a)
View->Pages.at(a)->parentWidget()->hide();
Doc->PageC = 0;
218,15 → 217,15
qApp->processEvents();
emit LoadPage(dia->Filename->text(), dia->PageNa->currentItem(), true);
qApp->processEvents();
nam = View->Pages.at(nr)->PageNam;
nam = View->Pages.at(nr)->PageNam;
nam2 = nam;
int copyC = 1;
while (View->MasterNames.contains(nam2))
while (View->MasterNames.contains(nam2))
{
nam2 = tr("Copy #%1 of ").arg(copyC)+nam;
copyC++;
}
View->MasterNames.insert(nam2, nr);
View->MasterNames.insert(nam2, nr);
View->Pages.at(nr)->PageNam = nam2;
View->Pages.at(nr)->MPageNam = "";
View->DrawNew();
239,16 → 238,16
 
void MusterSeiten::selTemplate(QListBoxItem *c)
{
sMuster = c->text();
sMuster = c->text();
DeleteB->setEnabled(View->MasterNames.count() == 1 ? false : true);
if (sMuster == tr("Normal"))
{
sMuster = "Normal";
DeleteB->setEnabled(false);
}
if (sMuster == tr("Normal"))
{
sMuster = "Normal";
DeleteB->setEnabled(false);
}
else
DeleteB->setEnabled(true);
View->ShowTemplate(View->MasterNames[sMuster]);
DeleteB->setEnabled(true);
View->ShowTemplate(View->MasterNames[sMuster]);
}
 
void MusterSeiten::updateMList(QString nam)
257,17 → 256,12
QMap<QString,int>::Iterator it;
for (it = View->MasterNames.begin(); it != View->MasterNames.end(); ++it)
ListBox1->insertItem(it.key() == "Normal" ? tr("Normal") : it.key());
/* if (it.key() == "Normal")
ListBox1->insertItem( tr("Normal"));
else
ListBox1->insertItem(it.key());
}*/
DeleteB->setEnabled(View->MasterNames.count() == 1 ? false : true);
DeleteB->setEnabled(View->MasterNames.count() == 1 ? false : true);
if (nam == "Normal")
{
nam = tr("Normal");
DeleteB->setEnabled(false);
}
{
nam = tr("Normal");
DeleteB->setEnabled(false);
}
ListBox1->setSelected(ListBox1->index(ListBox1->findItem(nam)), true);
}
 
/trunk/Scribus/scribus/libabout/about.cpp
54,7 → 54,7
tabLayout1->addWidget( PixmapLabel1 );
BuildID = new QLabel( tab, "BB" );
BuildID->setAlignment(Qt::AlignCenter);
QString bu = tr("%1. %2 %3 ").arg(06).arg(tr("March")).arg(2004);
QString bu = tr("%1. %2 %3 ").arg(8).arg(tr("March")).arg(2004);
#ifdef HAVE_CMS
bu += "C";
#else
/trunk/Scribus/scribus/scribus.cpp
4751,38 → 4751,43
 
void ScribusApp::slotEditLineStyles()
{
PageItem* ite;
if (HaveDoc)
{
LineFormate *dia = new LineFormate(this, doc);
connect(dia, SIGNAL(saveStyle(LineFormate *)), this, SLOT(saveLStyles(LineFormate *)));
if (dia->exec())
{
doc->MLineStyles = dia->TempStyles;
for (uint c = 0; c < view->DocPages.count(); ++c)
{
for (uint d = 0; d < view->DocPages.at(c)->Items.count(); ++d)
{
ite = view->DocPages.at(c)->Items.at(d);
if (!doc->MLineStyles.contains(ite->NamedLStyle))
ite->NamedLStyle = "";
}
}
for (uint c1 = 0; c1 < view->MasterPages.count(); ++c1)
{
for (uint d1 = 0; d1 < view->MasterPages.at(c1)->Items.count(); ++d1)
{
ite = view->MasterPages.at(c1)->Items.at(d1);
if (!doc->MLineStyles.contains(ite->NamedLStyle))
ite->NamedLStyle = "";
}
}
Mpal->SetLineFormats(doc);
view->DrawNew();
}
saveLStyles(dia);
disconnect(dia, SIGNAL(saveStyle(LineFormate *)), this, SLOT(saveLStyles(LineFormate *)));
delete dia;
}
}
 
void ScribusApp::saveLStyles(LineFormate *dia)
{
PageItem* ite;
doc->MLineStyles = dia->TempStyles;
for (uint c = 0; c < view->DocPages.count(); ++c)
{
for (uint d = 0; d < view->DocPages.at(c)->Items.count(); ++d)
{
ite = view->DocPages.at(c)->Items.at(d);
if (!doc->MLineStyles.contains(ite->NamedLStyle))
ite->NamedLStyle = "";
}
}
for (uint c1 = 0; c1 < view->MasterPages.count(); ++c1)
{
for (uint d1 = 0; d1 < view->MasterPages.at(c1)->Items.count(); ++d1)
{
ite = view->MasterPages.at(c1)->Items.at(d1);
if (!doc->MLineStyles.contains(ite->NamedLStyle))
ite->NamedLStyle = "";
}
}
Mpal->SetLineFormats(doc);
view->DrawNew();
}
 
void ScribusApp::slotEditStyles()
{
if (HaveDoc)
/trunk/Scribus/scribus/javadocs.cpp
8,7 → 8,7
JavaDocs::JavaDocs(QWidget* parent, ScribusDoc *doc, ScribusView* vie)
: QDialog( parent, "Javadocs", true, 0 )
{
setCaption( tr( "Global JavaScripts" ) );
setCaption( tr( "Edit JavaScripts" ) );
setIcon(loadIcon("AppIcon.png"));
Doc = doc;
View = vie;
/trunk/Scribus/scribus/libpdf/pdflib.cpp
2328,7 → 2328,7
if (ite->Pfile3 != "")
{
img2 = LoadPict(ite->Pfile3);
IconOb = img2.hasAlphaBuffer() ? 3 : 2;
IconOb += img2.hasAlphaBuffer() ? 3 : 2;
PutDoc("/RI "+IToStr(ObjCounter+IconOb-1)+" 0 R ");
}
PutDoc("/TP "+IToStr(ite->AnIPlace)+" ");
2789,7 → 2789,7
double aufl = Options->Resolution / 72.0;
int ImRes, ImWid, ImHei;
struct ShIm ImInfo;
if (!SharedImages.contains(fn))
if ((!SharedImages.contains(fn)) || (fromAN))
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles2))
/trunk/Scribus/scribus/annot.cpp
21,22 → 21,22
extern QPixmap loadIcon(QString nam);
 
Annot::Annot(QWidget* parent, PageItem *it, int Seite, int b, int h, CListe Farben, ScribusView* vie)
: QDialog( parent, "AN", true, 0 )
: QDialog( parent, "AN", true, 0 )
{
setCaption( tr( "Field Properties" ) );
setIcon(loadIcon("AppIcon.png"));
item = it;
Breite = b;
Hoehe = h;
OriBreite = b;
OriHoehe = h;
view = vie;
setCaption( tr( "Field Properties" ) );
setIcon(loadIcon("AppIcon.png"));
item = it;
Breite = b;
Hoehe = h;
OriBreite = b;
OriHoehe = h;
view = vie;
MaxSeite = Seite;
QStringList tl;
QStringList tl;
if ((item->AnActType == 2) || (item->AnActType == 7))
{
QString tm = item->AnAction;
tl = tl.split(" ", tm);
QString tm = item->AnAction;
tl = tl.split(" ", tm);
}
else
{
43,204 → 43,205
tl.append("0");
tl.append("0");
}
AnnotLayout = new QVBoxLayout( this );
AnnotLayout->setSpacing( 6 );
AnnotLayout->setMargin( 11 );
 
Layout1 = new QHBoxLayout;
Layout1->setSpacing( 6 );
Layout1->setMargin( 0 );
AnnotLayout = new QVBoxLayout( this );
AnnotLayout->setSpacing( 6 );
AnnotLayout->setMargin( 11 );
 
TextLabel1 = new QLabel( this, "TextLabel1" );
TextLabel1->setText( tr( "Type:" ) );
Layout1->addWidget( TextLabel1 );
Layout1 = new QHBoxLayout;
Layout1->setSpacing( 6 );
Layout1->setMargin( 0 );
 
ComboBox1 = new QComboBox( true, this, "ComboBox1" );
TextLabel1 = new QLabel( this, "TextLabel1" );
TextLabel1->setText( tr( "Type:" ) );
Layout1->addWidget( TextLabel1 );
 
ComboBox1 = new QComboBox( true, this, "ComboBox1" );
QString tmp[] = { tr("Button"), tr("Text Field"), tr("Check Box"), tr("Combo Box"), tr("List Box")};
size_t array = sizeof(tmp) / sizeof(*tmp);
for (uint a = 0; a < array; ++a)
ComboBox1->insertItem(tmp[a]);
ComboBox1->setEditable(false);
Layout1->addWidget( ComboBox1 );
AnnotLayout->addLayout( Layout1 );
ComboBox1->setCurrentItem(item->AnType-2);
ComboBox1->insertItem(tmp[a]);
ComboBox1->setEditable(false);
Layout1->addWidget( ComboBox1 );
AnnotLayout->addLayout( Layout1 );
ComboBox1->setCurrentItem(item->AnType-2);
 
Fram = new QWidgetStack(this);
AnnotLayout->addWidget( Fram );
Fram = new QWidgetStack(this);
AnnotLayout->addWidget( Fram );
 
GroupBox10 = new QGroupBox( this, "GroupBox1" );
GroupBox10->setGeometry( QRect( 11, 41, 360, 350 ) );
GroupBox10->setTitle( tr( "Properties" ) );
GroupBox10->setColumnLayout(0, Qt::Vertical );
GroupBox10->layout()->setSpacing( 5 );
GroupBox10->layout()->setMargin( 10 );
GroupBox10Layout = new QVBoxLayout( GroupBox10->layout() );
GroupBox10Layout->setAlignment( Qt::AlignTop );
GroupBox10 = new QGroupBox( this, "GroupBox1" );
GroupBox10->setGeometry( QRect( 11, 41, 360, 350 ) );
GroupBox10->setTitle( tr( "Properties" ) );
GroupBox10->setColumnLayout(0, Qt::Vertical );
GroupBox10->layout()->setSpacing( 5 );
GroupBox10->layout()->setMargin( 10 );
GroupBox10Layout = new QVBoxLayout( GroupBox10->layout() );
GroupBox10Layout->setAlignment( Qt::AlignTop );
 
Layout60 = new QGridLayout( 0, 1, 1, 0, 5, "Layout6");
TextLabel20 = new QLabel( GroupBox10, "TextLabel2" );
TextLabel20->setText( tr( "Name:" ) );
Layout60->addWidget( TextLabel20, 0, 0 );
Layout60 = new QGridLayout( 0, 1, 1, 0, 5, "Layout6");
TextLabel20 = new QLabel( GroupBox10, "TextLabel2" );
TextLabel20->setText( tr( "Name:" ) );
Layout60->addWidget( TextLabel20, 0, 0 );
 
Tip = new QLineEdit( GroupBox10, "Tip" );
Tip = new QLineEdit( GroupBox10, "Tip" );
Tip->setText(item->AnToolTip);
Layout60->addWidget( Tip, 1, 1 );
Layout60->addWidget( Tip, 1, 1 );
 
Name = new QLineEdit( GroupBox10, "Name" );
Name = new QLineEdit( GroupBox10, "Name" );
Name->setText(item->AnName);
Layout60->addWidget( Name, 0, 1 );
Layout60->addWidget( Name, 0, 1 );
 
TextLabel30 = new QLabel( GroupBox10, "TextLabel3" );
TextLabel30->setText( tr( "Tool-Tip:" ) );
Layout60->addWidget( TextLabel30, 1, 0);
GroupBox10Layout->addLayout( Layout60 );
TextLabel30 = new QLabel( GroupBox10, "TextLabel3" );
TextLabel30->setText( tr( "Tool-Tip:" ) );
Layout60->addWidget( TextLabel30, 1, 0);
GroupBox10Layout->addLayout( Layout60 );
 
TabWidget2 = new QTabWidget( GroupBox10, "TabWidget2" );
TabWidget2 = new QTabWidget( GroupBox10, "TabWidget2" );
 
tab = new QWidget( TabWidget2, "tab" );
tabLayout = new QVBoxLayout( tab, 10, 5, "tabLayout");
tab = new QWidget( TabWidget2, "tab" );
tabLayout = new QVBoxLayout( tab, 10, 5, "tabLayout");
 
GroupBox40 = new QGroupBox( tab, "GroupBox40" );
GroupBox40->setTitle( tr( "Text" ) );
GroupBox40->setColumnLayout(0, Qt::Vertical );
GroupBox40->layout()->setSpacing( 5 );
GroupBox40->layout()->setMargin( 10 );
GroupBox40Layout = new QGridLayout( GroupBox40->layout() );
GroupBox40Layout->setAlignment( Qt::AlignTop );
TextLabel60 = new QLabel( GroupBox40, "TextLabel6" );
TextLabel60->setText( tr( "Font for use with PDF-1.3:" ) );
GroupBox40Layout->addWidget( TextLabel60, 0, 0 );
Schrift = new QComboBox( true, GroupBox40, "Schrift" );
GroupBox40 = new QGroupBox( tab, "GroupBox40" );
GroupBox40->setTitle( tr( "Text" ) );
GroupBox40->setColumnLayout(0, Qt::Vertical );
GroupBox40->layout()->setSpacing( 5 );
GroupBox40->layout()->setMargin( 10 );
GroupBox40Layout = new QGridLayout( GroupBox40->layout() );
GroupBox40Layout->setAlignment( Qt::AlignTop );
TextLabel60 = new QLabel( GroupBox40, "TextLabel6" );
TextLabel60->setText( tr( "Font for use with PDF-1.3:" ) );
GroupBox40Layout->addWidget( TextLabel60, 0, 0 );
Schrift = new QComboBox( true, GroupBox40, "Schrift" );
/* PFJ - 28/02/04 - Altered from char* to QString. Renamed to fonts and the
loop changed from uint to int and the name to propogate */
QString fonts[]={"Courier", "Courier Bold", "Courier Italic",
"Courier Bold Italic", "Helvetica",
"Helvetica Bold", "Helvetica Italic", "Helvetica Bold Italic",
"Times", "Times Bold",
"Times Italic", "Times Bold Italic", "Zapf Dingbats",
"Symbols"};
/* FS - 08.03.04 - loop variable must be uint otherwise you get a compiler warning */
QString fonts[]={"Courier", "Courier Bold", "Courier Italic",
"Courier Bold Italic", "Helvetica",
"Helvetica Bold", "Helvetica Italic", "Helvetica Bold Italic",
"Times", "Times Bold",
"Times Italic", "Times Bold Italic", "Zapf Dingbats",
"Symbols"};
size_t fontsArray = sizeof(fonts) / sizeof(*fonts);
for (uint propogate = 0; propogate < fontsArray; ++propogate)
Schrift->insertItem(fonts[propogate]);
Schrift->setEditable(false);
Schrift->setEditable(false);
Schrift->setCurrentItem(item->AnFont);
GroupBox40Layout->addMultiCellWidget( Schrift, 0, 0, 1, 2);
tabLayout->addWidget( GroupBox40 );
GroupBox40Layout->addMultiCellWidget( Schrift, 0, 0, 1, 2);
tabLayout->addWidget( GroupBox40 );
 
Layout10 = new QHBoxLayout( 0, 0, 5, "Layout1");
GroupBox20 = new QGroupBox( tab, "GroupBox2" );
GroupBox20->setTitle( tr( "Border" ) );
GroupBox20->setColumnLayout(0, Qt::Vertical );
GroupBox20->layout()->setSpacing( 5 );
GroupBox20->layout()->setMargin( 10 );
GroupBox20Layout = new QGridLayout( GroupBox20->layout() );
GroupBox20Layout->setAlignment( Qt::AlignTop );
TextLabel40a = new QLabel( GroupBox20, "TextLabel4a" );
TextLabel40a->setText( tr( "Color:" ) );
GroupBox20Layout->addWidget( TextLabel40a, 0, 0 );
BorderC = new QComboBox( true, GroupBox20, "BorderC" );
Layout10 = new QHBoxLayout( 0, 0, 5, "Layout1");
GroupBox20 = new QGroupBox( tab, "GroupBox2" );
GroupBox20->setTitle( tr( "Border" ) );
GroupBox20->setColumnLayout(0, Qt::Vertical );
GroupBox20->layout()->setSpacing( 5 );
GroupBox20->layout()->setMargin( 10 );
GroupBox20Layout = new QGridLayout( GroupBox20->layout() );
GroupBox20Layout->setAlignment( Qt::AlignTop );
TextLabel40a = new QLabel( GroupBox20, "TextLabel4a" );
TextLabel40a->setText( tr( "Color:" ) );
GroupBox20Layout->addWidget( TextLabel40a, 0, 0 );
BorderC = new QComboBox( true, GroupBox20, "BorderC" );
CListe::Iterator cit;
QPixmap pm;
BorderC->insertItem( tr("None"));
if (item->AnBColor == "None")
BorderC->setCurrentItem(BorderC->count()-1);
pm = QPixmap(15, 15);
BorderC->insertItem( tr("None"));
if (item->AnBColor == "None")
BorderC->setCurrentItem(BorderC->count()-1);
pm = QPixmap(15, 15);
for (cit = Farben.begin(); cit != Farben.end(); ++cit)
{
pm.fill(Farben[cit.key()].getRGBColor());
BorderC->insertItem(pm, cit.key());
if (cit.key() == item->AnBColor)
BorderC->setCurrentItem(BorderC->count()-1);
if (cit.key() == item->AnBColor)
BorderC->setCurrentItem(BorderC->count()-1);
}
BorderC->setEditable(false);
GroupBox20Layout->addWidget( BorderC, 0, 1 );
TextLabel40 = new QLabel( GroupBox20, "TextLabel4" );
TextLabel40->setText( tr( "Width:" ) );
GroupBox20Layout->addWidget( TextLabel40, 1, 0 );
BorderW = new QComboBox( true, GroupBox20, "BorderW" );
BorderC->setEditable(false);
GroupBox20Layout->addWidget( BorderC, 0, 1 );
TextLabel40 = new QLabel( GroupBox20, "TextLabel4" );
TextLabel40->setText( tr( "Width:" ) );
GroupBox20Layout->addWidget( TextLabel40, 1, 0 );
BorderW = new QComboBox( true, GroupBox20, "BorderW" );
/* PFJ - 28/02/04 - Altered to the QString/size_t/for style */
QString borders[] = {tr("None"), tr("Thin"), tr("Normal"), tr("Wide")};
size_t bordersArray = sizeof(borders) / sizeof(*borders);
for (uint propogate = 0; propogate < bordersArray; ++propogate)
BorderW->insertItem(borders[propogate]);
BorderW->setEditable(false);
BorderW->setEditable(false);
BorderW->setCurrentItem(item->AnBwid);
GroupBox20Layout->addWidget( BorderW, 1, 1 );
TextLabel50 = new QLabel( GroupBox20, "TextLabel5" );
TextLabel50->setText( tr( "Style:" ) );
GroupBox20Layout->addWidget( TextLabel50, 2, 0 );
BorderS = new QComboBox( true, GroupBox20, "BorderS" );
GroupBox20Layout->addWidget( BorderW, 1, 1 );
TextLabel50 = new QLabel( GroupBox20, "TextLabel5" );
TextLabel50->setText( tr( "Style:" ) );
GroupBox20Layout->addWidget( TextLabel50, 2, 0 );
BorderS = new QComboBox( true, GroupBox20, "BorderS" );
/* PFJ - 28/02/04 - Altered to the QString/size_t/for style */
QString borders2[] = {tr("Solid"), tr("Dashed"), tr("Underline"),
tr("Beveled"), tr("Inset")};
tr("Beveled"), tr("Inset")};
size_t borders2Array = sizeof(borders2) / sizeof(*borders2);
for (uint propogate = 0; propogate < borders2Array; ++propogate)
BorderS->insertItem(borders2[propogate]);
BorderS->setEditable(false);
BorderS->setEditable(false);
BorderS->setCurrentItem(item->AnBsty);
GroupBox20Layout->addWidget( BorderS, 2, 1 );
Layout10->addWidget( GroupBox20 );
GroupBox20Layout->addWidget( BorderS, 2, 1 );
Layout10->addWidget( GroupBox20 );
 
GroupBox30 = new QGroupBox( tab, "GroupBox3" );
GroupBox30->setTitle( tr( "Other" ) );
GroupBox30->setColumnLayout(0, Qt::Vertical );
GroupBox30->layout()->setSpacing( 5 );
GroupBox30->layout()->setMargin( 10 );
GroupBox30Layout = new QGridLayout( GroupBox30->layout() );
GroupBox30Layout->setAlignment( Qt::AlignTop );
ReadOnly = new QCheckBox( GroupBox30, "ReadOnly" );
ReadOnly->setText( tr( "Read Only" ) );
GroupBox30 = new QGroupBox( tab, "GroupBox3" );
GroupBox30->setTitle( tr( "Other" ) );
GroupBox30->setColumnLayout(0, Qt::Vertical );
GroupBox30->layout()->setSpacing( 5 );
GroupBox30->layout()->setMargin( 10 );
GroupBox30Layout = new QGridLayout( GroupBox30->layout() );
GroupBox30Layout->setAlignment( Qt::AlignTop );
ReadOnly = new QCheckBox( GroupBox30, "ReadOnly" );
ReadOnly->setText( tr( "Read Only" ) );
if (item->AnType == 2)
ReadOnly->setEnabled(false);
ReadOnly->setChecked(item->AnFlag & 1);
GroupBox30Layout->addMultiCellWidget( ReadOnly, 0, 0, 0, 1 );
Required = new QCheckBox( GroupBox30, "ReadOnly" );
Required->setText( tr( "Required" ) );
GroupBox30Layout->addMultiCellWidget( ReadOnly, 0, 0, 0, 1 );
Required = new QCheckBox( GroupBox30, "ReadOnly" );
Required->setText( tr( "Required" ) );
if (item->AnType == 2)
Required->setEnabled(false);
Required->setChecked(item->AnFlag & 2);
GroupBox30Layout->addMultiCellWidget( Required, 1, 1, 0, 1 );
NoExport = new QCheckBox( GroupBox30, "NoExport" );
NoExport->setText( tr( "Don't Export Value" ) );
GroupBox30Layout->addMultiCellWidget( Required, 1, 1, 0, 1 );
NoExport = new QCheckBox( GroupBox30, "NoExport" );
NoExport->setText( tr( "Don't Export Value" ) );
if (item->AnType == 2)
NoExport->setEnabled(false);
NoExport->setChecked(item->AnFlag & 4);
GroupBox30Layout->addMultiCellWidget( NoExport, 2, 2, 0, 1 );
TextLabel90 = new QLabel( GroupBox30, "TextLabel9" );
TextLabel90->setText( tr( "Visibility:" ) );
GroupBox30Layout->addWidget( TextLabel90, 3, 0 );
Visib = new QComboBox( true, GroupBox30, "Visib" );
GroupBox30Layout->addMultiCellWidget( NoExport, 2, 2, 0, 1 );
TextLabel90 = new QLabel( GroupBox30, "TextLabel9" );
TextLabel90->setText( tr( "Visibility:" ) );
GroupBox30Layout->addWidget( TextLabel90, 3, 0 );
Visib = new QComboBox( true, GroupBox30, "Visib" );
/* PFJ - 28/02/04 - Altered to the QString/size_t/for style */
QString visible[] = {tr("Visible"), tr("Hidden"), tr("No Print"),
tr("No View")};
QString visible[] = {tr("Visible"), tr("Hidden"), tr("No Print"),
tr("No View")};
size_t visibleArray = sizeof(visible) / sizeof(*visible);
for (uint propogate = 0; propogate < visibleArray; ++propogate)
Visib->insertItem(visible[propogate]);
Visib->setEditable(false);
Visib->setEditable(false);
Visib->setCurrentItem(item->AnVis);
GroupBox30Layout->addWidget( Visib, 3, 1 );
Layout10->addWidget( GroupBox30 );
tabLayout->addLayout( Layout10 );
TabWidget2->insertTab( tab, tr( "Appearance" ) );
GroupBox30Layout->addWidget( Visib, 3, 1 );
Layout10->addWidget( GroupBox30 );
tabLayout->addLayout( Layout10 );
TabWidget2->insertTab( tab, tr( "Appearance" ) );
 
tab_3 = new QWidget( TabWidget2, "tab_3" );
tabLayout_3 = new QVBoxLayout( tab_3, 11, 6, "tabLayout_3");
FramOp = new QWidgetStack(tab_3);
Frame4a = new QGroupBox( tab_3, "GroupBox1" );
Frame4a->setTitle("");
Frame4a->setFrameShape( QFrame::NoFrame );
Frame4a->setColumnLayout(0, Qt::Vertical );
Frame4a->layout()->setSpacing( 0 );
Frame4a->layout()->setMargin( 0 );
Frame4aLayout = new QGridLayout( Frame4a->layout());
GroupBox40a = new QGroupBox( Frame4a, "GroupBox40" );
GroupBox40a->setTitle( tr( "Text" ) );
GroupBox40a->setColumnLayout(0, Qt::Vertical );
GroupBox40a->layout()->setSpacing( 5 );
GroupBox40a->layout()->setMargin( 10 );
GroupBox40aLayout = new QGridLayout( GroupBox40a->layout() );
GroupBox40aLayout->setAlignment( Qt::AlignTop );
tab_3 = new QWidget( TabWidget2, "tab_3" );
tabLayout_3 = new QVBoxLayout( tab_3, 11, 6, "tabLayout_3");
FramOp = new QWidgetStack(tab_3);
Frame4a = new QGroupBox( tab_3, "GroupBox1" );
Frame4a->setTitle("");
Frame4a->setFrameShape( QFrame::NoFrame );
Frame4a->setColumnLayout(0, Qt::Vertical );
Frame4a->layout()->setSpacing( 0 );
Frame4a->layout()->setMargin( 0 );
Frame4aLayout = new QGridLayout( Frame4a->layout());
GroupBox40a = new QGroupBox( Frame4a, "GroupBox40" );
GroupBox40a->setTitle( tr( "Text" ) );
GroupBox40a->setColumnLayout(0, Qt::Vertical );
GroupBox40a->layout()->setSpacing( 5 );
GroupBox40a->layout()->setMargin( 10 );
GroupBox40aLayout = new QGridLayout( GroupBox40a->layout() );
GroupBox40aLayout->setAlignment( Qt::AlignTop );
CheckBox30 = new QLabel( GroupBox40a, "CheckBox3" );
CheckBox30->setText( tr( "Text for Button Down" ) );
GroupBox40aLayout->addMultiCellWidget( CheckBox30, 0, 0, 0, 1 );
253,77 → 254,77
TextO = new QLineEdit( GroupBox40a, "TextO" );
TextO->setText(item->AnRollOver);
GroupBox40aLayout->addWidget( TextO, 1, 2 );
Frame4aLayout->addMultiCellWidget( GroupBox40a, 0, 0, 0, 1 );
Frame4aLayout->addMultiCellWidget( GroupBox40a, 0, 0, 0, 1 );
 
OptIcons = new QGroupBox( Frame4a, "OptIcons" );
OptIcons->setTitle( tr( "Icons" ) );
OptIcons->setColumnLayout(0, Qt::Vertical );
OptIcons->layout()->setSpacing( 6 );
OptIcons->layout()->setMargin( 11 );
OptIconsLayout = new QVBoxLayout( OptIcons->layout() );
OptIconsLayout->setAlignment( Qt::AlignTop );
OptIcons = new QGroupBox( Frame4a, "OptIcons" );
OptIcons->setTitle( tr( "Icons" ) );
OptIcons->setColumnLayout(0, Qt::Vertical );
OptIcons->layout()->setSpacing( 6 );
OptIcons->layout()->setMargin( 11 );
OptIconsLayout = new QVBoxLayout( OptIcons->layout() );
OptIconsLayout->setAlignment( Qt::AlignTop );
UseIcons = new QCheckBox(OptIcons, "UIc");
UseIcons->setText( tr("Use Icons"));
UseIcons->setChecked(item->AnUseIcons);
OptIconsLayout->addWidget(UseIcons);
Layout17 = new QHBoxLayout( 0, 0, 6, "Layout17");
Layout17 = new QHBoxLayout( 0, 0, 6, "Layout17");
 
Layout14 = new QGridLayout( 0, 0, 6, "Layout14");
IconN = new QPushButton( OptIcons, "IconN" );
IconN->setText( tr( "Normal" ) );
Layout14->addMultiCellWidget( IconN, 0, 0, 0, 2);
NiconPrev = new QLabel( OptIcons, "NiconPrev" );
NiconPrev->setMinimumSize( QSize( 25, 25 ) );
NiconPrev->setMaximumSize( QSize( 25, 25 ) );
NiconPrev->setFrameShape( QLabel::Panel );
NiconPrev->setFrameShadow( QLabel::Raised );
NiconPrev->setScaledContents( true );
Layout14->addWidget( NiconPrev, 1, 1 );
IconNR = new QPushButton( OptIcons, "IconNr" );
IconNR->setText( tr( "Remove" ) );
Layout14->addMultiCellWidget( IconNR, 2, 2, 0, 2);
Layout17->addLayout( Layout14 );
Layout14 = new QGridLayout( 0, 0, 6, "Layout14");
IconN = new QPushButton( OptIcons, "IconN" );
IconN->setText( tr( "Normal" ) );
Layout14->addMultiCellWidget( IconN, 0, 0, 0, 2);
NiconPrev = new QLabel( OptIcons, "NiconPrev" );
NiconPrev->setMinimumSize( QSize( 25, 25 ) );
NiconPrev->setMaximumSize( QSize( 25, 25 ) );
NiconPrev->setFrameShape( QLabel::Panel );
NiconPrev->setFrameShadow( QLabel::Raised );
NiconPrev->setScaledContents( true );
Layout14->addWidget( NiconPrev, 1, 1 );
IconNR = new QPushButton( OptIcons, "IconNr" );
IconNR->setText( tr( "Remove" ) );
Layout14->addMultiCellWidget( IconNR, 2, 2, 0, 2);
Layout17->addLayout( Layout14 );
 
Layout15 = new QGridLayout( 0, 0, 6, "Layout15");
IconP = new QPushButton( OptIcons, "IconP" );
IconP->setText( tr( "Pressed" ) );
Layout15->addMultiCellWidget( IconP, 0, 0, 0, 2 );
PiconPrev = new QLabel( OptIcons, "PiconPrev" );
PiconPrev->setMinimumSize( QSize( 25, 25 ) );
PiconPrev->setMaximumSize( QSize( 25, 25 ) );
PiconPrev->setFrameShape( QLabel::Panel );
PiconPrev->setFrameShadow( QLabel::Raised );
PiconPrev->setScaledContents( true );
Layout15->addWidget( PiconPrev, 1, 1 );
IconPR = new QPushButton( OptIcons, "Iconrr" );
IconPR->setText( tr( "Remove" ) );
Layout15->addMultiCellWidget( IconPR, 2, 2, 0, 2);
Layout17->addLayout( Layout15 );
Layout15 = new QGridLayout( 0, 0, 6, "Layout15");
IconP = new QPushButton( OptIcons, "IconP" );
IconP->setText( tr( "Pressed" ) );
Layout15->addMultiCellWidget( IconP, 0, 0, 0, 2 );
PiconPrev = new QLabel( OptIcons, "PiconPrev" );
PiconPrev->setMinimumSize( QSize( 25, 25 ) );
PiconPrev->setMaximumSize( QSize( 25, 25 ) );
PiconPrev->setFrameShape( QLabel::Panel );
PiconPrev->setFrameShadow( QLabel::Raised );
PiconPrev->setScaledContents( true );
Layout15->addWidget( PiconPrev, 1, 1 );
IconPR = new QPushButton( OptIcons, "Iconrr" );
IconPR->setText( tr( "Remove" ) );
Layout15->addMultiCellWidget( IconPR, 2, 2, 0, 2);
Layout17->addLayout( Layout15 );
 
Layout16 = new QGridLayout( 0, 0, 6, "Layout16");
IconR = new QPushButton( OptIcons, "IconR" );
IconR->setText( tr( "Roll Over" ) );
Layout16->addMultiCellWidget( IconR, 0, 0, 0, 2 );
RiconPrev = new QLabel( OptIcons, "RiconPrev" );
RiconPrev->setMinimumSize( QSize( 25, 25 ) );
RiconPrev->setMaximumSize( QSize( 25, 25 ) );
RiconPrev->setFrameShape( QLabel::Panel );
RiconPrev->setFrameShadow( QLabel::Raised );
RiconPrev->setScaledContents( true );
Layout16->addWidget( RiconPrev, 1, 1 );
IconRR = new QPushButton( OptIcons, "IconrNr" );
IconRR->setText( tr( "Remove" ) );
Layout16->addMultiCellWidget( IconRR, 2, 2, 0, 2);
Layout17->addLayout( Layout16 );
OptIconsLayout->addLayout( Layout17 );
Layout16 = new QGridLayout( 0, 0, 6, "Layout16");
IconR = new QPushButton( OptIcons, "IconR" );
IconR->setText( tr( "Roll Over" ) );
Layout16->addMultiCellWidget( IconR, 0, 0, 0, 2 );
RiconPrev = new QLabel( OptIcons, "RiconPrev" );
RiconPrev->setMinimumSize( QSize( 25, 25 ) );
RiconPrev->setMaximumSize( QSize( 25, 25 ) );
RiconPrev->setFrameShape( QLabel::Panel );
RiconPrev->setFrameShadow( QLabel::Raised );
RiconPrev->setScaledContents( true );
Layout16->addWidget( RiconPrev, 1, 1 );
IconRR = new QPushButton( OptIcons, "IconrNr" );
IconRR->setText( tr( "Remove" ) );
Layout16->addMultiCellWidget( IconRR, 2, 2, 0, 2);
Layout17->addLayout( Layout16 );
OptIconsLayout->addLayout( Layout17 );
 
Layout18 = new QHBoxLayout( 0, 0, 6, "Layout18");
PlaceIcon = new QPushButton( OptIcons, "PlaceIcon" );
PlaceIcon->setText( tr( "Icon Placement..." ) );
Layout18->addWidget( PlaceIcon );
QSpacerItem* spacer_2x = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout18->addItem( spacer_2x );
OptIconsLayout->addLayout( Layout18 );
Layout18 = new QHBoxLayout( 0, 0, 6, "Layout18");
PlaceIcon = new QPushButton( OptIcons, "PlaceIcon" );
PlaceIcon->setText( tr( "Icon Placement..." ) );
Layout18->addWidget( PlaceIcon );
QSpacerItem* spacer_2x = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout18->addItem( spacer_2x );
OptIconsLayout->addLayout( Layout18 );
IconNR->setEnabled(false);
IconPR->setEnabled(false);
IconRR->setEnabled(false);
363,47 → 364,47
IconRR->setEnabled(true);
}
}
Frame4aLayout->addWidget( OptIcons, 1, 0 );
Frame4aLayout->addWidget( OptIcons, 1, 0 );
 
GroupBox30a = new QGroupBox( Frame4a, "GroupBox3" );
GroupBox30a->setTitle( tr( "Highlight" ) );
GroupBox30a->setColumnLayout(0, Qt::Vertical );
GroupBox30a->layout()->setSpacing( 5 );
GroupBox30a->layout()->setMargin( 10 );
GroupBox30aLayout = new QGridLayout( GroupBox30a->layout() );
GroupBox30aLayout->setAlignment( Qt::AlignTop );
ComboBox7_2 = new QComboBox( true, GroupBox30a, "ComboBox7_2" );
GroupBox30a = new QGroupBox( Frame4a, "GroupBox3" );
GroupBox30a->setTitle( tr( "Highlight" ) );
GroupBox30a->setColumnLayout(0, Qt::Vertical );
GroupBox30a->layout()->setSpacing( 5 );
GroupBox30a->layout()->setMargin( 10 );
GroupBox30aLayout = new QGridLayout( GroupBox30a->layout() );
GroupBox30aLayout->setAlignment( Qt::AlignTop );
ComboBox7_2 = new QComboBox( true, GroupBox30a, "ComboBox7_2" );
/* PFJ - 28/02/04 - Altered to QString/size_t/for style */
QString combo[] = {tr("None"), tr("Invert"), tr("Outlined"), tr("Push")};
size_t comboArray = sizeof(combo) / sizeof(*combo);
for (uint propogate = 0; propogate < comboArray; ++propogate)
ComboBox7_2->insertItem(combo[propogate]);
ComboBox7_2->setEditable(false);
ComboBox7_2->setEditable(false);
ComboBox7_2->setCurrentItem(item->AnFeed);
GroupBox30aLayout->addWidget( ComboBox7_2, 0, 0 );
Frame4aLayout->addWidget( GroupBox30a, 1, 1 );
FramOp->addWidget( Frame4a , 2);
GroupBox30aLayout->addWidget( ComboBox7_2, 0, 0 );
Frame4aLayout->addWidget( GroupBox30a, 1, 1 );
FramOp->addWidget( Frame4a , 2);
 
OptTextFeld = new QGroupBox( tab_3, "OptTextFeld" );
OptTextFeld->setTitle( tr( "" ) );
OptTextFeld->setColumnLayout(0, Qt::Vertical );
OptTextFeld->layout()->setSpacing( 6 );
OptTextFeld->layout()->setMargin( 11 );
OptTextFeldLayout = new QVBoxLayout( OptTextFeld->layout() );
OptTextFeldLayout->setAlignment( Qt::AlignTop );
MultiL = new QCheckBox( OptTextFeld, "MultiL" );
MultiL->setText( tr( "Multi-Line" ) );
OptTextFeld = new QGroupBox( tab_3, "OptTextFeld" );
OptTextFeld->setTitle( tr( "" ) );
OptTextFeld->setColumnLayout(0, Qt::Vertical );
OptTextFeld->layout()->setSpacing( 6 );
OptTextFeld->layout()->setMargin( 11 );
OptTextFeldLayout = new QVBoxLayout( OptTextFeld->layout() );
OptTextFeldLayout->setAlignment( Qt::AlignTop );
MultiL = new QCheckBox( OptTextFeld, "MultiL" );
MultiL->setText( tr( "Multi-Line" ) );
MultiL->setChecked(item->AnFlag & 4096);
OptTextFeldLayout->addWidget( MultiL );
Passwd = new QCheckBox( OptTextFeld, "Passwd" );
Passwd->setText( tr( "Password" ) );
OptTextFeldLayout->addWidget( MultiL );
Passwd = new QCheckBox( OptTextFeld, "Passwd" );
Passwd->setText( tr( "Password" ) );
Passwd->setChecked(item->AnFlag & 8192);
OptTextFeldLayout->addWidget( Passwd );
Layout8 = new QHBoxLayout( 0, 0, 5, "Layout8");
Limit = new QCheckBox( OptTextFeld, "Limit" );
Limit->setText( tr( "Limit of" ) );
Layout8->addWidget( Limit );
MaxChars = new QSpinBox( OptTextFeld, "MaxChars" );
OptTextFeldLayout->addWidget( Passwd );
Layout8 = new QHBoxLayout( 0, 0, 5, "Layout8");
Limit = new QCheckBox( OptTextFeld, "Limit" );
Limit->setText( tr( "Limit of" ) );
Layout8->addWidget( Limit );
MaxChars = new QSpinBox( OptTextFeld, "MaxChars" );
MaxChars->setMinValue(0);
MaxChars->setMaxValue(32768);
bool setter = item->AnMaxChar != -1 ? true : false;
410,35 → 411,35
MaxChars->setValue(setter == true ? item->AnMaxChar : 0);
Limit->setChecked(setter);
MaxChars->setEnabled(setter);
Layout8->addWidget( MaxChars );
TextLabel2_2 = new QLabel( OptTextFeld, "TextLabel2_2" );
TextLabel2_2->setText( tr( "Characters" ) );
Layout8->addWidget( TextLabel2_2 );
QSpacerItem* spacer_2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout8->addItem( spacer_2 );
OptTextFeldLayout->addLayout( Layout8 );
NoScroll = new QCheckBox( OptTextFeld, "ncs" );
NoScroll->setText( tr( "Do Not Scroll" ) );
Layout8->addWidget( MaxChars );
TextLabel2_2 = new QLabel( OptTextFeld, "TextLabel2_2" );
TextLabel2_2->setText( tr( "Characters" ) );
Layout8->addWidget( TextLabel2_2 );
QSpacerItem* spacer_2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout8->addItem( spacer_2 );
OptTextFeldLayout->addLayout( Layout8 );
NoScroll = new QCheckBox( OptTextFeld, "ncs" );
NoScroll->setText( tr( "Do Not Scroll" ) );
NoScroll->setChecked(item->AnFlag & 8388608);
OptTextFeldLayout->addWidget( NoScroll );
NoSpell = new QCheckBox( OptTextFeld, "nsp" );
NoSpell->setText( tr( "Do Not Spell Check" ) );
OptTextFeldLayout->addWidget( NoScroll );
NoSpell = new QCheckBox( OptTextFeld, "nsp" );
NoSpell->setText( tr( "Do Not Spell Check" ) );
NoSpell->setChecked(item->AnFlag & 4194304);
OptTextFeldLayout->addWidget( NoSpell );
FramOp->addWidget( OptTextFeld , 3);
OptTextFeldLayout->addWidget( NoSpell );
FramOp->addWidget( OptTextFeld , 3);
 
OptCheck = new QGroupBox( tab_3, "OptCheck" );
OptCheck->setTitle( tr( "" ) );
OptCheck->setColumnLayout(0, Qt::Vertical );
OptCheck->layout()->setSpacing( 6 );
OptCheck->layout()->setMargin( 11 );
OptCheckLayout = new QVBoxLayout( OptCheck->layout() );
OptCheckLayout->setAlignment( Qt::AlignTop );
ChkLayout = new QHBoxLayout( 0, 0, 5, "ChkLayout");
CText1 = new QLabel( OptCheck, "CText1" );
CText1->setText( tr( "Check Style:" ) );
ChkLayout->addWidget( CText1 );
ChkStil = new QComboBox( true, OptCheck, "ChkStil" );
OptCheck = new QGroupBox( tab_3, "OptCheck" );
OptCheck->setTitle( tr( "" ) );
OptCheck->setColumnLayout(0, Qt::Vertical );
OptCheck->layout()->setSpacing( 6 );
OptCheck->layout()->setMargin( 11 );
OptCheckLayout = new QVBoxLayout( OptCheck->layout() );
OptCheckLayout->setAlignment( Qt::AlignTop );
ChkLayout = new QHBoxLayout( 0, 0, 5, "ChkLayout");
CText1 = new QLabel( OptCheck, "CText1" );
CText1->setText( tr( "Check Style:" ) );
ChkLayout->addWidget( CText1 );
ChkStil = new QComboBox( true, OptCheck, "ChkStil" );
QString tmp_chkstil2[]={ tr("Check"), tr("Cross"), tr("Diamond"), tr("Circle"), tr("Star"), tr("Square")};
size_t array_chk2 = sizeof(tmp_chkstil2) / sizeof(*tmp_chkstil2);
/* PFJ - 28/02/04 - Altered from uint to int and altered var name */
447,196 → 448,196
 
ChkStil->setEditable(false);
ChkStil->setCurrentItem(item->AnChkStil);
ChkLayout->addWidget( ChkStil );
QSpacerItem* spacerC = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ChkLayout->addItem( spacerC );
OptCheckLayout->addLayout( ChkLayout );
ChkLayout->addWidget( ChkStil );
QSpacerItem* spacerC = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ChkLayout->addItem( spacerC );
OptCheckLayout->addLayout( ChkLayout );
 
isChkd = new QCheckBox( OptCheck, "isChkd" );
isChkd->setText( tr( "Default is Checked" ) );
isChkd = new QCheckBox( OptCheck, "isChkd" );
isChkd->setText( tr( "Default is Checked" ) );
isChkd->setChecked(item->AnIsChk);
OptCheckLayout->addWidget( isChkd );
FramOp->addWidget( OptCheck, 4);
OptCheckLayout->addWidget( isChkd );
FramOp->addWidget( OptCheck, 4);
 
OptCombo = new QGroupBox( tab_3, "OptCombo" );
OptCombo->setTitle( tr( "" ) );
OptCombo->setColumnLayout(0, Qt::Vertical );
OptCombo->layout()->setSpacing( 6 );
OptCombo->layout()->setMargin( 11 );
OptComboLayout = new QVBoxLayout( OptCombo->layout() );
OptComboLayout->setAlignment( Qt::AlignTop );
CanEdit = new QCheckBox( OptCombo, "isEdit" );
CanEdit->setText( tr( "Editable" ) );
OptCombo = new QGroupBox( tab_3, "OptCombo" );
OptCombo->setTitle( tr( "" ) );
OptCombo->setColumnLayout(0, Qt::Vertical );
OptCombo->layout()->setSpacing( 6 );
OptCombo->layout()->setMargin( 11 );
OptComboLayout = new QVBoxLayout( OptCombo->layout() );
OptComboLayout->setAlignment( Qt::AlignTop );
CanEdit = new QCheckBox( OptCombo, "isEdit" );
CanEdit->setText( tr( "Editable" ) );
CanEdit->setChecked(item->AnFlag & 262144);
OptComboLayout->addWidget( CanEdit );
FramOp->addWidget( OptCombo, 5);
OptComboLayout->addWidget( CanEdit );
FramOp->addWidget( OptCombo, 5);
 
tabLayout_3->addWidget( FramOp );
tabLayout_3->addWidget( FramOp );
 
TabWidget2->insertTab( tab_3, tr( "Options" ) );
TabWidget2->insertTab( tab_3, tr( "Options" ) );
 
tab_2 = new QWidget( TabWidget2, "tab_2" );
tabLayout_2 = new QVBoxLayout( tab_2, 11, 6, "tabLayout_2");
tab_2 = new QWidget( TabWidget2, "tab_2" );
tabLayout_2 = new QVBoxLayout( tab_2, 11, 6, "tabLayout_2");
 
Layout20 = new QHBoxLayout( 0, 0, 5, "Layout2");
Layout20 = new QHBoxLayout( 0, 0, 5, "Layout2");
 
TextLabel70 = new QLabel( tab_2, "TextLabel7" );
TextLabel70->setText( tr( "Type:" ) );
Layout20->addWidget( TextLabel70 );
TextLabel70 = new QLabel( tab_2, "TextLabel7" );
TextLabel70->setText( tr( "Type:" ) );
Layout20->addWidget( TextLabel70 );
 
ActionCombo = new QComboBox( true, tab_2, "ActTyp" );
ActionCombo = new QComboBox( true, tab_2, "ActTyp" );
QString tmp_actcom[] = {tr("None"), tr("Java Script"), tr("Go To"),
tr("Submit Form"), tr("Reset Form"), tr("Import Data")};
tr("Submit Form"), tr("Reset Form"), tr("Import Data")};
size_t array_act = sizeof(tmp_actcom) / sizeof(*tmp_actcom);
/* PFJ - 28/02/04 - Altered from uint to int and var name */
for (uint propogate = 0; propogate < array_act; ++propogate)
ActionCombo->insertItem(tmp_actcom[propogate]);
ActionCombo->setEditable(false);
ActionCombo->setEditable(false);
int tmpac = item->AnActType;
if (item->AnActType < 0)
tmpac = 1;
ActionCombo->setCurrentItem(tmpac == 7 ? 2 : tmpac);
 
Layout20->addWidget( ActionCombo );
tabLayout_2->addLayout( Layout20 );
Layout20->addWidget( ActionCombo );
tabLayout_2->addLayout( Layout20 );
 
Fram2 = new QWidgetStack(tab_2);
tabLayout_2->addWidget( Fram2 );
Fram2 = new QWidgetStack(tab_2);
tabLayout_2->addWidget( Fram2 );
 
Frame4 = new QFrame( tab_2, "Frame4" );
Frame4->setFrameShape( QFrame::NoFrame );
Frame4->setFrameShadow( QFrame::Raised );
Fram2->addWidget( Frame4 , 1);
Frame4 = new QFrame( tab_2, "Frame4" );
Frame4->setFrameShape( QFrame::NoFrame );
Frame4->setFrameShadow( QFrame::Raised );
Fram2->addWidget( Frame4 , 1);
 
Frame3 = new QFrame( tab_2, "Frame3" );
Frame3->setFrameShape( QFrame::Box );
Frame3->setFrameShadow( QFrame::Sunken );
Frame3Layout = new QVBoxLayout( Frame3, 11, 6, "Frame3Layout");
Layout7 = new QHBoxLayout( 0, 0, 6, "Layout7");
AcText1 = new QLabel( Frame3, "AcText1" );
AcText1->setText( tr( "Event:" ) );
Layout7->addWidget( AcText1 );
SelAction = new QComboBox( true, Frame3, "AcCombo" );
QString tmp_selact[]={tr("Mouse Up"), tr("Mouse Down"), tr("Mouse Enter"),
tr("Mouse Exit"), tr("On Focus"), tr("On Blur")};
Frame3 = new QFrame( tab_2, "Frame3" );
Frame3->setFrameShape( QFrame::Box );
Frame3->setFrameShadow( QFrame::Sunken );
Frame3Layout = new QVBoxLayout( Frame3, 11, 6, "Frame3Layout");
Layout7 = new QHBoxLayout( 0, 0, 6, "Layout7");
AcText1 = new QLabel( Frame3, "AcText1" );
AcText1->setText( tr( "Event:" ) );
Layout7->addWidget( AcText1 );
SelAction = new QComboBox( true, Frame3, "AcCombo" );
QString tmp_selact[]={tr("Mouse Up"), tr("Mouse Down"), tr("Mouse Enter"),
tr("Mouse Exit"), tr("On Focus"), tr("On Blur")};
size_t array_sel = sizeof(tmp_selact) / sizeof(*tmp_selact);
/* PFJ - 28/02/04 - Altered from uint to int and var name */
for (uint propogate = 0; propogate < array_sel; ++propogate)
SelAction->insertItem(tmp_selact[propogate]);
SelAction->setEditable(false);
Layout7->addWidget( SelAction );
QSpacerItem* spacerac = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout7->addItem( spacerac );
Frame3Layout->addLayout( Layout7 );
AcText2 = new QLabel( Frame3, "AcText2" );
AcText2->setText( tr( "Script:" ) );
Frame3Layout->addWidget( AcText2 );
Layout71 = new QHBoxLayout( 0, 0, 6, "Layout7");
EditJava = new QTextEdit( Frame3, "EditAction" );
Layout7->addWidget( SelAction );
QSpacerItem* spacerac = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout7->addItem( spacerac );
Frame3Layout->addLayout( Layout7 );
AcText2 = new QLabel( Frame3, "AcText2" );
AcText2->setText( tr( "Script:" ) );
Frame3Layout->addWidget( AcText2 );
Layout71 = new QHBoxLayout( 0, 0, 6, "Layout7");
EditJava = new QTextEdit( Frame3, "EditAction" );
if ((item->AnActType == 1) || (item->AnAAact))
EditJava->setText(item->AnAction);
ScrEdited = 0;
SelAction->setCurrentItem(0);
EditJava->setReadOnly(true);
EditJava->setBackgroundMode(PaletteBackground);
EditJava->setPaper(EditJava->paletteBackgroundColor());
Layout71->addWidget( EditJava );
EditJ = new QPushButton( Frame3, "EditJ" );
EditJ->setText( tr( "Edit..." ) );
Layout71->addWidget( EditJ );
Frame3Layout->addLayout( Layout71 );
Fram2->addWidget( Frame3 , 2);
EditJava->setBackgroundMode(PaletteBackground);
EditJava->setPaper(EditJava->paletteBackgroundColor());
Layout71->addWidget( EditJava );
EditJ = new QPushButton( Frame3, "EditJ" );
EditJ->setText( tr( "Edit..." ) );
Layout71->addWidget( EditJ );
Frame3Layout->addLayout( Layout71 );
Fram2->addWidget( Frame3 , 2);
 
Frame3b = new QFrame( tab_2, "Frame3b" );
Frame3b->setFrameShape( QFrame::Box );
Frame3b->setFrameShadow( QFrame::Sunken );
Frame3bLayout = new QVBoxLayout( Frame3b, 11, 6, "Frame3Layout");
SubText1 = new QLabel( Frame3b, "SubText1" );
SubText1->setText( tr( "Submit to URL:" ) );
Frame3bLayout->addWidget( SubText1 );
SubURL = new QLineEdit( Frame3b, "SubURL" );
Frame3bLayout->addWidget( SubURL );
Frame3b = new QFrame( tab_2, "Frame3b" );
Frame3b->setFrameShape( QFrame::Box );
Frame3b->setFrameShadow( QFrame::Sunken );
Frame3bLayout = new QVBoxLayout( Frame3b, 11, 6, "Frame3Layout");
SubText1 = new QLabel( Frame3b, "SubText1" );
SubText1->setText( tr( "Submit to URL:" ) );
Frame3bLayout->addWidget( SubText1 );
SubURL = new QLineEdit( Frame3b, "SubURL" );
Frame3bLayout->addWidget( SubURL );
if (item->AnActType == 3)
SubURL->setText(item->AnAction);
SubAsHtml = new QCheckBox( Frame3b, "UseCurr" );
SubAsHtml = new QCheckBox( Frame3b, "UseCurr" );
SubAsHtml->setChecked(item->AnHTML);
SubAsHtml->setText( tr( "Submit Data as HTML" ) );
Frame3bLayout->addWidget( SubAsHtml );
QSpacerItem* spacerSu = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
Frame3bLayout->addItem( spacerSu);
Fram2->addWidget( Frame3b , 4);
SubAsHtml->setText( tr( "Submit Data as HTML" ) );
Frame3bLayout->addWidget( SubAsHtml );
QSpacerItem* spacerSu = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
Frame3bLayout->addItem( spacerSu);
Fram2->addWidget( Frame3b , 4);
 
Frame3c = new QFrame( tab_2, "Frame3b" );
Frame3c->setFrameShape( QFrame::Box );
Frame3c->setFrameShadow( QFrame::Sunken );
Frame3cLayout = new QVBoxLayout( Frame3c, 11, 6, "Frame3Layout");
SubText1a = new QLabel( Frame3c, "SubText1" );
SubText1a->setText( tr( "Import Data from:" ) );
Frame3cLayout->addWidget( SubText1a );
SubURLa = new QLineEdit( Frame3c, "SubURL" );
Frame3cLayout->addWidget( SubURLa );
Frame3c = new QFrame( tab_2, "Frame3b" );
Frame3c->setFrameShape( QFrame::Box );
Frame3c->setFrameShadow( QFrame::Sunken );
Frame3cLayout = new QVBoxLayout( Frame3c, 11, 6, "Frame3Layout");
SubText1a = new QLabel( Frame3c, "SubText1" );
SubText1a->setText( tr( "Import Data from:" ) );
Frame3cLayout->addWidget( SubText1a );
SubURLa = new QLineEdit( Frame3c, "SubURL" );
Frame3cLayout->addWidget( SubURLa );
if (item->AnActType == 5)
SubURLa->setText(item->AnAction);
QSpacerItem* spacerSua = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
Frame3cLayout->addItem( spacerSua);
Fram2->addWidget( Frame3c , 5);
QSpacerItem* spacerSua = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
Frame3cLayout->addItem( spacerSua);
Fram2->addWidget( Frame3c , 5);
 
GroupBox11 = new QGroupBox( tab_2, "GroupBox11" );
GroupBox11->setTitle( tr( "Destination" ) );
GroupBox11->setColumnLayout(0, Qt::Vertical );
GroupBox11->layout()->setSpacing( 0 );
GroupBox11->layout()->setMargin( 0 );
GroupBox11Layout = new QGridLayout( GroupBox11->layout() );
GroupBox11Layout->setAlignment( Qt::AlignTop );
GroupBox11Layout->setSpacing( 6 );
GroupBox11Layout->setMargin( 11 );
GroupBox11 = new QGroupBox( tab_2, "GroupBox11" );
GroupBox11->setTitle( tr( "Destination" ) );
GroupBox11->setColumnLayout(0, Qt::Vertical );
GroupBox11->layout()->setSpacing( 0 );
GroupBox11->layout()->setMargin( 0 );
GroupBox11Layout = new QGridLayout( GroupBox11->layout() );
GroupBox11Layout->setAlignment( Qt::AlignTop );
GroupBox11Layout->setSpacing( 6 );
GroupBox11Layout->setMargin( 11 );
LExtern = new QCheckBox(GroupBox11, "Extern");
LExtern->setText( tr("To File:"));
GroupBox11Layout->addWidget( LExtern, 0, 0 );
Destfile = new QLineEdit(GroupBox11, "File");
GroupBox11Layout->addWidget( LExtern, 0, 0 );
Destfile = new QLineEdit(GroupBox11, "File");
Destfile->setText(item->An_Extern);
Destfile->setReadOnly(true);
GroupBox11Layout->addWidget( Destfile, 0, 1 );
GroupBox11Layout->addWidget( Destfile, 0, 1 );
ChFile = new QPushButton(GroupBox11, "Change");
ChFile->setText( tr("Change..."));
GroupBox11Layout->addWidget( ChFile, 0, 2 );
TextLabel31 = new QLabel( GroupBox11, "TextLabel3" );
TextLabel31->setText( tr( "Page:" ) );
GroupBox11Layout->addWidget( TextLabel31, 1, 0 );
SpinBox11 = new QSpinBox( GroupBox11, "SpinBox1" );
SpinBox11->setMinValue(1);
SpinBox11->setMaxValue(item->AnActType == 7 ? 1000 : Seite);
SpinBox11->setValue(item->AnZiel+1);
GroupBox11Layout->addWidget( SpinBox11, 1, 1 );
GroupBox11Layout->addWidget( ChFile, 0, 2 );
TextLabel31 = new QLabel( GroupBox11, "TextLabel3" );
TextLabel31->setText( tr( "Page:" ) );
GroupBox11Layout->addWidget( TextLabel31, 1, 0 );
SpinBox11 = new QSpinBox( GroupBox11, "SpinBox1" );
SpinBox11->setMinValue(1);
SpinBox11->setMaxValue(item->AnActType == 7 ? 1000 : Seite);
SpinBox11->setValue(item->AnZiel+1);
GroupBox11Layout->addWidget( SpinBox11, 1, 1 );
if (item->AnActType == 7)
Pg1 = new Navigator( GroupBox11, 100, item->AnZiel+1, view, item->An_Extern);
Pg1 = new Navigator( GroupBox11, 100, item->AnZiel+1, view, item->An_Extern);
else
Pg1 = new Navigator( GroupBox11, 100, item->AnZiel, view);
Pg1->setMinimumSize(QSize(Pg1->pmx.width(), Pg1->pmx.height()));
GroupBox11Layout->addMultiCellWidget(Pg1, 1, 3, 2, 2);
TextLabel41 = new QLabel( GroupBox11, "TextLabel4" );
TextLabel41->setText( tr( "X-Pos:" ) );
GroupBox11Layout->addWidget( TextLabel41, 2, 0 );
SpinBox21 = new QSpinBox( GroupBox11, "SpinBox2" );
SpinBox21->setSuffix( tr( " pt" ) );
SpinBox21->setMaxValue(Breite);
SpinBox21->setValue(tl[0].toInt());
GroupBox11Layout->addWidget( SpinBox21, 2, 1 );
TextLabel51 = new QLabel( GroupBox11, "TextLabel5" );
TextLabel51->setText( tr( "Y-Pos:" ) );
GroupBox11Layout->addWidget( TextLabel51, 3, 0 );
SpinBox31 = new QSpinBox( GroupBox11, "SpinBox3" );
SpinBox31->setMaxValue(Hoehe);
SpinBox31->setSuffix( tr( " pt" ) );
SpinBox31->setValue(Hoehe-tl[1].toInt());
GroupBox11Layout->addWidget( SpinBox31, 3, 1 );
Fram2->addWidget(GroupBox11, 3);
TabWidget2->insertTab( tab_2, tr( "Action" ) );
Pg1 = new Navigator( GroupBox11, 100, item->AnZiel, view);
Pg1->setMinimumSize(QSize(Pg1->pmx.width(), Pg1->pmx.height()));
GroupBox11Layout->addMultiCellWidget(Pg1, 1, 3, 2, 2);
TextLabel41 = new QLabel( GroupBox11, "TextLabel4" );
TextLabel41->setText( tr( "X-Pos:" ) );
GroupBox11Layout->addWidget( TextLabel41, 2, 0 );
SpinBox21 = new QSpinBox( GroupBox11, "SpinBox2" );
SpinBox21->setSuffix( tr( " pt" ) );
SpinBox21->setMaxValue(Breite);
SpinBox21->setValue(tl[0].toInt());
GroupBox11Layout->addWidget( SpinBox21, 2, 1 );
TextLabel51 = new QLabel( GroupBox11, "TextLabel5" );
TextLabel51->setText( tr( "Y-Pos:" ) );
GroupBox11Layout->addWidget( TextLabel51, 3, 0 );
SpinBox31 = new QSpinBox( GroupBox11, "SpinBox3" );
SpinBox31->setMaxValue(Hoehe);
SpinBox31->setSuffix( tr( " pt" ) );
SpinBox31->setValue(Hoehe-tl[1].toInt());
GroupBox11Layout->addWidget( SpinBox31, 3, 1 );
Fram2->addWidget(GroupBox11, 3);
TabWidget2->insertTab( tab_2, tr( "Action" ) );
if (item->AnActType != 7)
{
Destfile->setEnabled(false);
ChFile->setEnabled(false);
LExtern->setChecked(false);
LExtern->setChecked(false);
}
else
{
648,13 → 649,13
}
}
 
tab4 = new QWidget( TabWidget2, "privateWidget" );
Layout = new QVBoxLayout( tab4, 11, 6, "Layout");
FLayout = new QHBoxLayout( 0, 0, 6, "FLayout");
TextForm1 = new QLabel( tab4, "TextForm1" );
TextForm1->setText( tr( "Field is formatted as:" ) );
FLayout->addWidget( TextForm1 );
TxFormat = new QComboBox( true, tab4, "TxFormat" );
tab4 = new QWidget( TabWidget2, "privateWidget" );
Layout = new QVBoxLayout( tab4, 11, 6, "Layout");
FLayout = new QHBoxLayout( 0, 0, 6, "FLayout");
TextForm1 = new QLabel( tab4, "TextForm1" );
TextForm1->setText( tr( "Field is formatted as:" ) );
FLayout->addWidget( TextForm1 );
TxFormat = new QComboBox( true, tab4, "TxFormat" );
QString tmp_txf[]={ tr("Plain"), tr("Number"), tr("Percentage"), tr("Date"), tr("Time"), tr("Custom")};
size_t array_txf = sizeof(tmp_txf) / sizeof(*tmp_txf);
for (uint a = 0; a < array_txf; ++a)
661,386 → 662,386
TxFormat->insertItem(tmp_txf[a]);
TxFormat->setEditable(false);
TxFormat->setCurrentItem(item->AnFormat);
FLayout->addWidget( TxFormat );
QSpacerItem* spacer_3 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
FLayout->addItem( spacer_3 );
Layout->addLayout( FLayout );
FoFram = new QWidgetStack(tab4);
FLayout->addWidget( TxFormat );
QSpacerItem* spacer_3 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
FLayout->addItem( spacer_3 );
Layout->addLayout( FLayout );
FoFram = new QWidgetStack(tab4);
 
FoFrameNone = new QFrame( tab4, "Frame7" );
FoFrameNone->setFrameShape( QFrame::NoFrame );
FoFrameNone->setFrameShadow( QFrame::Plain );
FoFram->addWidget(FoFrameNone, 0);
FoFrameNone = new QFrame( tab4, "Frame7" );
FoFrameNone->setFrameShape( QFrame::NoFrame );
FoFrameNone->setFrameShadow( QFrame::Plain );
FoFram->addWidget(FoFrameNone, 0);
 
NumbGroup = new QGroupBox( tab4, "NumbGroup" );
NumbGroup->setTitle( tr( "Number Format" ) );
NumbGroup->setColumnLayout(0, Qt::Vertical );
NumbGroup->layout()->setSpacing( 6 );
NumbGroup->layout()->setMargin( 11 );
NumbGroupLayout = new QVBoxLayout( NumbGroup->layout() );
NumbGroupLayout->setAlignment( Qt::AlignTop );
LayoutFN1 = new QHBoxLayout( 0, 0, 6, "LayoutFN1");
TextNu1 = new QLabel( NumbGroup, "TextNu1" );
TextNu1->setText( tr( "Decimals:" ) );
LayoutFN1->addWidget( TextNu1 );
Decim = new QSpinBox( NumbGroup, "Decim" );
NumbGroup = new QGroupBox( tab4, "NumbGroup" );
NumbGroup->setTitle( tr( "Number Format" ) );
NumbGroup->setColumnLayout(0, Qt::Vertical );
NumbGroup->layout()->setSpacing( 6 );
NumbGroup->layout()->setMargin( 11 );
NumbGroupLayout = new QVBoxLayout( NumbGroup->layout() );
NumbGroupLayout->setAlignment( Qt::AlignTop );
LayoutFN1 = new QHBoxLayout( 0, 0, 6, "LayoutFN1");
TextNu1 = new QLabel( NumbGroup, "TextNu1" );
TextNu1->setText( tr( "Decimals:" ) );
LayoutFN1->addWidget( TextNu1 );
Decim = new QSpinBox( NumbGroup, "Decim" );
Decim->setMinValue(0);
Decim->setMaxValue(12);
Decim->setValue(0);
LayoutFN1->addWidget( Decim );
QSpacerItem* spacer_4 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
LayoutFN1->addItem( spacer_4 );
NumbGroupLayout->addLayout( LayoutFN1 );
LayoutFN2 = new QHBoxLayout( 0, 0, 6, "LayoutFN2");
UseCurr = new QCheckBox( NumbGroup, "UseCurr" );
UseCurr->setText( tr( "Use Currency Symbol" ) );
LayoutFN2->addWidget( UseCurr );
CurSym = new QLineEdit( NumbGroup, "CurSym" );
LayoutFN2->addWidget( CurSym );
LayoutFN1->addWidget( Decim );
QSpacerItem* spacer_4 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
LayoutFN1->addItem( spacer_4 );
NumbGroupLayout->addLayout( LayoutFN1 );
LayoutFN2 = new QHBoxLayout( 0, 0, 6, "LayoutFN2");
UseCurr = new QCheckBox( NumbGroup, "UseCurr" );
UseCurr->setText( tr( "Use Currency Symbol" ) );
LayoutFN2->addWidget( UseCurr );
CurSym = new QLineEdit( NumbGroup, "CurSym" );
LayoutFN2->addWidget( CurSym );
CurSym->setEnabled(false);
QSpacerItem* spacer_5 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
LayoutFN2->addItem( spacer_5 );
NumbGroupLayout->addLayout( LayoutFN2 );
PreCurr = new QCheckBox( NumbGroup, "PreCurr" );
PreCurr->setText( tr( "Prepend Currency Symbol" ) );
QSpacerItem* spacer_5 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
LayoutFN2->addItem( spacer_5 );
NumbGroupLayout->addLayout( LayoutFN2 );
PreCurr = new QCheckBox( NumbGroup, "PreCurr" );
PreCurr->setText( tr( "Prepend Currency Symbol" ) );
PreCurr->setEnabled(false);
NumbGroupLayout->addWidget( PreCurr );
NumGroup2 = new QButtonGroup( NumbGroup, "NumGroup2" );
NumGroup2->setTitle( tr( "Formatting" ) );
NumGroup2->setColumnLayout(0, Qt::Vertical );
NumGroup2->layout()->setSpacing( 6 );
NumGroup2->layout()->setMargin( 11 );
NumGroup2Layout = new QGridLayout( NumGroup2->layout() );
NumGroup2Layout->setAlignment( Qt::AlignTop );
Format0 = new QRadioButton( NumGroup2, "Format0" );
Format0->setText("9,999.99");
Format0->setChecked( true );
NumbGroupLayout->addWidget( PreCurr );
NumGroup2 = new QButtonGroup( NumbGroup, "NumGroup2" );
NumGroup2->setTitle( tr( "Formatting" ) );
NumGroup2->setColumnLayout(0, Qt::Vertical );
NumGroup2->layout()->setSpacing( 6 );
NumGroup2->layout()->setMargin( 11 );
NumGroup2Layout = new QGridLayout( NumGroup2->layout() );
NumGroup2Layout->setAlignment( Qt::AlignTop );
Format0 = new QRadioButton( NumGroup2, "Format0" );
Format0->setText("9,999.99");
Format0->setChecked( true );
FormNum = 0;
NumGroup2Layout->addWidget( Format0, 0, 0 );
Format1 = new QRadioButton( NumGroup2, "Format1" );
Format1->setText("9999.99");
NumGroup2Layout->addWidget( Format1, 1, 0 );
Format2 = new QRadioButton( NumGroup2, "Format2" );
Format2->setText("9.999,99");
NumGroup2Layout->addWidget( Format2, 0, 1 );
Format3 = new QRadioButton( NumGroup2, "Format3" );
Format3->setText("9999,99");
NumGroup2Layout->addWidget( Format3, 1, 1 );
NumbGroupLayout->addWidget( NumGroup2 );
NumGroup2Layout->addWidget( Format0, 0, 0 );
Format1 = new QRadioButton( NumGroup2, "Format1" );
Format1->setText("9999.99");
NumGroup2Layout->addWidget( Format1, 1, 0 );
Format2 = new QRadioButton( NumGroup2, "Format2" );
Format2->setText("9.999,99");
NumGroup2Layout->addWidget( Format2, 0, 1 );
Format3 = new QRadioButton( NumGroup2, "Format3" );
Format3->setText("9999,99");
NumGroup2Layout->addWidget( Format3, 1, 1 );
NumbGroupLayout->addWidget( NumGroup2 );
FoFram->addWidget(NumbGroup, 1);
 
PercGroup = new QGroupBox( tab4, "NumbGroup" );
PercGroup->setTitle( tr( "Percent Format" ) );
PercGroup->setColumnLayout(0, Qt::Vertical );
PercGroup->layout()->setSpacing( 6 );
PercGroup->layout()->setMargin( 11 );
PercGroupLayout = new QVBoxLayout( PercGroup->layout() );
PercGroupLayout->setAlignment( Qt::AlignTop );
LayoutFN1a = new QHBoxLayout( 0, 0, 6, "LayoutFN1");
TextNu1a = new QLabel( PercGroup, "TextNu1" );
TextNu1a->setText( tr( "Decimals:" ) );
LayoutFN1a->addWidget( TextNu1a );
Decim2 = new QSpinBox( PercGroup, "Decim2" );
PercGroup = new QGroupBox( tab4, "NumbGroup" );
PercGroup->setTitle( tr( "Percent Format" ) );
PercGroup->setColumnLayout(0, Qt::Vertical );
PercGroup->layout()->setSpacing( 6 );
PercGroup->layout()->setMargin( 11 );
PercGroupLayout = new QVBoxLayout( PercGroup->layout() );
PercGroupLayout->setAlignment( Qt::AlignTop );
LayoutFN1a = new QHBoxLayout( 0, 0, 6, "LayoutFN1");
TextNu1a = new QLabel( PercGroup, "TextNu1" );
TextNu1a->setText( tr( "Decimals:" ) );
LayoutFN1a->addWidget( TextNu1a );
Decim2 = new QSpinBox( PercGroup, "Decim2" );
Decim2->setMinValue(0);
Decim2->setMaxValue(12);
Decim2->setValue(0);
LayoutFN1a->addWidget( Decim2 );
QSpacerItem* spacer_4a = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
LayoutFN1a->addItem( spacer_4a );
PercGroupLayout->addLayout( LayoutFN1a );
NumGroup2a = new QButtonGroup( PercGroup, "NumGroup2" );
NumGroup2a->setTitle( tr( "Formatting" ) );
NumGroup2a->setColumnLayout(0, Qt::Vertical );
NumGroup2a->layout()->setSpacing( 6 );
NumGroup2a->layout()->setMargin( 11 );
NumGroup2aLayout = new QGridLayout( NumGroup2a->layout() );
NumGroup2aLayout->setAlignment( Qt::AlignTop );
Format0a = new QRadioButton( NumGroup2a, "Format0" );
Format0a->setText("9,999.99");
Format0a->setChecked( true );
LayoutFN1a->addWidget( Decim2 );
QSpacerItem* spacer_4a = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
LayoutFN1a->addItem( spacer_4a );
PercGroupLayout->addLayout( LayoutFN1a );
NumGroup2a = new QButtonGroup( PercGroup, "NumGroup2" );
NumGroup2a->setTitle( tr( "Formatting" ) );
NumGroup2a->setColumnLayout(0, Qt::Vertical );
NumGroup2a->layout()->setSpacing( 6 );
NumGroup2a->layout()->setMargin( 11 );
NumGroup2aLayout = new QGridLayout( NumGroup2a->layout() );
NumGroup2aLayout->setAlignment( Qt::AlignTop );
Format0a = new QRadioButton( NumGroup2a, "Format0" );
Format0a->setText("9,999.99");
Format0a->setChecked( true );
FormNum = 0;
NumGroup2aLayout->addWidget( Format0a, 0, 0 );
Format1a = new QRadioButton( NumGroup2a, "Format1" );
Format1a->setText("9999.99");
NumGroup2aLayout->addWidget( Format1a, 1, 0 );
Format2a = new QRadioButton( NumGroup2a, "Format2" );
Format2a->setText("9.999,99");
NumGroup2aLayout->addWidget( Format2a, 0, 1 );
Format3a = new QRadioButton( NumGroup2a, "Format3" );
Format3a->setText("9999,99");
NumGroup2aLayout->addWidget( Format3a, 1, 1 );
PercGroupLayout->addWidget( NumGroup2a );
NumGroup2aLayout->addWidget( Format0a, 0, 0 );
Format1a = new QRadioButton( NumGroup2a, "Format1" );
Format1a->setText("9999.99");
NumGroup2aLayout->addWidget( Format1a, 1, 0 );
Format2a = new QRadioButton( NumGroup2a, "Format2" );
Format2a->setText("9.999,99");
NumGroup2aLayout->addWidget( Format2a, 0, 1 );
Format3a = new QRadioButton( NumGroup2a, "Format3" );
Format3a->setText("9999,99");
NumGroup2aLayout->addWidget( Format3a, 1, 1 );
PercGroupLayout->addWidget( NumGroup2a );
FoFram->addWidget(PercGroup, 2);
 
DateGroup = new QGroupBox( tab4, "NumbGroup" );
DateGroup->setTitle( tr( "Date Format" ) );
DateGroup->setColumnLayout(0, Qt::Vertical );
DateGroup->layout()->setSpacing( 6 );
DateGroup->layout()->setMargin( 11 );
DateGroupLayout = new QVBoxLayout( DateGroup->layout() );
DateGroupLayout->setAlignment( Qt::AlignTop );
LayoutFN1c = new QHBoxLayout( 0, 0, 6, "LayoutFN1");
DateGroup = new QGroupBox( tab4, "NumbGroup" );
DateGroup->setTitle( tr( "Date Format" ) );
DateGroup->setColumnLayout(0, Qt::Vertical );
DateGroup->layout()->setSpacing( 6 );
DateGroup->layout()->setMargin( 11 );
DateGroupLayout = new QVBoxLayout( DateGroup->layout() );
DateGroupLayout->setAlignment( Qt::AlignTop );
LayoutFN1c = new QHBoxLayout( 0, 0, 6, "LayoutFN1");
Format0c = new QComboBox( true, DateGroup, "DateTyp" );
char *tmp_form[] = {"m/d", "m/d/yy", "mm/dd/yy", "mm/yy", "d-mmm", "d-mmm-yy", "dd-mmm-yy", "yy-mm-dd",
"mmm-yy", "mmmm-yy", "mmm d, yyyy", "mmmm d, yyyy", "m/d/yy h:MM tt", "m/d/yy HH:MM"};
"mmm-yy", "mmmm-yy", "mmm d, yyyy", "mmmm d, yyyy", "m/d/yy h:MM tt", "m/d/yy HH:MM"};
size_t array_form = sizeof(tmp_form) / sizeof(*tmp_form);
/* PFJ - 28/02/04 - Altered from uint to int and var name */
for (uint prop = 0; prop < array_form; ++prop)
Format0c->insertItem(tmp_form[prop]);
Format0c->setEditable(false);
LayoutFN1c->addWidget( Format0c );
QSpacerItem* spacer_4c = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
LayoutFN1c->addItem( spacer_4c );
DateGroupLayout->addLayout( LayoutFN1c );
TextDa1 = new QLabel( DateGroup, "TextNu1" );
TextDa1->setText( tr( "" ) );
DateGroupLayout->addWidget( TextDa1 );
Format0c->setEditable(false);
LayoutFN1c->addWidget( Format0c );
QSpacerItem* spacer_4c = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
LayoutFN1c->addItem( spacer_4c );
DateGroupLayout->addLayout( LayoutFN1c );
TextDa1 = new QLabel( DateGroup, "TextNu1" );
TextDa1->setText( tr( "" ) );
DateGroupLayout->addWidget( TextDa1 );
FoFram->addWidget(DateGroup, 3);
 
TimeGroup = new QButtonGroup( tab4, "NumbGroup" );
TimeGroup->setTitle( tr( "Time Format" ) );
TimeGroup->setColumnLayout(0, Qt::Vertical );
TimeGroup->layout()->setSpacing( 6 );
TimeGroup->layout()->setMargin( 11 );
TimeGroupLayout = new QVBoxLayout( TimeGroup->layout() );
TimeGroupLayout->setAlignment( Qt::AlignTop );
Format0b = new QRadioButton( TimeGroup, "Format0" );
Format0b->setText("HH:MM");
Format0b->setChecked( true );
TimeGroup = new QButtonGroup( tab4, "NumbGroup" );
TimeGroup->setTitle( tr( "Time Format" ) );
TimeGroup->setColumnLayout(0, Qt::Vertical );
TimeGroup->layout()->setSpacing( 6 );
TimeGroup->layout()->setMargin( 11 );
TimeGroupLayout = new QVBoxLayout( TimeGroup->layout() );
TimeGroupLayout->setAlignment( Qt::AlignTop );
Format0b = new QRadioButton( TimeGroup, "Format0" );
Format0b->setText("HH:MM");
Format0b->setChecked( true );
FormNum = 0;
TimeGroupLayout->addWidget( Format0b);
Format1b = new QRadioButton( TimeGroup, "Format1" );
Format1b->setText("h:MM tt");
TimeGroupLayout->addWidget( Format1b);
Format2b = new QRadioButton( TimeGroup, "Format2" );
Format2b->setText("HH:MM:ss");
TimeGroupLayout->addWidget( Format2b);
Format3b = new QRadioButton( TimeGroup, "Format3" );
Format3b->setText("h:MM:ss tt");
TimeGroupLayout->addWidget( Format3b);
TimeGroupLayout->addWidget( Format0b);
Format1b = new QRadioButton( TimeGroup, "Format1" );
Format1b->setText("h:MM tt");
TimeGroupLayout->addWidget( Format1b);
Format2b = new QRadioButton( TimeGroup, "Format2" );
Format2b->setText("HH:MM:ss");
TimeGroupLayout->addWidget( Format2b);
Format3b = new QRadioButton( TimeGroup, "Format3" );
Format3b->setText("h:MM:ss tt");
TimeGroupLayout->addWidget( Format3b);
FoFram->addWidget(TimeGroup, 4);
 
GroupCust = new QGroupBox( tab4, "GroupCust" );
GroupCust->setTitle( tr( "Custom Scripts" ) );
GroupCust->setColumnLayout(0, Qt::Vertical );
GroupCust->layout()->setSpacing( 6 );
GroupCust->layout()->setMargin( 11 );
GroupCustLayout = new QVBoxLayout( GroupCust->layout() );
GroupCustLayout->setAlignment( Qt::AlignTop );
FLayout3 = new QVBoxLayout( 0, 0, 6, "FLayout3");
FLayout2 = new QHBoxLayout( 0, 0, 6, "FLayout2");
TextForm2 = new QLabel( GroupCust, "TextForm2" );
TextForm2->setText( tr( "Format:" ) );
FLayout2->addWidget( TextForm2 );
EditFormat = new QPushButton( GroupCust, "EditFormat" );
EditFormat->setText( tr( "Edit..." ) );
EditFormat->setAutoDefault( false );
GroupCust = new QGroupBox( tab4, "GroupCust" );
GroupCust->setTitle( tr( "Custom Scripts" ) );
GroupCust->setColumnLayout(0, Qt::Vertical );
GroupCust->layout()->setSpacing( 6 );
GroupCust->layout()->setMargin( 11 );
GroupCustLayout = new QVBoxLayout( GroupCust->layout() );
GroupCustLayout->setAlignment( Qt::AlignTop );
FLayout3 = new QVBoxLayout( 0, 0, 6, "FLayout3");
FLayout2 = new QHBoxLayout( 0, 0, 6, "FLayout2");
TextForm2 = new QLabel( GroupCust, "TextForm2" );
TextForm2->setText( tr( "Format:" ) );
FLayout2->addWidget( TextForm2 );
EditFormat = new QPushButton( GroupCust, "EditFormat" );
EditFormat->setText( tr( "Edit..." ) );
EditFormat->setAutoDefault( false );
if (item->AnFormat != 5)
EditFormat->setEnabled( false );
FLayout2->addWidget( EditFormat );
FLayout3->addLayout( FLayout2 );
FormatScript = new QTextEdit( GroupCust, "FormatScript" );
EditFormat->setEnabled( false );
FLayout2->addWidget( EditFormat );
FLayout3->addLayout( FLayout2 );
FormatScript = new QTextEdit( GroupCust, "FormatScript" );
if (item->AnFormat == 5)
FormatScript->setText( item->An_F_act );
FormatScript->setText( item->An_F_act );
FormatScript->setReadOnly(true);
FormatScript->setBackgroundMode(PaletteBackground);
FormatScript->setPaper(FormatScript->paletteBackgroundColor());
FormatScript->setBackgroundMode(PaletteBackground);
FormatScript->setPaper(FormatScript->paletteBackgroundColor());
FormatScript->setMaximumSize(QSize(32000,50));
FLayout3->addWidget( FormatScript );
GroupCustLayout->addLayout( FLayout3 );
FLayout5 = new QVBoxLayout( 0, 0, 6, "FLayout5");
FLayout4 = new QHBoxLayout( 0, 0, 6, "FLayout4");
TextForm3 = new QLabel( GroupCust, "TextForm3" );
TextForm3->setText( tr( "Keystroke:" ) );
FLayout4->addWidget( TextForm3 );
EditKeystr = new QPushButton( GroupCust, "EditKeystr" );
EditKeystr->setText( tr( "Edit..." ) );
EditKeystr->setAutoDefault( false );
FLayout3->addWidget( FormatScript );
GroupCustLayout->addLayout( FLayout3 );
FLayout5 = new QVBoxLayout( 0, 0, 6, "FLayout5");
FLayout4 = new QHBoxLayout( 0, 0, 6, "FLayout4");
TextForm3 = new QLabel( GroupCust, "TextForm3" );
TextForm3->setText( tr( "Keystroke:" ) );
FLayout4->addWidget( TextForm3 );
EditKeystr = new QPushButton( GroupCust, "EditKeystr" );
EditKeystr->setText( tr( "Edit..." ) );
EditKeystr->setAutoDefault( false );
if (item->AnFormat != 5)
EditKeystr->setEnabled( false );
FLayout4->addWidget( EditKeystr );
FLayout5->addLayout( FLayout4 );
KeyScript = new QTextEdit( GroupCust, "KeyScript" );
EditKeystr->setEnabled( false );
FLayout4->addWidget( EditKeystr );
FLayout5->addLayout( FLayout4 );
KeyScript = new QTextEdit( GroupCust, "KeyScript" );
if (item->AnFormat == 5)
KeyScript->setText( item->An_K_act );
KeyScript->setText( item->An_K_act );
KeyScript->setReadOnly(true);
KeyScript->setBackgroundMode(PaletteBackground);
KeyScript->setPaper(KeyScript->paletteBackgroundColor());
KeyScript->setBackgroundMode(PaletteBackground);
KeyScript->setPaper(KeyScript->paletteBackgroundColor());
KeyScript->setMaximumSize(QSize(32000,50));
FLayout5->addWidget( KeyScript );
GroupCustLayout->addLayout( FLayout5 );
FLayout5->addWidget( KeyScript );
GroupCustLayout->addLayout( FLayout5 );
FoFram->addWidget(GroupCust, 5);
 
DecodeNum();
 
Layout->addWidget( FoFram );
TabWidget2->insertTab( tab4, tr( "Format" ) );
Layout->addWidget( FoFram );
TabWidget2->insertTab( tab4, tr( "Format" ) );
TabWidget2->setTabEnabled(tab4, false);
 
tab_4 = new QWidget( TabWidget2, "tab_4" );
tabLayout_4 = new QVBoxLayout( tab_4, 11, 6, "tabLayout_4");
tab_4 = new QWidget( TabWidget2, "tab_4" );
tabLayout_4 = new QVBoxLayout( tab_4, 11, 6, "tabLayout_4");
 
ValidateGroup = new QButtonGroup( tab_4, "ValidateGroup" );
ValidateGroup->setTitle( tr( "" ) );
ValidateGroup->setColumnLayout(0, Qt::Vertical );
ValidateGroup->layout()->setSpacing( 6 );
ValidateGroup->layout()->setMargin( 11 );
ValidateGroupLayout = new QVBoxLayout( ValidateGroup->layout() );
ValidateGroupLayout->setAlignment( Qt::AlignTop );
ValidateGroup = new QButtonGroup( tab_4, "ValidateGroup" );
ValidateGroup->setTitle( tr( "" ) );
ValidateGroup->setColumnLayout(0, Qt::Vertical );
ValidateGroup->layout()->setSpacing( 6 );
ValidateGroup->layout()->setMargin( 11 );
ValidateGroupLayout = new QVBoxLayout( ValidateGroup->layout() );
ValidateGroupLayout->setAlignment( Qt::AlignTop );
 
NoValid = new QRadioButton( ValidateGroup, "NoValid" );
NoValid->setText( tr( "Value is not validated" ) );
NoValid->setChecked( true );
ValidateGroupLayout->addWidget( NoValid );
NoValid = new QRadioButton( ValidateGroup, "NoValid" );
NoValid->setText( tr( "Value is not validated" ) );
NoValid->setChecked( true );
ValidateGroupLayout->addWidget( NoValid );
 
VLayout1 = new QGridLayout( 0, 1, 1, 0, 6, "VLayout1");
VLayout1 = new QGridLayout( 0, 1, 1, 0, 6, "VLayout1");
 
SimpleValid = new QRadioButton( ValidateGroup, "SimpleValid" );
SimpleValid->setText( tr( "Value must be greater than or equal to:" ) );
SimpleValid = new QRadioButton( ValidateGroup, "SimpleValid" );
SimpleValid->setText( tr( "Value must be greater than or equal to:" ) );
 
VLayout1->addWidget( SimpleValid, 0, 0 );
TextVa = new QLabel( ValidateGroup, "TextForm3" );
TextVa->setText( tr( "and less or equal to:" ) );
VLayout1->addWidget( TextVa, 1, 0, Qt::AlignRight );
VLayout1->addWidget( SimpleValid, 0, 0 );
TextVa = new QLabel( ValidateGroup, "TextForm3" );
TextVa->setText( tr( "and less or equal to:" ) );
VLayout1->addWidget( TextVa, 1, 0, Qt::AlignRight );
 
MinValid = new QLineEdit( ValidateGroup, "MinValid" );
MinValid = new QLineEdit( ValidateGroup, "MinValid" );
 
VLayout1->addWidget( MinValid, 0, 1 );
VLayout1->addWidget( MinValid, 0, 1 );
 
MaxValid = new QLineEdit( ValidateGroup, "MaxValid" );
MaxValid = new QLineEdit( ValidateGroup, "MaxValid" );
 
VLayout1->addWidget( MaxValid, 1, 1 );
ValidateGroupLayout->addLayout( VLayout1 );
VLayout1->addWidget( MaxValid, 1, 1 );
ValidateGroupLayout->addLayout( VLayout1 );
 
CustomValid = new QRadioButton( ValidateGroup, "CustomValid" );
CustomValid->setText( tr( "Custom validate script:" ) );
ValidateGroupLayout->addWidget( CustomValid );
CustomValid = new QRadioButton( ValidateGroup, "CustomValid" );
CustomValid->setText( tr( "Custom validate script:" ) );
ValidateGroupLayout->addWidget( CustomValid );
 
VLayout2 = new QHBoxLayout( 0, 0, 6, "VLayout2");
VLayout2 = new QHBoxLayout( 0, 0, 6, "VLayout2");
 
ValidScript = new QTextEdit( ValidateGroup, "ValidScript" );
ValidScript->setMinimumSize( QSize( 0, 50 ) );
ValidScript->setReadOnly( true );
ValidScript->setBackgroundMode(PaletteBackground);
ValidScript->setPaper(ValidScript->paletteBackgroundColor());
VLayout2->addWidget( ValidScript );
ValidScript = new QTextEdit( ValidateGroup, "ValidScript" );
ValidScript->setMinimumSize( QSize( 0, 50 ) );
ValidScript->setReadOnly( true );
ValidScript->setBackgroundMode(PaletteBackground);
ValidScript->setPaper(ValidScript->paletteBackgroundColor());
VLayout2->addWidget( ValidScript );
 
EditValScript = new QPushButton( ValidateGroup, "EditValScript" );
EditValScript->setText( tr( "Edit..." ) );
EditValScript->setAutoDefault( false );
VLayout2->addWidget( EditValScript );
ValidateGroupLayout->addLayout( VLayout2 );
tabLayout_4->addWidget( ValidateGroup );
TabWidget2->insertTab( tab_4, tr( "Validate" ) );
EditValScript = new QPushButton( ValidateGroup, "EditValScript" );
EditValScript->setText( tr( "Edit..." ) );
EditValScript->setAutoDefault( false );
VLayout2->addWidget( EditValScript );
ValidateGroupLayout->addLayout( VLayout2 );
tabLayout_4->addWidget( ValidateGroup );
TabWidget2->insertTab( tab_4, tr( "Validate" ) );
TabWidget2->setTabEnabled(tab_4, false);
SetVali();
tab_5 = new QWidget( TabWidget2, "tab_5" );
tabLayout_5 = new QVBoxLayout( tab_5, 11, 6, "tabLayout_5");
SetVali();
tab_5 = new QWidget( TabWidget2, "tab_5" );
tabLayout_5 = new QVBoxLayout( tab_5, 11, 6, "tabLayout_5");
 
CalcGroup = new QButtonGroup( tab_5, "CalcGroup" );
CalcGroup->setTitle( tr( "" ) );
CalcGroup->setColumnLayout(0, Qt::Vertical );
CalcGroup->layout()->setSpacing( 6 );
CalcGroup->layout()->setMargin( 11 );
CalcGroupLayout = new QVBoxLayout( CalcGroup->layout() );
CalcGroupLayout->setAlignment( Qt::AlignTop );
CalcGroup = new QButtonGroup( tab_5, "CalcGroup" );
CalcGroup->setTitle( tr( "" ) );
CalcGroup->setColumnLayout(0, Qt::Vertical );
CalcGroup->layout()->setSpacing( 6 );
CalcGroup->layout()->setMargin( 11 );
CalcGroupLayout = new QVBoxLayout( CalcGroup->layout() );
CalcGroupLayout->setAlignment( Qt::AlignTop );
 
NoCalc = new QRadioButton( CalcGroup, "NoCalc" );
NoCalc->setText( tr( "Value is not calculated" ) );
NoCalc->setChecked( true );
CalcGroupLayout->addWidget( NoCalc );
NoCalc = new QRadioButton( CalcGroup, "NoCalc" );
NoCalc->setText( tr( "Value is not calculated" ) );
NoCalc->setChecked( true );
CalcGroupLayout->addWidget( NoCalc );
 
CLayout1 = new QHBoxLayout( 0, 0, 6, "CLayout1");
CLayout1 = new QHBoxLayout( 0, 0, 6, "CLayout1");
 
SimpleCalc = new QRadioButton( CalcGroup, "SimpleCalc" );
SimpleCalc->setText( tr( "Value is the" ) );
CLayout1->addWidget( SimpleCalc );
SimpleCalc = new QRadioButton( CalcGroup, "SimpleCalc" );
SimpleCalc->setText( tr( "Value is the" ) );
CLayout1->addWidget( SimpleCalc );
 
CalcArt = new QComboBox( false, CalcGroup, "CalcArt" );
CalcArt = new QComboBox( false, CalcGroup, "CalcArt" );
/* PFJ - 28/02/04 - Altered to QString/size_t/for style */
QString calc[] = {tr("sum"), tr("product"), tr("average"), tr("minimum"),
tr("maximum")};
tr("maximum")};
size_t calcArray = sizeof(calc) / sizeof(*calc);
for (uint prop = 0; prop < calcArray; ++prop)
CalcArt->insertItem(calc[prop]);
CLayout1->addWidget( CalcArt );
CLayout1->addWidget( CalcArt );
 
TextLabel1_2 = new QLabel( CalcGroup, "TextLabel1_2" );
TextLabel1_2->setText( tr( "of the following fields:" ) );
CLayout1->addWidget( TextLabel1_2 );
CalcGroupLayout->addLayout( CLayout1 );
TextLabel1_2 = new QLabel( CalcGroup, "TextLabel1_2" );
TextLabel1_2->setText( tr( "of the following fields:" ) );
CLayout1->addWidget( TextLabel1_2 );
CalcGroupLayout->addLayout( CLayout1 );
 
CLayout3 = new QHBoxLayout( 0, 0, 6, "CLayout1");
CalcFields = new QLineEdit( CalcGroup, "CalcFields" );
CLayout3->addWidget( CalcFields );
SeField = new QPushButton( CalcGroup, "EditCalc" );
SeField->setText( tr( "Pick..." ) );
CLayout3->addWidget( SeField );
CalcGroupLayout->addLayout( CLayout3 );
CLayout3 = new QHBoxLayout( 0, 0, 6, "CLayout1");
CalcFields = new QLineEdit( CalcGroup, "CalcFields" );
CLayout3->addWidget( CalcFields );
SeField = new QPushButton( CalcGroup, "EditCalc" );
SeField->setText( tr( "Pick..." ) );
CLayout3->addWidget( SeField );
CalcGroupLayout->addLayout( CLayout3 );
 
CustomCalc = new QRadioButton( CalcGroup, "CustomCalc" );
CustomCalc->setText( tr( "Custom calculation script:" ) );
CalcGroupLayout->addWidget( CustomCalc );
CustomCalc = new QRadioButton( CalcGroup, "CustomCalc" );
CustomCalc->setText( tr( "Custom calculation script:" ) );
CalcGroupLayout->addWidget( CustomCalc );
 
CLayout2 = new QHBoxLayout( 0, 0, 6, "CLayout2");
CLayout2 = new QHBoxLayout( 0, 0, 6, "CLayout2");
 
CalcScript = new QTextEdit( CalcGroup, "CalcScript" );
CalcScript->setMinimumSize( QSize( 0, 50 ) );
CalcScript->setReadOnly( true );
CLayout2->addWidget( CalcScript );
CalcScript->setBackgroundMode(PaletteBackground);
CalcScript->setPaper(CalcScript->paletteBackgroundColor());
CalcScript = new QTextEdit( CalcGroup, "CalcScript" );
CalcScript->setMinimumSize( QSize( 0, 50 ) );
CalcScript->setReadOnly( true );
CLayout2->addWidget( CalcScript );
CalcScript->setBackgroundMode(PaletteBackground);
CalcScript->setPaper(CalcScript->paletteBackgroundColor());
 
EditCalc = new QPushButton( CalcGroup, "EditCalc" );
EditCalc->setText( tr( "Edit..." ) );
CLayout2->addWidget( EditCalc );
CalcGroupLayout->addLayout( CLayout2 );
tabLayout_5->addWidget( CalcGroup );
TabWidget2->insertTab( tab_5, tr( "Calculate" ) );
EditCalc = new QPushButton( CalcGroup, "EditCalc" );
EditCalc->setText( tr( "Edit..." ) );
CLayout2->addWidget( EditCalc );
CalcGroupLayout->addLayout( CLayout2 );
tabLayout_5->addWidget( CalcGroup );
TabWidget2->insertTab( tab_5, tr( "Calculate" ) );
TabWidget2->setTabEnabled(tab_5, false);
SetCalc();
GroupBox10Layout->addWidget( TabWidget2 );
Fram->addWidget(GroupBox10, 3);
SetCalc();
GroupBox10Layout->addWidget( TabWidget2 );
Fram->addWidget(GroupBox10, 3);
 
Frame9 = new QFrame( this, "Frame7" );
Frame9->setFrameShape( QFrame::NoFrame );
Frame9->setFrameShadow( QFrame::Plain );
Fram->addWidget(Frame9, 2);
Frame9 = new QFrame( this, "Frame7" );
Frame9->setFrameShape( QFrame::NoFrame );
Frame9->setFrameShadow( QFrame::Plain );
Fram->addWidget(Frame9, 2);
 
SetZiel(item->AnType-2);
Layout1_2 = new QHBoxLayout;
Layout1_2->setSpacing( 6 );
Layout1_2->setMargin( 0 );
SetZiel(item->AnType-2);
Layout1_2 = new QHBoxLayout;
Layout1_2->setSpacing( 6 );
Layout1_2->setMargin( 0 );
 
QSpacerItem* spacerr = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1_2->addItem( spacerr );
PushButton1 = new QPushButton( this, "PushButton1" );
PushButton1->setText( tr( "OK" ) );
PushButton1->setDefault( true );
Layout1_2->addWidget( PushButton1 );
PushButton2 = new QPushButton( this, "PushButton2" );
PushButton2->setText( tr( "Cancel" ) );
Layout1_2->addWidget( PushButton2 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1_2->addItem( spacer );
AnnotLayout->addLayout( Layout1_2 );
connect(PushButton1, SIGNAL(clicked()), this, SLOT(SetVals()));
connect(PushButton2, SIGNAL(clicked()), this, SLOT(reject()));
connect(EditFormat, SIGNAL(clicked()), this, SLOT(editFormatSc()));
connect(EditKeystr, SIGNAL(clicked()), this, SLOT(editKeySc()));
connect(EditValScript, SIGNAL(clicked()), this, SLOT(editValidSc()));
connect(EditCalc, SIGNAL(clicked()), this, SLOT(editCalcSc()));
connect(EditJ, SIGNAL(clicked()), this, SLOT(editJavaSc()));
connect(SeField, SIGNAL(clicked()), this, SLOT(SelectFelder()));
connect(Format0c, SIGNAL(activated(const QString&)), this, SLOT(setDateSample(const QString&)));
connect(TxFormat, SIGNAL(activated(int)), this, SLOT(SetFoScript(int)));
connect(ComboBox1, SIGNAL(activated(int)), this, SLOT(SetZiel(int)));
connect(ActionCombo, SIGNAL(activated(int)), this, SLOT(SetActTyp(int)));
connect(SelAction, SIGNAL(activated(int)), this, SLOT(SetActScript(int)));
connect(Pg1, SIGNAL(Coords(double, double)), this, SLOT(SetCo(double, double)));
connect(SpinBox11, SIGNAL(valueChanged(int)), this, SLOT(SetPg(int)));
connect(SpinBox21, SIGNAL(valueChanged(int)), this, SLOT(SetCross()));
connect(SpinBox31, SIGNAL(valueChanged(int)), this, SLOT(SetCross()));
QSpacerItem* spacerr = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1_2->addItem( spacerr );
PushButton1 = new QPushButton( this, "PushButton1" );
PushButton1->setText( tr( "OK" ) );
PushButton1->setDefault( true );
Layout1_2->addWidget( PushButton1 );
PushButton2 = new QPushButton( this, "PushButton2" );
PushButton2->setText( tr( "Cancel" ) );
Layout1_2->addWidget( PushButton2 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1_2->addItem( spacer );
AnnotLayout->addLayout( Layout1_2 );
connect(PushButton1, SIGNAL(clicked()), this, SLOT(SetVals()));
connect(PushButton2, SIGNAL(clicked()), this, SLOT(reject()));
connect(EditFormat, SIGNAL(clicked()), this, SLOT(editFormatSc()));
connect(EditKeystr, SIGNAL(clicked()), this, SLOT(editKeySc()));
connect(EditValScript, SIGNAL(clicked()), this, SLOT(editValidSc()));
connect(EditCalc, SIGNAL(clicked()), this, SLOT(editCalcSc()));
connect(EditJ, SIGNAL(clicked()), this, SLOT(editJavaSc()));
connect(SeField, SIGNAL(clicked()), this, SLOT(SelectFelder()));
connect(Format0c, SIGNAL(activated(const QString&)), this, SLOT(setDateSample(const QString&)));
connect(TxFormat, SIGNAL(activated(int)), this, SLOT(SetFoScript(int)));
connect(ComboBox1, SIGNAL(activated(int)), this, SLOT(SetZiel(int)));
connect(ActionCombo, SIGNAL(activated(int)), this, SLOT(SetActTyp(int)));
connect(SelAction, SIGNAL(activated(int)), this, SLOT(SetActScript(int)));
connect(Pg1, SIGNAL(Coords(double, double)), this, SLOT(SetCo(double, double)));
connect(SpinBox11, SIGNAL(valueChanged(int)), this, SLOT(SetPg(int)));
connect(SpinBox21, SIGNAL(valueChanged(int)), this, SLOT(SetCross()));
connect(SpinBox31, SIGNAL(valueChanged(int)), this, SLOT(SetCross()));
connect(Limit, SIGNAL(clicked()), this, SLOT(SetLimit()));
connect(UseCurr, SIGNAL(clicked()), this, SLOT(SetCurr()));
connect(Format0, SIGNAL(clicked()), this, SLOT(SetFormNum()));
1061,27 → 1062,26
connect(NoCalc, SIGNAL(clicked()), this, SLOT(HandleCalc()));
connect(SimpleCalc, SIGNAL(clicked()), this, SLOT(HandleCalc()));
connect(CustomCalc, SIGNAL(clicked()), this, SLOT(HandleCalc()));
connect(IconN, SIGNAL(clicked()), this, SLOT(GetNIcon()));
connect(IconNR, SIGNAL(clicked()), this, SLOT(RemoveNIcon()));
connect(IconP, SIGNAL(clicked()), this, SLOT(GetPIcon()));
connect(IconPR, SIGNAL(clicked()), this, SLOT(RemovePIcon()));
connect(IconR, SIGNAL(clicked()), this, SLOT(GetRIcon()));
connect(IconRR, SIGNAL(clicked()), this, SLOT(RemoveRIcon()));
connect(UseIcons, SIGNAL(clicked()), this, SLOT(IconsEin()));
connect(PlaceIcon, SIGNAL(clicked()), this, SLOT(IPlace()));
connect(IconN, SIGNAL(clicked()), this, SLOT(GetNIcon()));
connect(IconNR, SIGNAL(clicked()), this, SLOT(RemoveNIcon()));
connect(IconP, SIGNAL(clicked()), this, SLOT(GetPIcon()));
connect(IconPR, SIGNAL(clicked()), this, SLOT(RemovePIcon()));
connect(IconR, SIGNAL(clicked()), this, SLOT(GetRIcon()));
connect(IconRR, SIGNAL(clicked()), this, SLOT(RemoveRIcon()));
connect(UseIcons, SIGNAL(clicked()), this, SLOT(IconsEin()));
connect(PlaceIcon, SIGNAL(clicked()), this, SLOT(IPlace()));
connect(ChFile, SIGNAL(clicked()), this, SLOT(GetFile()));
connect(LExtern, SIGNAL(clicked()), this, SLOT(SetExternL()));
QToolTip::add(NoSpell, tr( "Flag is ignored for PDF-1.3" ) );
QToolTip::add(NoScroll, tr( "Flag is ignored for PDF-1.3" ) );
QToolTip::add(CalcFields, tr( "Enter a comma separated list of fields here" ) );
QToolTip::add(NoSpell, tr( "Flag is ignored for PDF-1.3" ) );
QToolTip::add(NoScroll, tr( "Flag is ignored for PDF-1.3" ) );
QToolTip::add(CalcFields, tr( "Enter a comma separated list of fields here" ) );
QToolTip::add(IconNR, tr("You need at least the Icon for Normal to use Icons for Buttons"));
SetPg(QMIN(SpinBox11->value(), MaxSeite));
SetCross();
SetCross();
}
 
Annot::~Annot()
{
}
{}
 
void Annot::IPlace()
{
1092,11 → 1092,10
int h = item->pixm.height();
double sw = item->Width / w;
double sh = item->Height / h;
double sc = QMIN(sw,sh);
item->LocalScX = dia->IcScaleH == 0 ? sc : sw;
item->LocalScY = dia->IcScaleH == 0 ? sc : sh;
item->LocalX = dia->IcScaleH == 0 ? item->Width * dia->IcPlaceX : 0;
item->LocalY = dia->IcScaleH == 0 ? item->Height * dia->IcPlaceY : 0;
item->LocalScX = dia->IcScaleH == 3 ? 1 : sw;
item->LocalScY = dia->IcScaleH == 3 ? 1 : sh;
item->LocalX = dia->IcScaleH == 3 ? (item->Width - w) * dia->IcPlaceX : 0;
item->LocalY = dia->IcScaleH == 3 ? (item->Height - h) * dia->IcPlaceY : 0;
item->AnIPlace = dia->Place->currentItem();
item->AnScaleW = dia->ScaleW->currentItem();
}
1145,14 → 1144,14
void Annot::GetNIcon()
{
QString fileName;
CustomFDialog dia(this, tr("Open"),
tr("Images (*.tif *.png *.jpg *.xpm);;Postscript (*.eps);;All Files (*)"), "", true);
CustomFDialog dia(this, tr("Open"),
tr("Images (*.tif *.png *.jpg *.xpm);;Postscript (*.eps);;All Files (*)"), "", true);
if (dia.exec() == QDialog::Accepted)
fileName = dia.selectedFile();
else
return;
if (!fileName.isEmpty())
{
if (!fileName.isEmpty())
{
QPixmap pmI1;
QImage im;
im = LoadPict(fileName);
1177,14 → 1176,14
void Annot::GetPIcon()
{
QString fileName;
CustomFDialog dia(this, tr("Open"),
tr("Images (*.tif *.png *.jpg *.xpm);;Postscript (*.eps);;All Files (*)"), "", true);
CustomFDialog dia(this, tr("Open"),
tr("Images (*.tif *.png *.jpg *.xpm);;Postscript (*.eps);;All Files (*)"), "", true);
if (dia.exec() == QDialog::Accepted)
fileName = dia.selectedFile();
else
return;
if (!fileName.isEmpty())
{
if (!fileName.isEmpty())
{
QPixmap pmI1;
QImage im;
im = LoadPict(fileName);
1191,6 → 1190,7
pmI1.convertFromImage(im);
PiconPrev->setPixmap(pmI1);
item->Pfile2 = fileName;
IconPR->setEnabled(true);
}
}
 
1197,14 → 1197,14
void Annot::GetRIcon()
{
QString fileName;
CustomFDialog dia(this, tr("Open"),
tr("Images (*.tif *.png *.jpg *.xpm);;Postscript (*.eps);;All Files (*)"), "", true);
CustomFDialog dia(this, tr("Open"),
tr("Images (*.tif *.png *.jpg *.xpm);;Postscript (*.eps);;All Files (*)"), "", true);
if (dia.exec() == QDialog::Accepted)
fileName = dia.selectedFile();
else
return;
if (!fileName.isEmpty())
{
if (!fileName.isEmpty())
{
QPixmap pmI1;
QImage im;
im = LoadPict(fileName);
1211,6 → 1211,7
pmI1.convertFromImage(im);
RiconPrev->setPixmap(pmI1);
item->Pfile3 = fileName;
IconRR->setEnabled(true);
}
}
 
1228,7 → 1229,7
if (dia->exec())
{
item->An_K_act = dia->EditTex->text();
KeyScript->setText( item->An_K_act );
KeyScript->setText( item->An_K_act );
}
delete dia;
}
1239,7 → 1240,7
if (dia->exec())
{
item->An_F_act = dia->EditTex->text();
FormatScript->setText( item->An_F_act );
FormatScript->setText( item->An_F_act );
}
delete dia;
}
1250,7 → 1251,7
if (dia->exec())
{
item->An_V_act = dia->EditTex->text();
ValidScript->setText( item->An_V_act );
ValidScript->setText( item->An_V_act );
}
delete dia;
}
1261,7 → 1262,7
if (dia->exec())
{
item->An_C_act = dia->EditTex->text();
CalcScript->setText( item->An_C_act );
CalcScript->setText( item->An_C_act );
}
delete dia;
}
1365,28 → 1366,28
FormNum = pfol[1].toInt();
switch (pfol[1].toInt())
{
case 0:
Format0->setChecked(true);
break;
case 1:
Format1->setChecked(true);;
break;
case 2:
Format2->setChecked(true);
break;
case 3:
Format3->setChecked(true);
break;
case 0:
Format0->setChecked(true);
break;
case 1:
Format1->setChecked(true);;
break;
case 2:
Format2->setChecked(true);
break;
case 3:
Format3->setChecked(true);
break;
}
PreCurr->setChecked(pfol[5] == " true" ? true : false);
if (pfol[4].length() > 2)
// {
CurSym->setText(pfol[4].mid(pfol[4].length() > 2 ? 2 : 3, pfol[4].length() - 4));
/* if (PreCurr->isChecked())
CurSym->setText(pfol[4].mid(2,pfol[4].length()-4));
else
CurSym->setText(pfol[4].mid(3,pfol[4].length()-4));
}*/
// {
CurSym->setText(pfol[4].mid(pfol[4].length() > 2 ? 2 : 3, pfol[4].length() - 4));
/* if (PreCurr->isChecked())
CurSym->setText(pfol[4].mid(2,pfol[4].length()-4));
else
CurSym->setText(pfol[4].mid(3,pfol[4].length()-4));
}*/
else
CurSym->setText("");
if (CurSym->text() != "")
1404,18 → 1405,18
FormNum = pfol[1].toInt();
switch (pfol[1].toInt())
{
case 0:
Format0a->setChecked(true);
break;
case 1:
Format1a->setChecked(true);
break;
case 2:
Format2a->setChecked(true);
break;
case 3:
Format3a->setChecked(true);
break;
case 0:
Format0a->setChecked(true);
break;
case 1:
Format1a->setChecked(true);
break;
case 2:
Format2a->setChecked(true);
break;
case 3:
Format3a->setChecked(true);
break;
}
}
if (item->AnFormat == 3)
1429,18 → 1430,18
FormNum = pfol[0].toInt();
switch (pfol[0].toInt())
{
case 0:
Format0b->setChecked(true);
break;
case 1:
Format1b->setChecked(true);
break;
case 2:
Format2b->setChecked(true);
break;
case 3:
Format3b->setChecked(true);
break;
case 0:
Format0b->setChecked(true);
break;
case 1:
Format1b->setChecked(true);
break;
case 2:
Format2b->setChecked(true);
break;
case 3:
Format3b->setChecked(true);
break;
}
}
}
1449,36 → 1450,36
{
switch (item->AnFormat)
{
case 1:
if (Format0->isChecked())
FormNum = 0;
if (Format1->isChecked())
FormNum = 1;
if (Format2->isChecked())
FormNum = 2;
if (Format3->isChecked())
FormNum = 3;
break;
case 2:
if (Format0a->isChecked())
FormNum = 0;
if (Format1a->isChecked())
FormNum = 1;
if (Format2a->isChecked())
FormNum = 2;
if (Format3a->isChecked())
FormNum = 3;
break;
case 4:
if (Format0b->isChecked())
FormNum = 0;
if (Format1b->isChecked())
FormNum = 1;
if (Format2b->isChecked())
FormNum = 2;
if (Format3b->isChecked())
FormNum = 3;
break;
case 1:
if (Format0->isChecked())
FormNum = 0;
if (Format1->isChecked())
FormNum = 1;
if (Format2->isChecked())
FormNum = 2;
if (Format3->isChecked())
FormNum = 3;
break;
case 2:
if (Format0a->isChecked())
FormNum = 0;
if (Format1a->isChecked())
FormNum = 1;
if (Format2a->isChecked())
FormNum = 2;
if (Format3a->isChecked())
FormNum = 3;
break;
case 4:
if (Format0b->isChecked())
FormNum = 0;
if (Format1b->isChecked())
FormNum = 1;
if (Format2b->isChecked())
FormNum = 2;
if (Format3b->isChecked())
FormNum = 3;
break;
}
}
 
1573,9 → 1574,9
if (it == 5)
{
EditFormat->setEnabled( true );
EditKeystr->setEnabled( true );
KeyScript->setText( item->An_K_act );
FormatScript->setText( item->An_F_act );
EditKeystr->setEnabled( true );
KeyScript->setText( item->An_K_act );
FormatScript->setText( item->An_F_act );
}
item->AnFormat = it;
}
1598,7 → 1599,7
}
Breite = Pg1->Breite;
Hoehe = Pg1->Hoehe;
// SetCo(0,0);
// SetCo(0,0);
}
else
{
1606,7 → 1607,7
SpinBox11->setValue(v);
Breite = OriBreite;
Hoehe = OriHoehe;
// SetCo(0,0);
// SetCo(0,0);
}
SpinBox21->setMaxValue(Breite);
SpinBox31->setMaxValue(Hoehe);
1644,6 → 1645,22
item->AnBColor = BorderC->currentText();
if (item->AnBColor == tr("None"))
item->AnBColor = "None";
item->Pcolor2 = item->AnBColor;
switch (item->AnBwid)
{
case 0:
item->Pwidth = 0;
break;
case 1:
item->Pwidth = 1;
break;
case 2:
item->Pwidth = 2;
break;
case 3:
item->Pwidth = 4;
break;
}
Limit->isChecked() ? item->AnMaxChar = MaxChars->value() : item->AnMaxChar = -1;
if (item->AnType == 2)
{
1650,6 → 1667,8
item->AnFlag += 65536;
if (item->Pfile == "")
item->AnUseIcons = false;
else
item->AnUseIcons = true;
}
else
{
1692,12 → 1711,12
{
/* PFJ - 28/02/04 - Re-written. Much simpler this way! */
QString calc[] = {"\"SUM\", ", "\"PRD\", ", "\"AVG\" ,", "\"MIN\", ",
"\"MAX\", "};
"\"MAX\", "};
item->An_C_act = "AFSimple_Calculate(" + calc[CalcArt->currentItem()];
}
item->An_C_act += "new Array (";
QStringList pfol;
pfol = pfol.split(",", CalcFields->text());
QStringList pfol;
pfol = pfol.split(",", CalcFields->text());
if (pfol.count() > 1)
{
item->An_C_act += "\""+pfol[0].stripWhiteSpace()+"\"";
1712,38 → 1731,38
switch */
switch (TxFormat->currentItem())
{
case 0:
item->An_F_act = "";
item->An_K_act = "";
break;
case 1:
Nfo = tmp.setNum(Decim->value())+", "+tmp2.setNum(FormNum)+", 0, 0, \"";
if (UseCurr->isChecked())
{
if (!PreCurr->isChecked())
Nfo += " ";
Nfo += CurSym->text().stripWhiteSpace();
if (PreCurr->isChecked())
Nfo += " ";
}
case 0:
item->An_F_act = "";
item->An_K_act = "";
break;
case 1:
Nfo = tmp.setNum(Decim->value())+", "+tmp2.setNum(FormNum)+", 0, 0, \"";
if (UseCurr->isChecked())
{
if (!PreCurr->isChecked())
Nfo += " ";
Nfo += CurSym->text().stripWhiteSpace();
if (PreCurr->isChecked())
Nfo += "\", true)";
else
Nfo += "\", false)";
break;
case 2:
Nfo = tmp.setNum(Decim2->value())+", "+tmp2.setNum(FormNum)+")";
break;
case 3:
Nfo = Format0c->currentText()+")";
break;
case 4:
Nfo = tmp.setNum(FormNum)+")";
break;
case 5:
item->An_F_act = FormatScript->text();
item->An_K_act = KeyScript->text();
break;
Nfo += " ";
}
if (PreCurr->isChecked())
Nfo += "\", true)";
else
Nfo += "\", false)";
break;
case 2:
Nfo = tmp.setNum(Decim2->value())+", "+tmp2.setNum(FormNum)+")";
break;
case 3:
Nfo = Format0c->currentText()+")";
break;
case 4:
Nfo = tmp.setNum(FormNum)+")";
break;
case 5:
item->An_F_act = FormatScript->text();
item->An_K_act = KeyScript->text();
break;
}
if (TxFormat->currentItem() > 0 && TxFormat->currentItem() < 5)
{
1753,66 → 1772,66
item->AnAction = "";
switch (ActionCombo->currentItem())
{
case 0:
item->AnActType = 0;
break;
case 1:
item->AnActType = 1;
switch (ScrEdited)
{
case 0:
item->AnActType = 0;
item->AnAction = EditJava->text();
break;
case 1:
item->AnActType = 1;
switch (ScrEdited)
{
case 0:
item->AnAction = EditJava->text();
break;
case 1:
item->An_D_act = EditJava->text();
break;
case 2:
item->An_E_act = EditJava->text();
break;
case 3:
item->An_X_act = EditJava->text();
break;
case 4:
item->An_Fo_act = EditJava->text();
break;
case 5:
item->An_Bl_act = EditJava->text();
break;
case 6:
item->An_K_act = EditJava->text();
break;
}
item->An_D_act = EditJava->text();
break;
case 2:
if ((LExtern->isChecked()) && (Destfile->text() != ""))
{
item->An_Extern = Destfile->text();
item->AnActType = 7;
}
else
{
item->An_Extern = "";
item->AnActType = 2;
}
item->AnZiel = SpinBox11->value()-1;
item->AnAction = tmp.setNum(SpinBox21->value())+" "+tmp2.setNum(Hoehe-SpinBox31->value())+" 0";
item->An_E_act = EditJava->text();
break;
case 3:
item->AnActType = 3;
item->AnAction = SubURL->text().stripWhiteSpace();
item->AnHTML = SubAsHtml->isChecked();
item->An_X_act = EditJava->text();
break;
case 4:
item->AnActType = 4;
item->An_Fo_act = EditJava->text();
break;
case 5:
item->AnActType = 5;
item->AnAction = SubURLa->text().stripWhiteSpace();
item->An_Bl_act = EditJava->text();
break;
case 6:
item->An_K_act = EditJava->text();
break;
}
break;
case 2:
if ((LExtern->isChecked()) && (Destfile->text() != ""))
{
item->An_Extern = Destfile->text();
item->AnActType = 7;
}
else
{
item->An_Extern = "";
item->AnActType = 2;
}
item->AnZiel = SpinBox11->value()-1;
item->AnAction = tmp.setNum(SpinBox21->value())+" "+tmp2.setNum(Hoehe-SpinBox31->value())+" 0";
break;
case 3:
item->AnActType = 3;
item->AnAction = SubURL->text().stripWhiteSpace();
item->AnHTML = SubAsHtml->isChecked();
break;
case 4:
item->AnActType = 4;
break;
case 5:
item->AnActType = 5;
item->AnAction = SubURLa->text().stripWhiteSpace();
break;
}
if (item->An_E_act != "" || item->An_X_act != "" || item->An_D_act != "" ||
item->An_Fo_act != "" || item->An_Bl_act != "" || item->An_K_act != "" ||
item->An_F_act != "" || item->An_V_act != "" || item->An_C_act != "")
item->An_Fo_act != "" || item->An_Bl_act != "" || item->An_K_act != "" ||
item->An_F_act != "" || item->An_V_act != "" || item->An_C_act != "")
AAct = true;
item->AnAAact = AAct ? true : false;
accept();
1832,18 → 1851,18
EditFormat->setEnabled( false );
EditKeystr->setEnabled( false );
SelAction->clear();
QString tmp_selact[]={tr("Mouse Up"), tr("Mouse Down"), tr("Mouse Enter"),
tr("Mouse Exit"), tr("On Focus"), tr("On Blur")};
QString tmp_selact[]={tr("Mouse Up"), tr("Mouse Down"), tr("Mouse Enter"),
tr("Mouse Exit"), tr("On Focus"), tr("On Blur")};
size_t array_sel = sizeof(tmp_selact) / sizeof(*tmp_selact);
/* PFJ - 28/02/04 - Altered from uint to int and varname */
for (uint prop = 0; prop < array_sel; ++prop)
SelAction->insertItem(tmp_selact[prop]);
SelAction->insertItem(tmp_selact[prop]);
bool setter;
switch (sela)
{
case 2:
{
Fram->raiseWidget(3);
case 2:
{
Fram->raiseWidget(3);
FramOp->raiseWidget(sela);
ReadOnly->setEnabled(false);
ReadOnly->setChecked(false);
1852,8 → 1871,8
NoExport->setEnabled(false);
NoExport->setChecked(false);
ActionCombo->clear();
QString tmp_actcom[] = {tr("None"), tr("Java Script"), tr("Go To"),
tr("Submit Form"), tr("Reset Form"), tr("Import Data")};
QString tmp_actcom[] = {tr("None"), tr("Java Script"), tr("Go To"),
tr("Submit Form"), tr("Reset Form"), tr("Import Data")};
size_t array_act = sizeof(tmp_actcom) / sizeof(*tmp_actcom);
/* PFJ - 28/02/04 - Altered from uint to int and varname */
for (uint prop = 0; prop < array_act; ++prop)
1862,41 → 1881,41
setter = item->AnActType != 7 ? true : false;
Destfile->setEnabled(setter);
ChFile->setEnabled(setter);
SetActTyp(tmpac);
SetActTyp(tmpac);
break;
}
case 3:
case 6:
case 4:
case 5:
case 7:
if ((sela == 3) || (sela == 5))
{
TabWidget2->setTabEnabled(tab4, true);
TabWidget2->setTabEnabled(tab_4, true);
TabWidget2->setTabEnabled(tab_5, true);
TxFormat->setCurrentItem(item->AnFormat);
SetFoScript(item->AnFormat);
SetVali();
SetCalc();
}
if (sela == 6)
SelAction->insertItem( tr( "Selection Change" ) );
ReadOnly->setEnabled(true);
ReadOnly->setChecked(item->AnFlag & 1);
Required->setChecked(item->AnFlag & 2);
NoExport->setChecked(item->AnFlag & 4);
Fram->raiseWidget(3);
sela > 5 ? FramOp->raiseWidget(5) : FramOp->raiseWidget(sela);
ActionCombo->clear();
ActionCombo->insertItem( tr( "None" ) );
ActionCombo->insertItem( tr( "Java Script" ) );
ActionCombo->setCurrentItem(QMIN(tmpac, 1));
SetActTyp(tmpac);
break;
default:
Fram->raiseWidget(2);
break;
}
case 3:
case 6:
case 4:
case 5:
case 7:
if ((sela == 3) || (sela == 5))
{
TabWidget2->setTabEnabled(tab4, true);
TabWidget2->setTabEnabled(tab_4, true);
TabWidget2->setTabEnabled(tab_5, true);
TxFormat->setCurrentItem(item->AnFormat);
SetFoScript(item->AnFormat);
SetVali();
SetCalc();
}
if (sela == 6)
SelAction->insertItem( tr( "Selection Change" ) );
ReadOnly->setEnabled(true);
ReadOnly->setChecked(item->AnFlag & 1);
Required->setChecked(item->AnFlag & 2);
NoExport->setChecked(item->AnFlag & 4);
Fram->raiseWidget(3);
sela > 5 ? FramOp->raiseWidget(5) : FramOp->raiseWidget(sela);
ActionCombo->clear();
ActionCombo->insertItem( tr( "None" ) );
ActionCombo->insertItem( tr( "Java Script" ) );
ActionCombo->setCurrentItem(QMIN(tmpac, 1));
SetActTyp(tmpac);
break;
default:
Fram->raiseWidget(2);
break;
}
MultiL->setChecked(item->AnFlag & 4096);
Passwd->setChecked(item->AnFlag & 8192);
1926,8 → 1945,8
{
item->AnActType = 2;
enable = false;
// Destfile->setEnabled(false);
// ChFile->setEnabled(false);
// Destfile->setEnabled(false);
// ChFile->setEnabled(false);
SetPg(QMIN(SpinBox11->value(), MaxSeite));
}
else
1934,8 → 1953,8
{
item->AnActType = 7;
enable = true;
// Destfile->setEnabled(true);
// ChFile->setEnabled(true);
// Destfile->setEnabled(true);
// ChFile->setEnabled(true);
if (Destfile->text() == "")
{
GetFile();
1943,8 → 1962,8
{
item->AnActType = 2;
enable = false;
// Destfile->setEnabled(false);
// ChFile->setEnabled(false);
// Destfile->setEnabled(false);
// ChFile->setEnabled(false);
LExtern->setChecked(false);
}
}
1960,29 → 1979,29
bool setter;
switch (it)
{
case 5:
Fram2->raiseWidget(5);
SubURLa->setText(item->AnAction);
break;
case 3:
Fram2->raiseWidget(4);
SubURL->setText(item->AnAction);
SubAsHtml->setChecked(item->AnHTML);
break;
case 2:
Fram2->raiseWidget(3);
setter = item->AnActType != 7 ? true : false;
Destfile->setEnabled(setter);
ChFile->setEnabled(setter);
SetPg(QMIN(SpinBox11->value(), MaxSeite));
break;
case 1:
Fram2->raiseWidget(2);
SelAction->setCurrentItem(ScrEdited);
break;
default:
Fram2->raiseWidget(1);
break;
case 5:
Fram2->raiseWidget(5);
SubURLa->setText(item->AnAction);
break;
case 3:
Fram2->raiseWidget(4);
SubURL->setText(item->AnAction);
SubAsHtml->setChecked(item->AnHTML);
break;
case 2:
Fram2->raiseWidget(3);
setter = item->AnActType != 7 ? true : false;
Destfile->setEnabled(setter);
ChFile->setEnabled(setter);
SetPg(QMIN(SpinBox11->value(), MaxSeite));
break;
case 1:
Fram2->raiseWidget(2);
SelAction->setCurrentItem(ScrEdited);
break;
default:
Fram2->raiseWidget(1);
break;
}
}
 
1990,51 → 2009,51
{
switch (ScrEdited)
{
case 0:
item->AnAction = EditJava->text();
break;
case 1:
item->An_D_act = EditJava->text();
break;
case 2:
item->An_E_act = EditJava->text();
break;
case 3:
item->An_X_act = EditJava->text();
break;
case 4:
item->An_Fo_act = EditJava->text();
break;
case 5:
item->An_Bl_act = EditJava->text();
break;
case 6:
item->An_K_act = EditJava->text();
break;
case 0:
item->AnAction = EditJava->text();
break;
case 1:
item->An_D_act = EditJava->text();
break;
case 2:
item->An_E_act = EditJava->text();
break;
case 3:
item->An_X_act = EditJava->text();
break;
case 4:
item->An_Fo_act = EditJava->text();
break;
case 5:
item->An_Bl_act = EditJava->text();
break;
case 6:
item->An_K_act = EditJava->text();
break;
}
switch (it)
{
case 0:
EditJava->setText(item->AnAction);
break;
case 1:
EditJava->setText(item->An_D_act);
break;
case 2:
EditJava->setText(item->An_E_act);
break;
case 3:
EditJava->setText(item->An_X_act);
break;
case 4:
EditJava->setText(item->An_Fo_act);
break;
case 5:
EditJava->setText(item->An_Bl_act);
break;
case 6:
EditJava->setText(item->An_K_act);
break;
case 0:
EditJava->setText(item->AnAction);
break;
case 1:
EditJava->setText(item->An_D_act);
break;
case 2:
EditJava->setText(item->An_E_act);
break;
case 3:
EditJava->setText(item->An_X_act);
break;
case 4:
EditJava->setText(item->An_Fo_act);
break;
case 5:
EditJava->setText(item->An_Bl_act);
break;
case 6:
EditJava->setText(item->An_K_act);
break;
}
ScrEdited = it;
}
2052,7 → 2071,7
{
Destfile->setText(fn);
SpinBox11->setValue(1);
SpinBox11->setMaxValue(1000);
SpinBox11->setMaxValue(1000);
SetPg(1);
}
}
/trunk/Scribus/scribus/scribus.h
61,6 → 61,7
class Autoforms;
class FontCombo;
class StilFormate;
class LineFormate;
 
/**
* This Class is the base class for your application. It sets up the main
369,6 → 370,7
void slotEditStyles();
void saveStyles(StilFormate *dia);
void slotEditLineStyles();
void saveLStyles(LineFormate *dia);
void setNewAbStyle(int a);
void setAbsValue(int a);
void SelectFromOutl(int Page, int Item);
/trunk/Scribus/scribus/editformats.cpp
7,76 → 7,76
extern QPixmap loadIcon(QString nam);
 
StilFormate::StilFormate( QWidget* parent, ScribusDoc *doc, preV *avail)
: QDialog( parent, "Formate", true, 0)
: QDialog( parent, "Formate", true, 0)
{
resize( 327, 260 );
setCaption( tr( "Edit Styles" ) );
setIcon(loadIcon("AppIcon.png"));
resize( 327, 260 );
setCaption( tr( "Edit Styles" ) );
setIcon(loadIcon("AppIcon.png"));
fon = avail;
Docu = doc;
StilFormateLayout = new QHBoxLayout( this );
StilFormateLayout->setSpacing( 5 );
StilFormateLayout->setMargin( 10 );
StilFormateLayout = new QHBoxLayout( this );
StilFormateLayout->setSpacing( 5 );
StilFormateLayout->setMargin( 10 );
 
ListBox1 = new QListBox( this, "ListBox1" );
ListBox1->setMinimumSize( QSize( 200, 240 ) );
StilFormateLayout->addWidget( ListBox1 );
ListBox1 = new QListBox( this, "ListBox1" );
ListBox1->setMinimumSize( QSize( 200, 240 ) );
StilFormateLayout->addWidget( ListBox1 );
 
Layout15 = new QVBoxLayout;
Layout15->setSpacing( 6 );
Layout15->setMargin( 0 );
Layout15 = new QVBoxLayout;
Layout15->setSpacing( 6 );
Layout15->setMargin( 0 );
 
LoadS = new QPushButton( this, "LoadF" );
LoadS->setText( tr( "Append" ) );
Layout15->addWidget( LoadS );
LoadS = new QPushButton( this, "LoadF" );
LoadS->setText( tr( "Append" ) );
Layout15->addWidget( LoadS );
 
NewB = new QPushButton( this, "NewB" );
NewB->setText( tr( "New" ) );
Layout15->addWidget( NewB );
NewB = new QPushButton( this, "NewB" );
NewB->setText( tr( "New" ) );
Layout15->addWidget( NewB );
 
EditB = new QPushButton( this, "EditB" );
EditB->setText( tr( "Edit" ) );
EditB->setDefault( true );
EditB->setEnabled(false);
Layout15->addWidget( EditB );
EditB = new QPushButton( this, "EditB" );
EditB->setText( tr( "Edit" ) );
EditB->setDefault( true );
EditB->setEnabled(false);
Layout15->addWidget( EditB );
 
DublicateB = new QPushButton( this, "DublicateB" );
DublicateB->setText( tr( "Duplicate" ) );
DublicateB->setEnabled(false);
Layout15->addWidget( DublicateB );
DublicateB = new QPushButton( this, "DublicateB" );
DublicateB->setText( tr( "Duplicate" ) );
DublicateB->setEnabled(false);
Layout15->addWidget( DublicateB );
 
DeleteB = new QPushButton( this, "DeleteB" );
DeleteB->setText( tr( "Delete" ) );
DeleteB->setEnabled(false);
Layout15->addWidget( DeleteB );
DeleteB = new QPushButton( this, "DeleteB" );
DeleteB->setText( tr( "Delete" ) );
DeleteB->setEnabled(false);
Layout15->addWidget( DeleteB );
 
SaveB = new QPushButton( this, "SaveB" );
SaveB->setText( tr( "Save" ) );
Layout15->addWidget( SaveB );
SaveB = new QPushButton( this, "SaveB" );
SaveB->setText( tr( "Save" ) );
Layout15->addWidget( SaveB );
 
ExitB = new QPushButton( this, "ExitB" );
ExitB->setText( tr( "Leave" ) );
Layout15->addWidget( ExitB );
ExitB = new QPushButton( this, "ExitB" );
ExitB->setText( tr( "Exit" ) );
Layout15->addWidget( ExitB );
 
CancelB = new QPushButton( this, "CancelB" );
CancelB->setText( tr( "Cancel" ) );
Layout15->addWidget( CancelB );
QSpacerItem* spacer = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
Layout15->addItem( spacer );
StilFormateLayout->addLayout( Layout15 );
CancelB = new QPushButton( this, "CancelB" );
CancelB->setText( tr( "Cancel" ) );
Layout15->addWidget( CancelB );
QSpacerItem* spacer = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
Layout15->addItem( spacer );
StilFormateLayout->addLayout( Layout15 );
 
// signals and slots connections
connect(CancelB, SIGNAL(clicked()), this, SLOT(reject()));
connect(SaveB, SIGNAL(clicked()), this, SLOT(saveIt()));
connect(ExitB, SIGNAL(clicked()), this, SLOT(accept()));
connect(EditB, SIGNAL(clicked()), this, SLOT(editFormat()));
connect(NewB, SIGNAL(clicked()), this, SLOT(neuesFormat()));
connect(LoadS, SIGNAL(clicked()), this, SLOT(loadStyles()));
connect(DublicateB, SIGNAL(clicked()), this, SLOT(dupFormat()));
connect(DeleteB, SIGNAL(clicked()), this, SLOT(deleteFormat()));
connect(ListBox1, SIGNAL(highlighted(QListBoxItem*)), this, SLOT(selFormat(QListBoxItem*)));
TempVorl = doc->Vorlagen;
UpdateFList();
// signals and slots connections
connect(CancelB, SIGNAL(clicked()), this, SLOT(reject()));
connect(SaveB, SIGNAL(clicked()), this, SLOT(saveIt()));
connect(ExitB, SIGNAL(clicked()), this, SLOT(accept()));
connect(EditB, SIGNAL(clicked()), this, SLOT(editFormat()));
connect(NewB, SIGNAL(clicked()), this, SLOT(neuesFormat()));
connect(LoadS, SIGNAL(clicked()), this, SLOT(loadStyles()));
connect(DublicateB, SIGNAL(clicked()), this, SLOT(dupFormat()));
connect(DeleteB, SIGNAL(clicked()), this, SLOT(deleteFormat()));
connect(ListBox1, SIGNAL(highlighted(QListBoxItem*)), this, SLOT(selFormat(QListBoxItem*)));
TempVorl = doc->Vorlagen;
UpdateFList();
}
 
void StilFormate::saveIt()
94,68 → 94,68
break;
}
}
EditB->setEnabled(true);
DublicateB->setEnabled(true);
DeleteB->setEnabled(true);
EditB->setEnabled(true);
DublicateB->setEnabled(true);
DeleteB->setEnabled(true);
}
 
void StilFormate::dupFormat()
{
struct StVorL sty;
sty.Vname = tr("Copy of %1").arg(TempVorl[sFnumber].Vname);
sty.LineSpa = TempVorl[sFnumber].LineSpa;
sty.Ausri = TempVorl[sFnumber].Ausri;
sty.Indent = TempVorl[sFnumber].Indent;
sty.First = TempVorl[sFnumber].First;
sty.Avor = TempVorl[sFnumber].Avor;
sty.Anach = TempVorl[sFnumber].Anach;
sty.Font = TempVorl[sFnumber].Font;
sty.FontSize = TempVorl[sFnumber].FontSize;
sty.TabValues = TempVorl[sFnumber].TabValues;
sty.Drop = TempVorl[sFnumber].Drop;
sty.DropLin = TempVorl[sFnumber].DropLin;
sty.FontEffect = TempVorl[sFnumber].FontEffect;
struct StVorL sty;
sty.Vname = tr("Copy of %1").arg(TempVorl[sFnumber].Vname);
sty.LineSpa = TempVorl[sFnumber].LineSpa;
sty.Ausri = TempVorl[sFnumber].Ausri;
sty.Indent = TempVorl[sFnumber].Indent;
sty.First = TempVorl[sFnumber].First;
sty.Avor = TempVorl[sFnumber].Avor;
sty.Anach = TempVorl[sFnumber].Anach;
sty.Font = TempVorl[sFnumber].Font;
sty.FontSize = TempVorl[sFnumber].FontSize;
sty.TabValues = TempVorl[sFnumber].TabValues;
sty.Drop = TempVorl[sFnumber].Drop;
sty.DropLin = TempVorl[sFnumber].DropLin;
sty.FontEffect = TempVorl[sFnumber].FontEffect;
sty.FColor = TempVorl[sFnumber].FColor;
sty.FShade = TempVorl[sFnumber].FShade;
sty.SColor = TempVorl[sFnumber].SColor;
sty.SShade = TempVorl[sFnumber].SShade;
TempVorl.append(sty);
sFnumber = TempVorl.count()-1;
TempVorl.append(sty);
sFnumber = TempVorl.count()-1;
EditStyle* dia2 = new EditStyle(this, &TempVorl[sFnumber], TempVorl, true, fon,
static_cast<double>(Docu->AutoLine), Docu->Einheit, Docu);
static_cast<double>(Docu->AutoLine), Docu->Einheit, Docu);
if (!dia2->exec())
TempVorl.remove(TempVorl.fromLast());
delete dia2;
delete dia2;
UpdateFList();
}
 
void StilFormate::neuesFormat()
{
struct StVorL sty;
sty.Vname = tr("New Style");
sty.LineSpa = ((Docu->Dsize / 10.0) * static_cast<double>(Docu->AutoLine) / 100) + (Docu->Dsize / 10.0);
sty.Ausri = 0;
sty.Indent = 0;
sty.First = 0;
sty.Avor = 0;
sty.Anach = 0;
struct StVorL sty;
sty.Vname = tr("New Style");
sty.LineSpa = ((Docu->Dsize / 10.0) * static_cast<double>(Docu->AutoLine) / 100) + (Docu->Dsize / 10.0);
sty.Ausri = 0;
sty.Indent = 0;
sty.First = 0;
sty.Avor = 0;
sty.Anach = 0;
sty.Font = Docu->Dfont;
sty.FontSize = Docu->Dsize;
sty.TabValues.clear();
sty.Drop = false;
sty.DropLin = 2;
sty.Drop = false;
sty.DropLin = 2;
sty.FontEffect = 0;
sty.FColor = Docu->Dbrush;
sty.FShade = Docu->Dshade;
sty.SColor = Docu->Dpen;
sty.SShade = Docu->Dshade2;
TempVorl.append(sty);
sFnumber = TempVorl.count()-1;
TempVorl.append(sty);
sFnumber = TempVorl.count()-1;
EditStyle* dia2 = new EditStyle(this, &TempVorl[sFnumber], TempVorl, true, fon,
static_cast<double>(Docu->AutoLine), Docu->Einheit, Docu);
static_cast<double>(Docu->AutoLine), Docu->Einheit, Docu);
if (!dia2->exec())
TempVorl.remove(TempVorl.fromLast());
delete dia2;
delete dia2;
UpdateFList();
}
 
162,7 → 162,7
void StilFormate::editFormat()
{
EditStyle* dia = new EditStyle(this, &TempVorl[sFnumber], TempVorl, false, fon,
static_cast<double>(Docu->AutoLine), Docu->Einheit, Docu);
static_cast<double>(Docu->AutoLine), Docu->Einheit, Docu);
dia->exec();
delete dia;
UpdateFList();
171,11 → 171,11
void StilFormate::deleteFormat()
{
int exit=QMessageBox::warning(this,
tr("Warning"),
tr("Do you really want do delete this Style?"),
tr("No"),
tr("Yes"),
0, QMessageBox::No, QMessageBox::Yes);
tr("Warning"),
tr("Do you really want do delete this Style?"),
tr("No"),
tr("Yes"),
0, QMessageBox::No, QMessageBox::Yes);
/* PFJ - 29.02.04 - Altered to use the correct QMessageBox value. It was 1 */
if (exit == QMessageBox::Yes)
{
197,49 → 197,49
fileName = dia.selectedFile();
else
return;
if (!fileName.isEmpty())
{
ScriXmlDoc *ss = new ScriXmlDoc();
if (!fileName.isEmpty())
{
ScriXmlDoc *ss = new ScriXmlDoc();
ss->Vorlagen.clear();
for (uint x = 5; x < TempVorl.count(); ++x)
ss->Vorlagen.append(TempVorl[x]);
uint old = TempVorl.count()-5;
if (ss->ReadStyles(fileName, Docu, fon))
{
if (ss->ReadStyles(fileName, Docu, fon))
{
if (ss->Vorlagen.count() > old)
{
for (uint xx=old; xx<ss->Vorlagen.count(); ++xx)
{
struct StVorL sty;
sty.Vname = ss->Vorlagen[xx].Vname;
sty.LineSpa = ss->Vorlagen[xx].LineSpa;
sty.Ausri = ss->Vorlagen[xx].Ausri;
sty.Indent = ss->Vorlagen[xx].Indent;
sty.First = ss->Vorlagen[xx].First;
sty.Avor = ss->Vorlagen[xx].Avor;
sty.Anach = ss->Vorlagen[xx].Anach;
sty.Font = ss->Vorlagen[xx].Font;
sty.FontSize = ss->Vorlagen[xx].FontSize;
sty.TabValues = ss->Vorlagen[xx].TabValues;
sty.Drop = TempVorl[xx].Drop;
sty.DropLin = TempVorl[xx].DropLin;
sty.FontEffect = TempVorl[xx].FontEffect;
struct StVorL sty;
sty.Vname = ss->Vorlagen[xx].Vname;
sty.LineSpa = ss->Vorlagen[xx].LineSpa;
sty.Ausri = ss->Vorlagen[xx].Ausri;
sty.Indent = ss->Vorlagen[xx].Indent;
sty.First = ss->Vorlagen[xx].First;
sty.Avor = ss->Vorlagen[xx].Avor;
sty.Anach = ss->Vorlagen[xx].Anach;
sty.Font = ss->Vorlagen[xx].Font;
sty.FontSize = ss->Vorlagen[xx].FontSize;
sty.TabValues = ss->Vorlagen[xx].TabValues;
sty.Drop = TempVorl[xx].Drop;
sty.DropLin = TempVorl[xx].DropLin;
sty.FontEffect = TempVorl[xx].FontEffect;
sty.FColor = TempVorl[xx].FColor;
sty.FShade = TempVorl[xx].FShade;
sty.SColor = TempVorl[xx].SColor;
sty.SShade = TempVorl[xx].SShade;
TempVorl.append(sty);
TempVorl.append(sty);
}
}
UpdateFList();
}
}
delete ss;
}
}
}
 
void StilFormate::UpdateFList()
{
 
if (TempVorl.count() < 6)
return;
ListBox1->clear();
246,11 → 246,11
for (uint x = 5; x < TempVorl.count(); ++x)
ListBox1->insertItem(TempVorl[x].Vname);
if (ListBox1->currentItem() == -1)
{
DublicateB->setEnabled(false);
EditB->setEnabled(false);
{
DublicateB->setEnabled(false);
EditB->setEnabled(false);
DeleteB->setEnabled(false);
}
}
/* PFJ - 29.02.04 - Altered from TRUE to true */
ListBox1->sort( true );
ListBox1->setSelected(ListBox1->currentItem(), false);
/trunk/Scribus/scribus/colorm.cpp
156,7 → 156,7
else
{
connect(DelU, SIGNAL( clicked() ), this, SLOT( delUnused() ) );
QToolTip::add( DelU, tr( "Remove unused colors from current document" ) );
QToolTip::add( DelU, tr( "Remove unused colors from current document's color set" ) );
}
QToolTip::add( LoadF, tr( "Append colors to the current set from an existing document" ) );
QToolTip::add( NewF, tr( "Create a new color within the current set" ) );
/trunk/Scribus/scribus/lineformats.h
9,27 → 9,29
#include "scribusdoc.h"
 
class LineFormate : public QDialog
{
Q_OBJECT
{
Q_OBJECT
 
public:
LineFormate( QWidget* parent, ScribusDoc *doc);
~LineFormate() {};
LineFormate( QWidget* parent, ScribusDoc *doc);
~LineFormate() {};
 
QListBox* ListBox1;
QListBox* ListBox1;
QPushButton* LoadLS;
QPushButton* NewB;
QPushButton* EditB;
QPushButton* DublicateB;
QPushButton* DeleteB;
QPushButton* SaveB;
QPushButton* CancelB;
QString sFnumber;
QPushButton* NewB;
QPushButton* EditB;
QPushButton* DublicateB;
QPushButton* DeleteB;
QPushButton* SaveB;
QPushButton* ExitB;
QPushButton* CancelB;
QString sFnumber;
QMap<QString,multiLine> TempStyles;
ScribusDoc *Docu;
void UpdateFList();
void UpdateFList();
 
public slots:
void saveIt();
void selFormat(QListBoxItem *c);
void editFormat();
void neuesFormat();
37,9 → 39,12
void deleteFormat();
void loadLStyles();
 
signals:
void saveStyle(LineFormate *);
protected:
QHBoxLayout* StilFormateLayout;
QVBoxLayout* Layout15;
QHBoxLayout* StilFormateLayout;
QVBoxLayout* Layout15;
};
 
#endif // STILFORMATE_H
#endif