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

r14.0.x
Timothy Pearson 10 years ago
parent c473c81cc8
commit 8b77ddccbc

@ -106,7 +106,7 @@ void PURL::BaseWidget::init()
connect(_edit, TQT_SIGNAL(textChanged(const TQString &)), TQT_SIGNAL(changed())); connect(_edit, TQT_SIGNAL(textChanged(const TQString &)), TQT_SIGNAL(changed()));
top->addWidget(_edit); top->addWidget(_edit);
TDEIconLoader loader; TDEIconLoader loader;
TQIconSet iconset = loader.loadIcon("fileopen", TDEIcon::Toolbar); TQIconSet iconset = loader.loadIcon("document-open", TDEIcon::Toolbar);
TQPushButton *button = new KPushButton(iconset, TQString(), this); TQPushButton *button = new KPushButton(iconset, TQString(), this);
connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(buttonClicked())); connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(buttonClicked()));
top->addWidget(button); top->addWidget(button);

@ -272,7 +272,7 @@ void Device::MemoryEditorGroup::updateDisplay()
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
const Device::ActionData Device::ACTION_DATA[Nb_Actions] = { const Device::ActionData Device::ACTION_DATA[Nb_Actions] = {
{ I18N_NOOP("&Clear"), "fileclose", NeedWrite }, { I18N_NOOP("&Clear"), "window-close", NeedWrite },
{ I18N_NOOP("&Zero"), 0, NeedWrite }, { I18N_NOOP("&Zero"), 0, NeedWrite },
{ I18N_NOOP("For checksum check"), 0, NeedWrite }, { I18N_NOOP("For checksum check"), 0, NeedWrite },
{ I18N_NOOP("Re&load"), "reload", SeparatorAfter | NeedModified }, { I18N_NOOP("Re&load"), "reload", SeparatorAfter | NeedModified },

@ -346,7 +346,7 @@ DeviceChooser::Button::Button(bool withAuto, TQWidget *parent)
connect(_combo, TQT_SIGNAL(activated(int)), TQT_SIGNAL(changed())); connect(_combo, TQT_SIGNAL(activated(int)), TQT_SIGNAL(changed()));
hbox->addWidget(_combo); hbox->addWidget(_combo);
TDEIconLoader loader; TDEIconLoader loader;
TQIconSet iconset = loader.loadIcon("fileopen", TDEIcon::Toolbar); TQIconSet iconset = loader.loadIcon("document-open", TDEIcon::Toolbar);
KPushButton *button = new KPushButton(iconset, TQString(), this); KPushButton *button = new KPushButton(iconset, TQString(), this);
connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(chooseDevice())); connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(chooseDevice()));
hbox->addWidget(button); hbox->addWidget(button);

@ -154,7 +154,7 @@ void EditorManager::updateTitles()
{ {
TDEIconLoader loader; TDEIconLoader loader;
TQPixmap def = loader.loadIcon("piklab", TDEIcon::Small); TQPixmap def = loader.loadIcon("piklab", TDEIcon::Small);
TQPixmap modified = loader.loadIcon("filesave", TDEIcon::Small); TQPixmap modified = loader.loadIcon("document-save", TDEIcon::Small);
TQPixmap chip = loader.loadIcon("piklab_chip", TDEIcon::Small); TQPixmap chip = loader.loadIcon("piklab_chip", TDEIcon::Small);
TQValueList<Editor *>::iterator it = _editors.begin(); TQValueList<Editor *>::iterator it = _editors.begin();
for (; it!=_editors.end(); ++it) { for (; it!=_editors.end(); ++it) {
@ -393,9 +393,9 @@ void EditorManager::contextMenu(int i, const TQPoint &p)
if ( editor==0 ) return; if ( editor==0 ) return;
TDEIconLoader loader; TDEIconLoader loader;
TQPixmap closeIcon = loader.loadIcon("fileclose", TDEIcon::Small); TQPixmap closeIcon = loader.loadIcon("window-close", TDEIcon::Small);
TQPixmap saveIcon = loader.loadIcon("filesave", TDEIcon::Small); TQPixmap saveIcon = loader.loadIcon("document-save", TDEIcon::Small);
TQPixmap saveAsIcon = loader.loadIcon("filesaveas", TDEIcon::Small); TQPixmap saveAsIcon = loader.loadIcon("document-save-as", TDEIcon::Small);
TQPixmap reloadIcon = loader.loadIcon("reload", TDEIcon::Small); TQPixmap reloadIcon = loader.loadIcon("reload", TDEIcon::Small);
TDEPopupMenu *popup = new TDEPopupMenu; TDEPopupMenu *popup = new TDEPopupMenu;
popup->insertTitle(title(*editor)); popup->insertTitle(title(*editor));

@ -76,9 +76,9 @@ TQPopupMenu *Log::Widget::createPopupMenu(const TQPoint &pos)
updateDebugLevel(); updateDebugLevel();
_popup = TQTextEdit::createPopupMenu(pos); _popup = TQTextEdit::createPopupMenu(pos);
TDEIconLoader loader; TDEIconLoader loader;
TQIconSet iset = loader.loadIconSet("filesave", TDEIcon::Small, 0); TQIconSet iset = loader.loadIconSet("document-save", TDEIcon::Small, 0);
_popup->insertItem(iset, "Save As...", this, TQT_SLOT(saveAs())); _popup->insertItem(iset, "Save As...", this, TQT_SLOT(saveAs()));
iset = loader.loadIconSet("fileclose", TDEIcon::Small, 0); iset = loader.loadIconSet("window-close", TDEIcon::Small, 0);
_popup->insertItem(iset, "Clear", this, TQT_SLOT(clear())); _popup->insertItem(iset, "Clear", this, TQT_SLOT(clear()));
_popup->insertSeparator(); _popup->insertSeparator();
FOR_EACH(DebugLevel, level) { FOR_EACH(DebugLevel, level) {

@ -35,7 +35,7 @@ NewDialog::NewDialog(const TQString &caption, TQWidget *parent)
connect(_dir, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(changed())); connect(_dir, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(changed()));
_top->addMultiCellWidget(_dir, 1,1, 1,2); _top->addMultiCellWidget(_dir, 1,1, 1,2);
TDEIconLoader loader; TDEIconLoader loader;
TQIconSet iconset = loader.loadIcon("fileopen", TDEIcon::Toolbar); TQIconSet iconset = loader.loadIcon("document-open", TDEIcon::Toolbar);
KPushButton *button = new KPushButton(iconset, TQString(), mainWidget()); KPushButton *button = new KPushButton(iconset, TQString(), mainWidget());
connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(browse())); connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(browse()));
_top->addWidget(button, 1, 3); _top->addWidget(button, 1, 3);

@ -164,7 +164,7 @@ void ProjectManager::View::contextMenu(TQListViewItem *item, const TQPoint &p, i
if ( _project==0 || Main::toolGroup().linkerScriptType()==PURL::Nb_FileTypes ) return; if ( _project==0 || Main::toolGroup().linkerScriptType()==PURL::Nb_FileTypes ) return;
pop.insertTitle(i18n("Linker Script")); pop.insertTitle(i18n("Linker Script"));
pop.insertItem("piklab_addfile", i18n("Set Custom...")); pop.insertItem("piklab_addfile", i18n("Set Custom..."));
if ( !_project->customLinkerScript().isEmpty() ) pop.insertItem("editdelete", i18n("Set Default")); if ( !_project->customLinkerScript().isEmpty() ) pop.insertItem("edit-delete", i18n("Set Default"));
switch( pop.exec(p) ) { switch( pop.exec(p) ) {
case 1: { case 1: {
PURL::Url url = PURL::getOpenUrl(":custom_linker_script", PURL::filter(Main::toolGroup().linkerScriptType()), this, i18n("Select Linker Script")); PURL::Url url = PURL::getOpenUrl(":custom_linker_script", PURL::filter(Main::toolGroup().linkerScriptType()), this, i18n("Select Linker Script"));
@ -194,7 +194,7 @@ void ProjectManager::View::contextMenu(TQListViewItem *item, const TQPoint &p, i
pop.insertItem("piklab_compile", i18n("Build Project"), TQT_TQOBJECT(&Main::toplevel()), TQT_SLOT(buildProject())); pop.insertItem("piklab_compile", i18n("Build Project"), TQT_TQOBJECT(&Main::toplevel()), TQT_SLOT(buildProject()));
pop.insertItem("trashcan_empty", i18n("Clean Project"), TQT_TQOBJECT(&Main::toplevel()), TQT_SLOT(cleanBuild())); pop.insertItem("trashcan_empty", i18n("Clean Project"), TQT_TQOBJECT(&Main::toplevel()), TQT_SLOT(cleanBuild()));
pop.insertSeparator(); pop.insertSeparator();
pop.insertItem("filenew", i18n("New Source File..."), TQT_TQOBJECT(&Main::toplevel()), TQT_SLOT(newSourceFile())); pop.insertItem("document-new", i18n("New Source File..."), TQT_TQOBJECT(&Main::toplevel()), TQT_SLOT(newSourceFile()));
pop.insertItem("piklab_addfile", i18n("Add Source Files..."), TQT_TQOBJECT(this), TQT_SLOT(insertSourceFiles())); pop.insertItem("piklab_addfile", i18n("Add Source Files..."), TQT_TQOBJECT(this), TQT_SLOT(insertSourceFiles()));
pop.insertItem("piklab_addfile", i18n("Add Object Files..."), TQT_TQOBJECT(this), TQT_SLOT(insertObjectFiles())); pop.insertItem("piklab_addfile", i18n("Add Object Files..."), TQT_TQOBJECT(this), TQT_SLOT(insertObjectFiles()));
if ( Main::currentEditor() ) pop.insertItem("piklab_addcurrentfile", i18n("Add Current File"), TQT_TQOBJECT(this), TQT_SLOT(insertCurrentFile())); if ( Main::currentEditor() ) pop.insertItem("piklab_addcurrentfile", i18n("Add Current File"), TQT_TQOBJECT(this), TQT_SLOT(insertCurrentFile()));
@ -205,7 +205,7 @@ void ProjectManager::View::contextMenu(TQListViewItem *item, const TQPoint &p, i
FileItem *fi = static_cast<FileItem *>(item); FileItem *fi = static_cast<FileItem *>(item);
if ( isExternalFile(fi->url()) ) return; if ( isExternalFile(fi->url()) ) return;
pop.insertTitle(item->text(0)); pop.insertTitle(item->text(0));
pop.insertItem("editdelete", i18n("Remove From Project")); pop.insertItem("edit-delete", i18n("Remove From Project"));
if ( pop.exec(p)==1 ) removeFile(fi->url()); if ( pop.exec(p)==1 ) removeFile(fi->url());
} else if ( item->rtti()==HeaderRtti ) { } else if ( item->rtti()==HeaderRtti ) {
if ( _project==0 ) return; if ( _project==0 ) return;
@ -215,11 +215,11 @@ void ProjectManager::View::contextMenu(TQListViewItem *item, const TQPoint &p, i
pop.exec(p); pop.exec(p);
} else if ( group==SourceGroup || group==HeaderGroup ) { } else if ( group==SourceGroup || group==HeaderGroup ) {
pop.insertTitle(i18n("Sources")); pop.insertTitle(i18n("Sources"));
pop.insertItem("filenew", i18n("New File..."), TQT_TQOBJECT(&Main::toplevel()), TQT_SLOT(newSourceFile())); pop.insertItem("document-new", i18n("New File..."), TQT_TQOBJECT(&Main::toplevel()), TQT_SLOT(newSourceFile()));
pop.insertItem("piklab_addfile", i18n("Add Source Files..."), TQT_TQOBJECT(this), TQT_SLOT(insertSourceFiles())); pop.insertItem("piklab_addfile", i18n("Add Source Files..."), TQT_TQOBJECT(this), TQT_SLOT(insertSourceFiles()));
pop.exec(p); pop.exec(p);
} else if ( group==DeviceGroup ) { } else if ( group==DeviceGroup ) {
pop.insertItem("filenew", i18n("Select Device..."), TQT_TQOBJECT(&Main::toplevel()), TQT_SLOT(showDeviceInfo())); pop.insertItem("document-new", i18n("Select Device..."), TQT_TQOBJECT(&Main::toplevel()), TQT_SLOT(showDeviceInfo()));
pop.exec(p); pop.exec(p);
} }
} }

@ -181,7 +181,7 @@ MainWindow::MainWindow()
// file actions // file actions
TDEAction *a = KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(newSourceFile()), actionCollection()); TDEAction *a = KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(newSourceFile()), actionCollection());
a->setText(i18n("&New Source File...")); a->setText(i18n("&New Source File..."));
(void)new TDEAction(i18n("New hex File..."), "filenew", 0, TQT_TQOBJECT(this), TQT_SLOT(newHexFile()), (void)new TDEAction(i18n("New hex File..."), "document-new", 0, TQT_TQOBJECT(this), TQT_SLOT(newHexFile()),
actionCollection(), "file_new_hex"); actionCollection(), "file_new_hex");
KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(openFile()), actionCollection()); KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(openFile()), actionCollection());
TDERecentFilesAction *recent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(openRecentFile(const KURL &)), actionCollection()); TDERecentFilesAction *recent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(openRecentFile(const KURL &)), actionCollection());
@ -233,7 +233,7 @@ MainWindow::MainWindow()
recent->loadEntries(kapp->config(), "recent-projects"); recent->loadEntries(kapp->config(), "recent-projects");
(void)new TDEAction(i18n("Project Options..."), "configure", 0, (void)new TDEAction(i18n("Project Options..."), "configure", 0,
TQT_TQOBJECT(this), TQT_SLOT(configureProject()), actionCollection(), "project_options"); TQT_TQOBJECT(this), TQT_SLOT(configureProject()), actionCollection(), "project_options");
(void)new TDEAction(i18n("Close Project"), "fileclose", 0, (void)new TDEAction(i18n("Close Project"), "window-close", 0,
TQT_TQOBJECT(this), TQT_SLOT(closeProject()), actionCollection(), "project_close"); TQT_TQOBJECT(this), TQT_SLOT(closeProject()), actionCollection(), "project_close");
(void)new TDEAction(i18n("Add Source File..."), "piklab_addfile", 0, (void)new TDEAction(i18n("Add Source File..."), "piklab_addfile", 0,
TQT_TQOBJECT(Main::_projectManager), TQT_SLOT(insertSourceFiles()), actionCollection(), "project_add_source_file"); TQT_TQOBJECT(Main::_projectManager), TQT_SLOT(insertSourceFiles()), actionCollection(), "project_add_source_file");

Loading…
Cancel
Save