[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeartwork/kwin-styles/kstep
From: Luciano Montanaro <mikelima () virgilio ! it>
Date: 2003-09-24 13:32:45
[Download RAW message or body]
CVS commit by montanaro:
Implement borderSizes() method
M +13 -4 nextclient.cpp 1.35
M +4 -0 nextclient.h 1.17
--- kdeartwork/kwin-styles/kstep/nextclient.cpp #1.34:1.35
@@ -90,5 +90,5 @@ static inline const KDecorationOptions*
}
-static void create_pixmaps()
+static void create_pixmaps(NextClientFactory *f)
{
if(pixmaps_created)
@@ -97,5 +97,5 @@ static void create_pixmaps()
// find preferred border size
- int i = options()->preferredBorderSize();
+ int i = options()->preferredBorderSize(f);
if (i >= 0 && i <= 6) handleSize = borderSizes[i];
@@ -708,5 +708,5 @@ bool NextClient::eventFilter(QObject *o,
NextClientFactory::NextClientFactory()
{
- create_pixmaps();
+ create_pixmaps(this);
}
@@ -726,7 +726,16 @@ bool NextClientFactory::reset(unsigned l
// ModernSystem for how to do that
delete_pixmaps();
- create_pixmaps();
+ create_pixmaps(this);
// For now just return true.
return true;
+}
+
+QValueList< NextClientFactory::BorderSize >
+NextClientFactory::borderSizes(KDecorationFactory *f) const
+{
+ // the list must be sorted
+ return QValueList< BorderSize >() << BorderTiny << BorderNormal <<
+ BorderLarge << BorderVeryLarge << BorderHuge <<
+ BorderVeryHuge << BorderOversized;
}
--- kdeartwork/kwin-styles/kstep/nextclient.h #1.16:1.17
@@ -101,4 +101,8 @@ public:
virtual KDecoration *createDecoration(KDecorationBridge *);
virtual bool reset(unsigned long changed);
+
+ QValueList< NextClientFactory::BorderSize >
+ borderSizes(KDecorationFactory *f) const;
+
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic