[Panel-devel] Finished Junior Job
Nathan Humbert
humbna at cs.wwc.edu
Mon Aug 29 08:03:19 CEST 2005
Job:
Adding entries in switches for Floating where they are missing (compiler gives
warnings so they are easy to find)
Results:
Everything compiles without complaint now and kicker seems to still run
without flying to pieces. I am not sure what is the best way to submit the
code, so I am just going to attach the svn diff results. Let me know if there
is a preferred method for submitting code.
--
Nathan Humbert
humbna at cs.wwc.edu
egarim.homelinux.net
-------------- next part --------------
Index: taskbar/taskbar.cpp
===================================================================
--- taskbar/taskbar.cpp (revision 454352)
+++ taskbar/taskbar.cpp (working copy)
@@ -244,6 +244,10 @@
icon = "1rightarrow";
m_windowListButton->setMaximumWidth(BUTTON_MAX_WIDTH);
break;
+ case Plasma::Floating:
+ icon = "1float";
+ m_windowListButton->setMaximumWidth(BUTTON_MAX_WIDTH);
+ break;
}
m_windowListButton->setPixmap(kapp->iconLoader()->loadIcon(icon,
@@ -1230,6 +1234,9 @@
icon = "1rightarrow";
at = Qt::RightArrow;
break;
+ case Plasma::Floating:
+ icon = "1float";
+ at = Qt::NoArrow;
}
setArrowType(at);
Index: kicker/core/applethandle.cpp
===================================================================
--- kicker/core/applethandle.cpp (revision 454352)
+++ kicker/core/applethandle.cpp (working copy)
@@ -83,6 +83,17 @@
".##..",
".#..."};
+static const char* const float_xpm[]={
+"5 5 2 1",
+"# c black",
+". c None",
+"..#..",
+".###.",
+"#####",
+".###.",
+"..#.."};
+
+
AppletHandle::AppletHandle(AppletContainer* parent)
: QWidget(parent),
m_applet(parent),
@@ -159,6 +170,10 @@
m_layout->setDirection(QBoxLayout::LeftToRight);
m_menuButton->setPixmap(xpmPixmap(right_xpm, "right"));
break;
+ case Plasma::Floating:
+ m_layout->setDirection(QBoxLayout::LeftToRight);
+ m_menuButton->setPixmap(xpmPixmap(float_xpm, "floating"));
+ break;
}
m_layout->activate();
Index: applets/media/mediumbutton.cpp
===================================================================
--- applets/media/mediumbutton.cpp (revision 454352)
+++ applets/media/mediumbutton.cpp (working copy)
@@ -198,6 +198,9 @@
case Plasma::Left:
setPopupDirection(Plasma::Right);
break;
+ case Plasma::Floating:
+ setPopupDirection(Plasma::Floating);
+ break;
}
}
Index: applets/trash/trashbutton.cpp
===================================================================
--- applets/trash/trashbutton.cpp (revision 454352)
+++ applets/trash/trashbutton.cpp (working copy)
@@ -149,6 +149,9 @@
case Plasma::Left:
setPopupDirection(Plasma::Right);
break;
+ case Plasma::Floating:
+ setPopupDirection(Plasma::Floating);
+ break;
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20050829/ca412b4f/attachment.pgp
More information about the Panel-devel
mailing list