summaryrefslogtreecommitdiffstats
path: root/src/libgui
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:08:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:08:40 -0600
commitdca4b260f029db8fbb9a33bfb2b0a2aa9a28edf1 (patch)
tree18ba70f38844c0b7b78264e28284da691c760e0f /src/libgui
parent08396682f3324c6c1266be6a084793b261ada6a4 (diff)
downloadpiklab-dca4b260f029db8fbb9a33bfb2b0a2aa9a28edf1.tar.gz
piklab-dca4b260f029db8fbb9a33bfb2b0a2aa9a28edf1.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'src/libgui')
-rw-r--r--src/libgui/config_center.cpp8
-rw-r--r--src/libgui/device_gui.cpp4
-rw-r--r--src/libgui/editor_manager.cpp18
-rw-r--r--src/libgui/likeback.cpp28
-rw-r--r--src/libgui/log_view.cpp6
-rw-r--r--src/libgui/new_dialogs.cpp4
-rw-r--r--src/libgui/project_manager_ui.cpp8
-rw-r--r--src/libgui/project_wizard.cpp4
-rw-r--r--src/libgui/toplevel.cpp12
-rw-r--r--src/libgui/toplevel_ui.cpp4
-rw-r--r--src/libgui/watch_view.cpp22
11 files changed, 59 insertions, 59 deletions
diff --git a/src/libgui/config_center.cpp b/src/libgui/config_center.cpp
index 78a0f82..bf7afc0 100644
--- a/src/libgui/config_center.cpp
+++ b/src/libgui/config_center.cpp
@@ -50,8 +50,8 @@ void GlobalConfigWidget::saveConfig()
TQPixmap GlobalConfigWidget::pixmap() const
{
- KIconLoader loader;
- return loader.loadIcon("configure", KIcon::Toolbar, KIcon::SizeMedium);
+ TDEIconLoader loader;
+ return loader.loadIcon("configure", TDEIcon::Toolbar, TDEIcon::SizeMedium);
}
//----------------------------------------------------------------------------
@@ -87,8 +87,8 @@ void StandaloneConfigWidget::saveConfig()
TQPixmap StandaloneConfigWidget::pixmap() const
{
- KIconLoader loader;
- return loader.loadIcon("configure", KIcon::Toolbar, KIcon::SizeMedium);
+ TDEIconLoader loader;
+ return loader.loadIcon("configure", TDEIcon::Toolbar, TDEIcon::SizeMedium);
}
//----------------------------------------------------------------------------
diff --git a/src/libgui/device_gui.cpp b/src/libgui/device_gui.cpp
index 550104a..a5e1a1a 100644
--- a/src/libgui/device_gui.cpp
+++ b/src/libgui/device_gui.cpp
@@ -345,8 +345,8 @@ DeviceChooser::Button::Button(bool withAuto, TQWidget *parent)
_combo = new ComboBox(withAuto, this);
connect(_combo, TQT_SIGNAL(activated(int)), TQT_SIGNAL(changed()));
hbox->addWidget(_combo);
- KIconLoader loader;
- TQIconSet iconset = loader.loadIcon("fileopen", KIcon::Toolbar);
+ TDEIconLoader loader;
+ TQIconSet iconset = loader.loadIcon("fileopen", TDEIcon::Toolbar);
KPushButton *button = new KPushButton(iconset, TQString(), this);
connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(chooseDevice()));
hbox->addWidget(button);
diff --git a/src/libgui/editor_manager.cpp b/src/libgui/editor_manager.cpp
index 2656e39..be56c63 100644
--- a/src/libgui/editor_manager.cpp
+++ b/src/libgui/editor_manager.cpp
@@ -152,10 +152,10 @@ TQString EditorManager::title(const Editor &e) const
void EditorManager::updateTitles()
{
- KIconLoader loader;
- TQPixmap def = loader.loadIcon("piklab", KIcon::Small);
- TQPixmap modified = loader.loadIcon("filesave", KIcon::Small);
- TQPixmap chip = loader.loadIcon("piklab_chip", KIcon::Small);
+ TDEIconLoader loader;
+ TQPixmap def = loader.loadIcon("piklab", TDEIcon::Small);
+ TQPixmap modified = loader.loadIcon("filesave", TDEIcon::Small);
+ TQPixmap chip = loader.loadIcon("piklab_chip", TDEIcon::Small);
TQValueList<Editor *>::iterator it = _editors.begin();
for (; it!=_editors.end(); ++it) {
static_cast<EditorTabBar *>(tabBar())->setReadOnly(indexOf(*it), (*it)->isReadOnly());
@@ -392,11 +392,11 @@ void EditorManager::contextMenu(int i, const TQPoint &p)
Editor *editor = static_cast<Editor *>(page(i));
if ( editor==0 ) return;
- KIconLoader loader;
- TQPixmap closeIcon = loader.loadIcon("fileclose", KIcon::Small);
- TQPixmap saveIcon = loader.loadIcon("filesave", KIcon::Small);
- TQPixmap saveAsIcon = loader.loadIcon("filesaveas", KIcon::Small);
- TQPixmap reloadIcon = loader.loadIcon("reload", KIcon::Small);
+ TDEIconLoader loader;
+ TQPixmap closeIcon = loader.loadIcon("fileclose", TDEIcon::Small);
+ TQPixmap saveIcon = loader.loadIcon("filesave", TDEIcon::Small);
+ TQPixmap saveAsIcon = loader.loadIcon("filesaveas", TDEIcon::Small);
+ TQPixmap reloadIcon = loader.loadIcon("reload", TDEIcon::Small);
TDEPopupMenu *popup = new TDEPopupMenu;
popup->insertTitle(title(*editor));
popup->insertItem(closeIcon, i18n("Close"), 1);
diff --git a/src/libgui/likeback.cpp b/src/libgui/likeback.cpp
index 27d0933..80519e2 100644
--- a/src/libgui/likeback.cpp
+++ b/src/libgui/likeback.cpp
@@ -57,10 +57,10 @@ LikeBack::LikeBack(Button buttons)
{
TQHBoxLayout *layout = new TQHBoxLayout(this);
- TQIconSet likeIconSet = kapp->iconLoader()->loadIconSet("likeback_like", KIcon::Small);
- TQIconSet dislikeIconSet = kapp->iconLoader()->loadIconSet("likeback_dislike", KIcon::Small);
- TQIconSet bugIconSet = kapp->iconLoader()->loadIconSet("likeback_bug", KIcon::Small);
-// TQIconSet configureIconSet = kapp->iconLoader()->loadIconSet("configure", KIcon::Small);
+ TQIconSet likeIconSet = kapp->iconLoader()->loadIconSet("likeback_like", TDEIcon::Small);
+ TQIconSet dislikeIconSet = kapp->iconLoader()->loadIconSet("likeback_dislike", TDEIcon::Small);
+ TQIconSet bugIconSet = kapp->iconLoader()->loadIconSet("likeback_bug", TDEIcon::Small);
+// TQIconSet configureIconSet = kapp->iconLoader()->loadIconSet("configure", TDEIcon::Small);
TQToolButton *m_likeButton = new TQToolButton(this, "ilike");
m_likeButton->setIconSet(likeIconSet);
@@ -84,7 +84,7 @@ LikeBack::LikeBack(Button buttons)
layout->add(m_bugButton);
m_configureButton = new TQToolButton(this, "configure");
- TQIconSet helpIconSet = kapp->iconLoader()->loadIconSet("help", KIcon::Small);
+ TQIconSet helpIconSet = kapp->iconLoader()->loadIconSet("help", TDEIcon::Small);
m_configureButton->setIconSet(helpIconSet);
m_configureButton->setTextLabel(i18n("Configure..."));
m_configureButton->setAutoRaise(true);
@@ -93,9 +93,9 @@ LikeBack::LikeBack(Button buttons)
TQPopupMenu *configureMenu = new TQPopupMenu(this);
configureMenu->insertItem(helpIconSet, i18n("What's &This?"), this , TQT_SLOT(showWhatsThisMessage()) );
- TQIconSet changeEmailIconSet = kapp->iconLoader()->loadIconSet("mail_generic", KIcon::Small);
+ TQIconSet changeEmailIconSet = kapp->iconLoader()->loadIconSet("mail_generic", TDEIcon::Small);
configureMenu->insertItem(changeEmailIconSet, i18n("&Configure Email Address..."), this , TQT_SLOT(askEMail()) );
-// TQIconSet dontHelpIconSet = kapp->iconLoader()->loadIconSet("stop", KIcon::Small);
+// TQIconSet dontHelpIconSet = kapp->iconLoader()->loadIconSet("stop", TDEIcon::Small);
// configureMenu->insertItem( dontHelpIconSet, i18n("&Do not Help Anymore"), this , TQT_SLOT(doNotHelpAnymore()) );
m_configureButton->setPopup(configureMenu);
connect( m_configureButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(openConfigurePopup()) );
@@ -164,9 +164,9 @@ bool LikeBack::userWantToParticipate()
void LikeBack::showInformationMessage()
{
- TQPixmap likeIcon = kapp->iconLoader()->loadIcon("likeback_like", KIcon::Small);
- TQPixmap dislikeIcon = kapp->iconLoader()->loadIcon("likeback_dislike", KIcon::Small);
- TQPixmap bugIcon = kapp->iconLoader()->loadIcon("likeback_bug", KIcon::Small);
+ TQPixmap likeIcon = kapp->iconLoader()->loadIcon("likeback_like", TDEIcon::Small);
+ TQPixmap dislikeIcon = kapp->iconLoader()->loadIcon("likeback_dislike", TDEIcon::Small);
+ TQPixmap bugIcon = kapp->iconLoader()->loadIcon("likeback_bug", TDEIcon::Small);
TQMimeSourceFactory::defaultFactory()->setPixmap("likeback_icon_like", likeIcon);
TQMimeSourceFactory::defaultFactory()->setPixmap("likeback_icon_dislike", dislikeIcon);
TQMimeSourceFactory::defaultFactory()->setPixmap("likeback_icon_bug", bugIcon);
@@ -526,21 +526,21 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, TQString windowName, TQS
case LikeBack::ILike:
color = TQColor("#DFFFDF");
lineColor = TQt::green;
- icon = kapp->iconLoader()->loadIcon("likeback_like", KIcon::Small);
+ icon = kapp->iconLoader()->loadIcon("likeback_like", TDEIcon::Small);
title = i18n("I like...");
please = i18n("Please briefly describe what you like.");
break;
case LikeBack::IDoNotLike:
color = TQColor("#FFDFDF");
lineColor = TQt::red;
- icon = kapp->iconLoader()->loadIcon("likeback_dislike", KIcon::Small);
+ icon = kapp->iconLoader()->loadIcon("likeback_dislike", TDEIcon::Small);
title = i18n("I do not like...");
please = i18n("Please briefly describe what you do not like.");
break;
case LikeBack::IFoundABug:
color = TQColor("#C0C0C0");
lineColor = TQt::black;
- icon = kapp->iconLoader()->loadIcon("bug", KIcon::Small);
+ icon = kapp->iconLoader()->loadIcon("bug", TDEIcon::Small);
title = i18n("I found a bug...");
please = i18n("Please briefly describe the bug you encountered.");
break;
@@ -578,7 +578,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, TQString windowName, TQS
commentLayout->setMargin(0);
commentLayout->setSpacing(KDialogBase::spacingHint());
m_comment = new TQTextEdit(coloredWidget);
- TQIconSet sendIconSet = kapp->iconLoader()->loadIconSet("mail_send", KIcon::Toolbar);
+ TQIconSet sendIconSet = kapp->iconLoader()->loadIconSet("mail_send", TDEIcon::Toolbar);
m_sendButton = new TQPushButton(sendIconSet, i18n("Send"), coloredWidget);
m_sendButton->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding);
m_sendButton->setEnabled(false);
diff --git a/src/libgui/log_view.cpp b/src/libgui/log_view.cpp
index cdb92f2..582f311 100644
--- a/src/libgui/log_view.cpp
+++ b/src/libgui/log_view.cpp
@@ -75,10 +75,10 @@ TQPopupMenu *Log::Widget::createPopupMenu(const TQPoint &pos)
{
updateDebugLevel();
_popup = TQTextEdit::createPopupMenu(pos);
- KIconLoader loader;
- TQIconSet iset = loader.loadIconSet("filesave", KIcon::Small, 0);
+ TDEIconLoader loader;
+ TQIconSet iset = loader.loadIconSet("filesave", TDEIcon::Small, 0);
_popup->insertItem(iset, "Save As...", this, TQT_SLOT(saveAs()));
- iset = loader.loadIconSet("fileclose", KIcon::Small, 0);
+ iset = loader.loadIconSet("fileclose", TDEIcon::Small, 0);
_popup->insertItem(iset, "Clear", this, TQT_SLOT(clear()));
_popup->insertSeparator();
FOR_EACH(DebugLevel, level) {
diff --git a/src/libgui/new_dialogs.cpp b/src/libgui/new_dialogs.cpp
index 71b6de7..4f4cfe3 100644
--- a/src/libgui/new_dialogs.cpp
+++ b/src/libgui/new_dialogs.cpp
@@ -34,8 +34,8 @@ NewDialog::NewDialog(const TQString &caption, TQWidget *parent)
_dir = new TQLineEdit(mainWidget());
connect(_dir, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(changed()));
_top->addMultiCellWidget(_dir, 1,1, 1,2);
- KIconLoader loader;
- TQIconSet iconset = loader.loadIcon("fileopen", KIcon::Toolbar);
+ TDEIconLoader loader;
+ TQIconSet iconset = loader.loadIcon("fileopen", TDEIcon::Toolbar);
KPushButton *button = new KPushButton(iconset, TQString(), mainWidget());
connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(browse()));
_top->addWidget(button, 1, 3);
diff --git a/src/libgui/project_manager_ui.cpp b/src/libgui/project_manager_ui.cpp
index 2a230b9..f0c6178 100644
--- a/src/libgui/project_manager_ui.cpp
+++ b/src/libgui/project_manager_ui.cpp
@@ -21,8 +21,8 @@
//----------------------------------------------------------------------------
void PopupMenu::insertItem(const TQString &icon, const TQString &label, TQObject *receiver, const char *slot)
{
- KIconLoader loader;
- TQPixmap pixmap = loader.loadIcon(icon, KIcon::Small);
+ TDEIconLoader loader;
+ TQPixmap pixmap = loader.loadIcon(icon, TDEIcon::Small);
if (receiver) TDEPopupMenu::insertItem(pixmap, label, receiver, slot, 0, _index);
else TDEPopupMenu::insertItem(pixmap, label, _index);
_index++;
@@ -121,8 +121,8 @@ void ProjectManager::FileItem::paintCell(TQPainter *p, const TQColorGroup &cg,
ProjectManager::RegisterItem::RegisterItem(HeaderItem *item)
: TDEListViewItem(item)
{
- KIconLoader loader;
- TQPixmap chip = loader.loadIcon("piklab_chip", KIcon::Small);
+ TDEIconLoader loader;
+ TQPixmap chip = loader.loadIcon("piklab_chip", TDEIcon::Small);
setPixmap(0, chip);
setText(0, i18n("Registers"));
}
diff --git a/src/libgui/project_wizard.cpp b/src/libgui/project_wizard.cpp
index 292cf3b..3fd8732 100644
--- a/src/libgui/project_wizard.cpp
+++ b/src/libgui/project_wizard.cpp
@@ -29,8 +29,8 @@
FileListItem::FileListItem(TDEListView *view)
: TDEListViewItem(view), _group(0), _copy(true)
{
- KIconLoader loader;
- _pixmap = loader.loadIcon("button_ok", KIcon::Small);
+ TDEIconLoader loader;
+ _pixmap = loader.loadIcon("button_ok", TDEIcon::Small);
}
void FileListItem::toggle()
diff --git a/src/libgui/toplevel.cpp b/src/libgui/toplevel.cpp
index 632d3d8..32e56ff 100644
--- a/src/libgui/toplevel.cpp
+++ b/src/libgui/toplevel.cpp
@@ -116,14 +116,14 @@ MainWindow::MainWindow()
setView(_mainDock);
setMainDockWidget(_mainDock);
- KIconLoader loader;
+ TDEIconLoader loader;
KDockWidget *dock = createDock("project_manager_dock_widget", PURL::icon(PURL::Project),
i18n("Project Manager"), DockPosition(KDockWidget::DockLeft, 20));
Main::_projectManager = new ProjectManager::View(dock);
connect(TQT_TQOBJECT(Main::_projectManager), TQT_SIGNAL(guiChanged()), TQT_SLOT(updateGUI()));
dock->setWidget(Main::_projectManager);
- dock = createDock("watch_view_dock_widget", loader.loadIcon("viewmag", KIcon::Small),
+ dock = createDock("watch_view_dock_widget", loader.loadIcon("viewmag", TDEIcon::Small),
i18n("Watch View"), DockPosition("project_manager_dock_widget"));
Main::_watchView = new Register::WatchView(dock);
dock->setWidget(Main::_watchView);
@@ -134,25 +134,25 @@ MainWindow::MainWindow()
connect(TQT_TQOBJECT(Main::_editorManager), TQT_SIGNAL(modified(const PURL::Url &)), TQT_TQOBJECT(Main::_projectManager), TQT_SLOT(modified(const PURL::Url &)));
connect(TQT_TQOBJECT(Main::_editorManager), TQT_SIGNAL(statusChanged(const TQString &)), _editorStatus, TQT_SLOT(setText(const TQString &)));
- dock = createDock("compile_log_dock_widget", loader.loadIcon("piklab_compile", KIcon::Small),
+ dock = createDock("compile_log_dock_widget", loader.loadIcon("piklab_compile", TDEIcon::Small),
i18n("Compile Log"), DockPosition(KDockWidget::DockBottom, 80));
Main::_compileLog = new Compile::LogWidget(dock);
Main::_compileLog->setFocusPolicy(TQ_NoFocus);
dock->setWidget(Main::_compileLog);
- dock = createDock("program_log_dock_widget", loader.loadIcon("piklab_burnchip", KIcon::Small),
+ dock = createDock("program_log_dock_widget", loader.loadIcon("piklab_burnchip", TDEIcon::Small),
i18n("Program Log"), DockPosition("compile_log_dock_widget"));
_programLog = new Log::Widget(dock, "program_log");
_programLog->setFocusPolicy(TQ_NoFocus);
dock->setWidget(_programLog);
- dock = createDock("breakpoints_dock_widget", loader.loadIcon("piklab_breakpoint_active", KIcon::Small),
+ dock = createDock("breakpoints_dock_widget", loader.loadIcon("piklab_breakpoint_active", TDEIcon::Small),
i18n("Breakpoints"), DockPosition("compile_log_dock_widget"));
Main::_breakpointsView = new Breakpoint::View(dock);
Main::_breakpointsView->setFocusPolicy(TQ_NoFocus);
dock->setWidget(Main::_breakpointsView);
- dock = createDock("console_dock_widget", loader.loadIcon("konsole", KIcon::Small),
+ dock = createDock("console_dock_widget", loader.loadIcon("konsole", TDEIcon::Small),
i18n("Konsole"), DockPosition("compile_log_dock_widget"));
Main::_consoleView = new ConsoleView(dock);
dock->setWidget(Main::_consoleView);
diff --git a/src/libgui/toplevel_ui.cpp b/src/libgui/toplevel_ui.cpp
index c4ac7c0..41f993c 100644
--- a/src/libgui/toplevel_ui.cpp
+++ b/src/libgui/toplevel_ui.cpp
@@ -67,8 +67,8 @@ MenuBarButton::MenuBarButton(const TQString &icon, TQWidget *parent)
TQFontMetrics fm(font());
int h = fm.height() + 2*style().pixelMetric(TQStyle::PM_DefaultFrameWidth, this);
setFixedHeight(h);
- KIconLoader loader;
- setIconSet(loader.loadIconSet(icon, KIcon::Small, fm.height()-2));
+ TDEIconLoader loader;
+ setIconSet(loader.loadIconSet(icon, TDEIcon::Small, fm.height()-2));
setUsesTextLabel(false);
setAutoRaise(true);
}
diff --git a/src/libgui/watch_view.cpp b/src/libgui/watch_view.cpp
index 097960d..7fd5e8d 100644
--- a/src/libgui/watch_view.cpp
+++ b/src/libgui/watch_view.cpp
@@ -46,8 +46,8 @@ void Register::RegisterListView::init(const Device::Data *data)
{
delete _root;
_root = new ListViewItemContainer(i18n("Registers"), this);
- KIconLoader loader;
- _root->setPixmap(0, loader.loadIcon("piklab_chip", KIcon::Small));
+ TDEIconLoader loader;
+ _root->setPixmap(0, loader.loadIcon("piklab_chip", TDEIcon::Small));
_root->setSelectable(false);
_root->setOpen(true);
if (data) Device::groupui(*data).fillWatchListContainer(_root, _ids);
@@ -85,16 +85,16 @@ Register::WatchedListView::WatchedListView(TQWidget *parent)
addColumn(TQString());
_root = new ListViewItemContainer(i18n("Watched"), this);
- KIconLoader loader;
- _root->setPixmap(0, loader.loadIcon("viewmag", KIcon::Small));
+ TDEIconLoader loader;
+ _root->setPixmap(0, loader.loadIcon("viewmag", TDEIcon::Small));
_root->setSelectable(false);
_root->setOpen(true);
}
TDEPopupMenu *Register::WatchedListView::appendFormatMenu(TDEPopupMenu *parent, uint offset)
{
- KIconLoader loader;
- TQPixmap icon = loader.loadIcon("fonts", KIcon::Small);
+ TDEIconLoader loader;
+ TQPixmap icon = loader.loadIcon("fonts", TDEIcon::Small);
TDEPopupMenu *popup = new TDEPopupMenu;
popup->insertTitle(i18n("Format"));
FOR_EACH(NumberBase, base) popup->insertItem(base.label(), offset + base.type());
@@ -111,8 +111,8 @@ void Register::WatchedListView::init(const Device::Data *data)
Device::groupui(*data).fillWatchListContainer(_popup, _ids);
_popup->insertSeparator();
_formatPopup = appendFormatMenu(_popup, _ids.count());
- KIconLoader loader;
- TQPixmap icon = loader.loadIcon("cancel", KIcon::Small);
+ TDEIconLoader loader;
+ TQPixmap icon = loader.loadIcon("cancel", TDEIcon::Small);
_popup->insertItem(icon, i18n("Clear"), Debugger::manager, TQT_SLOT(stopWatchAll()));
}
@@ -181,11 +181,11 @@ void Register::WatchedListView::contextMenu(TQListViewItem *item, const TQPoint
TQPopupMenu *fpop = appendFormatMenu(pop, 0);
FOR_EACH(NumberBase, base) fpop->setItemChecked(base.type(), ritem->base()==base);
pop->insertSeparator();
- KIconLoader loader;
- TQPixmap icon = loader.loadIcon("edit", KIcon::Small);
+ TDEIconLoader loader;
+ TQPixmap icon = loader.loadIcon("edit", TDEIcon::Small);
int editId = pop->insertItem(icon, i18n("Edit"));
pop->setItemEnabled(editId, Main::programmerState()==Programmer::Halted);
- icon = loader.loadIcon("cancel", KIcon::Small);
+ icon = loader.loadIcon("cancel", TDEIcon::Small);
int removeId = pop->insertItem(icon, i18n("Remove"));
int res = pop->exec(p);
if ( res==editId ) ritem->startRename();