Bring filenew, fileopen, fileprint, filequickprint, filesave, filesaveas, fileclose, editclear, editcopy, editcut, editdelete, editpaste, folder_new, and gohome icons into XDG compliance

pull/1/head
Timothy Pearson 10 years ago
parent ffd6b5f842
commit 50e3d450c5

@ -244,7 +244,7 @@ void TopLevel::setupMenuBar()
actionCollection() );
actPrint = KStdAction::print( TQT_TQOBJECT(this), TQT_SLOT( print() ), actionCollection() );
KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() );
actAdd = new TDEAction( i18n( "A&dd..." ), "filenew", TDEShortcut(), TQT_TQOBJECT(this),
actAdd = new TDEAction( i18n( "A&dd..." ), "document-new", TDEShortcut(), TQT_TQOBJECT(this),
TQT_SLOT( faxAdd() ), actionCollection(), "file_add_fax" );
actRecent->setMaxItems( 5 );

@ -54,7 +54,7 @@ ImageSelectLine::ImageSelectLine( TQWidget *parent, const TQString& text )
(void) new TQLabel( text, this );
m_urlCombo = new KURLComboBox( KURLComboBox::Files, this );
m_buttFileSelect = new TQPushButton( this );
m_buttFileSelect->setPixmap( SmallIcon( "fileopen" ) );
m_buttFileSelect->setPixmap( SmallIcon( "document-open" ) );
m_urlCombo->setMaxItems(5);

@ -200,7 +200,7 @@ actionCollection());
TQT_TQOBJECT(this), TQT_SLOT( slMirrorBoth() ),
actionCollection(), "mirrorBoth" );
(void) new TDEAction(i18n("Open Image in &Graphic Application..."), "fileopen", CTRL+Key_G,
(void) new TDEAction(i18n("Open Image in &Graphic Application..."), "document-open", CTRL+Key_G,
TQT_TQOBJECT(m_view), TQT_SLOT( slOpenCurrInGraphApp() ),
actionCollection(), "openInGraphApp" );
@ -220,12 +220,12 @@ actionCollection());
m_view->connectViewerAction( act );
/* Gallery actions */
act = new TDEAction(i18n("&Create Folder..."), "folder_new", 0,
act = new TDEAction(i18n("&Create Folder..."), "folder-new", 0,
TQT_TQOBJECT(m_view->gallery()),TQT_SLOT( slotCreateFolder() ),
actionCollection(), "foldernew" );
m_view->connectGalleryAction( act );
act = new TDEAction(i18n("&Save Image..."), "filesave", 0,
act = new TDEAction(i18n("&Save Image..."), "document-save", 0,
TQT_TQOBJECT(m_view->gallery()),TQT_SLOT( slotExportFile() ),
actionCollection(), "saveImage" );
m_view->connectGalleryAction( act );
@ -240,7 +240,7 @@ actionCollection());
actionCollection(), "deleteImage" );
m_view->connectGalleryAction( act );
act = new TDEAction(i18n("&Unload Image"), "fileclose", 0,
act = new TDEAction(i18n("&Unload Image"), "window-close", 0,
TQT_TQOBJECT(m_view->gallery()),TQT_SLOT( slotUnloadItems() ),
actionCollection(), "unloadImage" );
m_view->connectGalleryAction( act );
@ -265,7 +265,7 @@ actionCollection());
actionCollection(), "enable_msgs");
m_saveOCRTextAction = new TDEAction( i18n("Save OCR Res&ult Text"), "filesaveas", CTRL+Key_U,
m_saveOCRTextAction = new TDEAction( i18n("Save OCR Res&ult Text"), "document-save-as", CTRL+Key_U,
m_view, TQT_SLOT(slSaveOCRResult()),
actionCollection(), "saveOCRResult");
}

@ -351,7 +351,7 @@ void KookaPreferences::setupSaveFormatPage( )
{
konf->setGroup( OP_FILE_GROUP );
TQFrame *page = addPage( i18n("Image Saving"), i18n("Configure Image Save Assistant" ),
BarIcon("filesave", TDEIcon::SizeMedium ) );
BarIcon("document-save", TDEIcon::SizeMedium ) );
TQVBoxLayout *top = new TQVBoxLayout( page, 0, spacingHint() );
/* Skip the format asking if a format entry exists */

@ -599,7 +599,7 @@ void ScanPackager::loadImageForItem( KFileTreeViewItem *item )
}
prevItem = subImgItem;
subImgItem->setPixmap( 0, loader->loadIcon( "editcopy", TDEIcon::Small ));
subImgItem->setPixmap( 0, loader->loadIcon( "edit-copy", TDEIcon::Small ));
subImgItem->setText( 0, i18n("Sub-image %1").arg( i ) );
KookaImage *subImgImg = new KookaImage( i, img );
subImgImg->setFileItem( newKfi );

@ -954,7 +954,7 @@ void Part::slotShowMenu(const KPDFPage *page, const TQPoint &point)
//Albert says: I have not ported this as i don't see it does anything
if ( d->mouseOnRect ) // and rect->objectType() == ObjectRect::Image ...
{
m_popup->insertItem( SmallIcon("filesave"), i18n("Save Image..."), 4 );
m_popup->insertItem( SmallIcon("document-save"), i18n("Save Image..."), 4 );
m_popup->setItemEnabled( 4, false );
}*/

@ -1125,7 +1125,7 @@ void PageView::contentsMouseReleaseEvent( TQMouseEvent * e )
if ( !selectedText.isEmpty() )
{
menu.insertTitle( i18n( "Text (1 character)", "Text (%n characters)", selectedText.length() ) );
menu.insertItem( SmallIcon("editcopy"), i18n( "Copy to Clipboard" ), 1 );
menu.insertItem( SmallIcon("edit-copy"), i18n( "Copy to Clipboard" ), 1 );
if ( !d->document->isAllowed( KPDFDocument::AllowCopy ) )
menu.setItemEnabled( 1, false );
if ( KpdfSettings::useKTTSD() )
@ -1133,7 +1133,7 @@ void PageView::contentsMouseReleaseEvent( TQMouseEvent * e )
}
menu.insertTitle( i18n( "Image (%1 by %2 pixels)" ).arg( selectionRect.width() ).arg( selectionRect.height() ) );
menu.insertItem( SmallIcon("image"), i18n( "Copy to Clipboard" ), 3 );
menu.insertItem( SmallIcon("filesave"), i18n( "Save to File..." ), 4 );
menu.insertItem( SmallIcon("document-save"), i18n( "Save to File..." ), 4 );
int choice = menu.exec( e->globalPos() );
// IMAGE operation choosen
if ( choice > 2 )

@ -70,7 +70,7 @@ void PMBumpMapEdit::createTopWidgets( )
lbl = new TQLabel( i18n( "File name:" ), this );
m_pImageFileNameEdit = new TQLineEdit( this );
m_pImageFileNameBrowse = new TQPushButton( this );
m_pImageFileNameBrowse->setPixmap( SmallIcon( "fileopen" ) );
m_pImageFileNameBrowse->setPixmap( SmallIcon( "document-open" ) );
hl->addWidget( lbl );
hl->addWidget( m_pImageFileNameEdit );
hl->addWidget( m_pImageFileNameBrowse );

@ -59,7 +59,7 @@ void PMHeightFieldEdit::createTopWidgets( )
m_pFileName = new TQLineEdit( this );
hl->addWidget( m_pFileName );
m_pChooseFileName = new TQPushButton( this );
m_pChooseFileName->setPixmap( SmallIcon( "fileopen" ) );
m_pChooseFileName->setPixmap( SmallIcon( "document-open" ) );
hl->addWidget( m_pChooseFileName );
hl = new TQHBoxLayout( topLayout( ) );

@ -70,7 +70,7 @@ void PMImageMapEdit::createTopWidgets( )
lbl = new TQLabel( i18n( "File name:" ), this );
m_pImageFileNameEdit = new TQLineEdit( this );
m_pImageFileNameBrowse = new TQPushButton( this );
m_pImageFileNameBrowse->setPixmap( SmallIcon( "fileopen" ) );
m_pImageFileNameBrowse->setPixmap( SmallIcon( "document-open" ) );
hl->addWidget( lbl );
hl->addWidget( m_pImageFileNameEdit );
hl->addWidget( m_pImageFileNameBrowse );

@ -73,11 +73,11 @@ PMLibraryBrowserViewWidget::PMLibraryBrowserViewWidget( TQWidget* parent, const
m_pUpButton = new TQPushButton( this );
m_pUpButton->setPixmap( SmallIcon( "go-up" ) );
m_pNewSubLibraryButton = new TQPushButton( this );
m_pNewSubLibraryButton->setPixmap( SmallIcon( "folder_new" ) );
m_pNewSubLibraryButton->setPixmap( SmallIcon( "folder-new" ) );
m_pNewObjectButton = new TQPushButton( this );
m_pNewObjectButton->setPixmap( SmallIcon( "filenew" ) );
m_pNewObjectButton->setPixmap( SmallIcon( "document-new" ) );
m_pDeleteObjectButton = new TQPushButton( this );
m_pDeleteObjectButton->setPixmap( SmallIcon( "editdelete" ) );
m_pDeleteObjectButton->setPixmap( SmallIcon( "edit-delete" ) );
TQLabel* lbl = new TQLabel( i18n( "Library: " ), this );
m_pLibraryComboBox = new TQComboBox( this );
m_pLibraryComboBox->insertStringList( PMLibraryManager::theManager( )->availableLibraries( ) );

@ -70,7 +70,7 @@ void PMMaterialMapEdit::createTopWidgets( )
lbl = new TQLabel( i18n( "File name:" ), this );
m_pImageFileNameEdit = new TQLineEdit( this );
m_pImageFileNameBrowse = new TQPushButton( this );
m_pImageFileNameBrowse->setPixmap( SmallIcon( "fileopen" ) );
m_pImageFileNameBrowse->setPixmap( SmallIcon( "document-open" ) );
hl->addWidget( lbl );
hl->addWidget( m_pImageFileNameEdit );
hl->addWidget( m_pImageFileNameBrowse );

@ -123,7 +123,7 @@ void PMPatternEdit::createTopWidgets( )
m_pDensityFile = new TQLineEdit( m_pDensityWidget );
hl->addWidget( m_pDensityFile, 1 );
m_pDensityFileBrowse = new TQPushButton( m_pDensityWidget );
m_pDensityFileBrowse->setPixmap( SmallIcon( "fileopen" ) );
m_pDensityFileBrowse->setPixmap( SmallIcon( "document-open" ) );
hl->addWidget( m_pDensityFileBrowse );
hl = new TQHBoxLayout( vl );
hl->addWidget( new TQLabel( i18n( "Interpolation:" ), m_pDensityWidget ) );

@ -55,7 +55,7 @@ PMPovraySettings::PMPovraySettings( TQWidget* parent, const char* name )
m_pPovrayCommand = new TQLineEdit( gb );
hlayout->addWidget( m_pPovrayCommand );
m_pBrowsePovrayCommand = new TQPushButton( gb );
m_pBrowsePovrayCommand->setPixmap( SmallIcon( "fileopen" ) );
m_pBrowsePovrayCommand->setPixmap( SmallIcon( "document-open" ) );
connect( m_pBrowsePovrayCommand, TQT_SIGNAL( clicked( ) ),
TQT_SLOT( slotBrowsePovrayCommand( ) ) );
hlayout->addWidget( m_pBrowsePovrayCommand );
@ -69,7 +69,7 @@ PMPovraySettings::PMPovraySettings( TQWidget* parent, const char* name )
m_pDocumentationPath = new TQLineEdit( gb );
hlayout->addWidget( m_pDocumentationPath );
m_pBrowseDocumentationPath = new TQPushButton( gb );
m_pBrowseDocumentationPath->setPixmap( SmallIcon( "fileopen" ) );
m_pBrowseDocumentationPath->setPixmap( SmallIcon( "document-open" ) );
connect( m_pBrowseDocumentationPath, TQT_SIGNAL( clicked( ) ),
TQT_SLOT( slotBrowsePovrayDocumentation( ) ) );
hlayout->addWidget( m_pBrowseDocumentationPath );

@ -44,7 +44,7 @@ void PMTextEdit::createTopWidgets( )
m_pFont = new TQLineEdit( this );
hl->addWidget( m_pFont );
m_pChooseFont = new TQPushButton( this );
m_pChooseFont->setPixmap( SmallIcon( "fileopen" ) );
m_pChooseFont->setPixmap( SmallIcon( "document-open" ) );
hl->addWidget( m_pChooseFont );
hl = new TQHBoxLayout( topLayout( ) );

@ -502,7 +502,7 @@ void KView::setupActions( TQObject * partobject )
if( slotNames.contains( "print()" ) )
KStdAction::print( extension, TQT_SLOT( print() ), actionCollection(), "print" );
if( slotNames.contains( "del()" ) )
( void )new TDEAction( i18n( "&Delete" ), "editdelete", SHIFT+Key_Delete,
( void )new TDEAction( i18n( "&Delete" ), "edit-delete", SHIFT+Key_Delete,
extension, TQT_SLOT( del() ), actionCollection(), "del" );
connect( extension, TQT_SIGNAL( enableAction( const char *, bool ) ), TQT_SLOT( enableAction( const char *, bool ) ) );
}

Loading…
Cancel
Save