|
|
|
@ -163,7 +163,7 @@ LabelEditor::LabelEditor( TQWidget *parent, TQString _filename, const char *name
|
|
|
|
|
connect( cv, TQ_SIGNAL( showContextMenu(TQPoint) ), this, TQ_SLOT( showContextMenu(TQPoint) ) );
|
|
|
|
|
connect( cv, TQ_SIGNAL( movedSomething() ), this, TQ_SLOT( setEdited() ) );
|
|
|
|
|
connect( KBarcodeSettings::getInstance(), TQ_SIGNAL( updateGrid( int ) ), cv, TQ_SLOT( updateGUI() ) );
|
|
|
|
|
connect( kapp, TQ_SIGNAL( aboutToQuit() ), this, TQ_SLOT( saveConfig() ) );
|
|
|
|
|
connect( tdeApp, TQ_SIGNAL( aboutToQuit() ), this, TQ_SLOT( saveConfig() ) );
|
|
|
|
|
|
|
|
|
|
connect( history, TQ_SIGNAL( commandExecuted() ), cv, TQ_SLOT( updateGUI() ) );
|
|
|
|
|
connect( history, TQ_SIGNAL( commandExecuted() ), this, TQ_SLOT( setEdited() ) );
|
|
|
|
@ -181,7 +181,7 @@ LabelEditor::~LabelEditor()
|
|
|
|
|
|
|
|
|
|
void LabelEditor::loadConfig()
|
|
|
|
|
{
|
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
|
recentAct->loadEntries( config, "RecentFiles" );
|
|
|
|
|
|
|
|
|
|
gridAct->setChecked( config->readBoolEntry("gridenabled", false ) );
|
|
|
|
@ -190,7 +190,7 @@ void LabelEditor::loadConfig()
|
|
|
|
|
|
|
|
|
|
void LabelEditor::saveConfig()
|
|
|
|
|
{
|
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
|
|
|
|
|
|
recentAct->saveEntries( config, "RecentFiles" );
|
|
|
|
|
|
|
|
|
@ -204,7 +204,7 @@ void LabelEditor::saveConfig()
|
|
|
|
|
|
|
|
|
|
void LabelEditor::createCommandHistory()
|
|
|
|
|
{
|
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
|
|
|
|
|
|
if( undoAct && redoAct )
|
|
|
|
|
{
|
|
|
|
@ -439,7 +439,7 @@ void LabelEditor::setupActions()
|
|
|
|
|
{
|
|
|
|
|
TDEAction* newAct = KStdAction::openNew( this, TQ_SLOT(startEditor()), actionCollection() );
|
|
|
|
|
TDEAction* loadAct = KStdAction::open( this, TQ_SLOT(startLoadEditor()), actionCollection() );
|
|
|
|
|
TDEAction* quitAct = KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection());
|
|
|
|
|
TDEAction* quitAct = KStdAction::quit(tdeApp, TQ_SLOT(quit()), actionCollection());
|
|
|
|
|
TDEAction* closeAct = KStdAction::close( this, TQ_SLOT( close() ), actionCollection(), "close" );
|
|
|
|
|
closeLabelAct = new TDEAction( i18n("Close &Label" ), 0, 0, this, TQ_SLOT( closeLabel() ), actionCollection() );
|
|
|
|
|
|
|
|
|
@ -975,7 +975,7 @@ void LabelEditor::copy()
|
|
|
|
|
|
|
|
|
|
DocumentItemDrag* drag = new DocumentItemDrag();
|
|
|
|
|
drag->setDocumentItem( &items );
|
|
|
|
|
kapp->clipboard()->setData( drag, TQClipboard::Clipboard );
|
|
|
|
|
tdeApp->clipboard()->setData( drag, TQClipboard::Clipboard );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void LabelEditor::paste()
|
|
|
|
|