|
|
@ -214,35 +214,35 @@ bool InternalEditorAction::queryUseKPilotChanges(TQString dbName, recordid_t id,
|
|
|
|
|
|
|
|
|
|
|
|
TQWidget*page=new TQWidget(resdlg);
|
|
|
|
TQWidget*page=new TQWidget(resdlg);
|
|
|
|
resdlg->setMainWidget(page);
|
|
|
|
resdlg->setMainWidget(page);
|
|
|
|
TQGridLayout*tqlayout = new TQGridLayout( page, 1, 1);
|
|
|
|
TQGridLayout*layout = new TQGridLayout( page, 1, 1);
|
|
|
|
|
|
|
|
|
|
|
|
TQLabel *label=new TQLabel(dialogText, page);
|
|
|
|
TQLabel *label=new TQLabel(dialogText, page);
|
|
|
|
label->setAlignment( TQLabel::WordBreak );
|
|
|
|
label->setAlignment( TQLabel::WordBreak );
|
|
|
|
tqlayout->addMultiCellWidget( label, 0,0, 0,1 );
|
|
|
|
layout->addMultiCellWidget( label, 0,0, 0,1 );
|
|
|
|
|
|
|
|
|
|
|
|
tqlayout->addItem( new TQSpacerItem( 20, 10, TQSizePolicy::Minimum,
|
|
|
|
layout->addItem( new TQSpacerItem( 20, 10, TQSizePolicy::Minimum,
|
|
|
|
TQSizePolicy::Fixed ), 1, 0 );
|
|
|
|
TQSizePolicy::Fixed ), 1, 0 );
|
|
|
|
|
|
|
|
|
|
|
|
if (knownDB)
|
|
|
|
if (knownDB)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label=new TQLabel(i18n("Entry in KPilot"), page);
|
|
|
|
label=new TQLabel(i18n("Entry in KPilot"), page);
|
|
|
|
tqlayout->addWidget( label, 2,0);
|
|
|
|
layout->addWidget( label, 2,0);
|
|
|
|
|
|
|
|
|
|
|
|
KTextEdit*textBrowser = new KTextEdit(CSL1("<qt>")+localEntry+CSL1("</qt>"), TQString(), page);
|
|
|
|
KTextEdit*textBrowser = new KTextEdit(CSL1("<qt>")+localEntry+CSL1("</qt>"), TQString(), page);
|
|
|
|
textBrowser->setReadOnly(true);
|
|
|
|
textBrowser->setReadOnly(true);
|
|
|
|
tqlayout->addWidget( textBrowser, 3,0);
|
|
|
|
layout->addWidget( textBrowser, 3,0);
|
|
|
|
|
|
|
|
|
|
|
|
label=new TQLabel(i18n("Entry on Handheld"), page);
|
|
|
|
label=new TQLabel(i18n("Entry on Handheld"), page);
|
|
|
|
tqlayout->addWidget( label, 2,1);
|
|
|
|
layout->addWidget( label, 2,1);
|
|
|
|
|
|
|
|
|
|
|
|
textBrowser = new KTextEdit(CSL1("<qt>")+serialEntry+CSL1("</qt>"), TQString(), page);
|
|
|
|
textBrowser = new KTextEdit(CSL1("<qt>")+serialEntry+CSL1("</qt>"), TQString(), page);
|
|
|
|
textBrowser->setReadOnly(true);
|
|
|
|
textBrowser->setReadOnly(true);
|
|
|
|
tqlayout->addWidget( textBrowser, 3,1);
|
|
|
|
layout->addWidget( textBrowser, 3,1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label=new TQLabel(i18n("Entry in KPilot"), page);
|
|
|
|
label=new TQLabel(i18n("Entry in KPilot"), page);
|
|
|
|
tqlayout->addMultiCellWidget( label, 2,2,0,1);
|
|
|
|
layout->addMultiCellWidget( label, 2,2,0,1);
|
|
|
|
|
|
|
|
|
|
|
|
// directly display the record's data:
|
|
|
|
// directly display the record's data:
|
|
|
|
TQWidget *hexEdit = KHE::createBytesEditWidget( page, "LocalBufferEdit" );
|
|
|
|
TQWidget *hexEdit = KHE::createBytesEditWidget( page, "LocalBufferEdit" );
|
|
|
@ -267,10 +267,10 @@ bool InternalEditorAction::queryUseKPilotChanges(TQString dbName, recordid_t id,
|
|
|
|
tmpW->setFrameShadow( TQFrame::Sunken );
|
|
|
|
tmpW->setFrameShadow( TQFrame::Sunken );
|
|
|
|
hexEdit = tmpW;
|
|
|
|
hexEdit = tmpW;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tqlayout->addMultiCellWidget( hexEdit, 3,3,0,1);
|
|
|
|
layout->addMultiCellWidget( hexEdit, 3,3,0,1);
|
|
|
|
|
|
|
|
|
|
|
|
label=new TQLabel(i18n("Entry on Handheld"), page);
|
|
|
|
label=new TQLabel(i18n("Entry on Handheld"), page);
|
|
|
|
tqlayout->addMultiCellWidget( label, 4,4,0,1);
|
|
|
|
layout->addMultiCellWidget( label, 4,4,0,1);
|
|
|
|
|
|
|
|
|
|
|
|
// directly display the record's data:
|
|
|
|
// directly display the record's data:
|
|
|
|
hexEdit = KHE::createBytesEditWidget( page, "SerialBufferEdit" );
|
|
|
|
hexEdit = KHE::createBytesEditWidget( page, "SerialBufferEdit" );
|
|
|
@ -295,7 +295,7 @@ bool InternalEditorAction::queryUseKPilotChanges(TQString dbName, recordid_t id,
|
|
|
|
tmpW->setFrameShadow( TQFrame::Sunken );
|
|
|
|
tmpW->setFrameShadow( TQFrame::Sunken );
|
|
|
|
hexEdit = tmpW;
|
|
|
|
hexEdit = tmpW;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tqlayout->addMultiCellWidget( hexEdit, 5,5,0,1);
|
|
|
|
layout->addMultiCellWidget( hexEdit, 5,5,0,1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int res=resdlg->exec();
|
|
|
|
int res=resdlg->exec();
|
|
|
|