summaryrefslogtreecommitdiffstats
path: root/twin/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'twin/utils.h')
-rw-r--r--twin/utils.h33
1 files changed, 27 insertions, 6 deletions
diff --git a/twin/utils.h b/twin/utils.h
index e8bc09a46..da2f9c2e3 100644
--- a/twin/utils.h
+++ b/twin/utils.h
@@ -108,7 +108,28 @@ enum ShadeMode
ShadeActivated // "shaded", but visible due to alt+tab to the window
};
-class Shape
+enum ActiveBorder
+ {
+ ActiveTop = 0,
+ ActiveTopRight,
+ ActiveRight,
+ ActiveBottomRight,
+ ActiveBottom,
+ ActiveBottomLeft,
+ ActiveLeft,
+ ActiveTopLeft,
+ ACTIVE_BORDER_COUNT,
+ ActiveNone
+ };
+
+enum ActiveMaximizingMode
+{
+ ActiveNoMode,
+ ActiveTilingMode,
+ ActiveMaximizeMode
+};
+
+class Shape
{
public:
static bool available() { return twin_shape_version > 0; }
@@ -126,12 +147,12 @@ class Shape
const int ShapeInput = 2;
#endif
-class Motif
+class Motif
{
public:
static void readFlags( WId w, bool& noborder, bool& resize, bool& move,
bool& minimize, bool& maximize, bool& close );
- struct MwmHints
+ struct MwmHints
{
ulong flags;
ulong functions;
@@ -155,7 +176,7 @@ class Motif
class KWinSelectionOwner
: public TDESelectionOwner
{
- Q_OBJECT
+ TQ_OBJECT
public:
KWinSelectionOwner( int screen );
protected:
@@ -227,7 +248,7 @@ KWIN_CHECK_PREDICATE( TruePredicate, cl == cl /*true, avoid warning about 'cl' *
template< typename T >
Client* findClientInList( const ClientList& list, T predicate )
{
- for ( ClientList::ConstIterator it = list.begin(); it != list.end(); ++it)
+ for ( ClientList::ConstIterator it = list.begin(); it != list.end(); ++it)
{
if ( predicate( const_cast< const Client* >( *it)))
return *it;
@@ -256,7 +277,7 @@ void checkNonExistentClients();
class ShortcutDialog
: public TDEShortcutDialog
{
- Q_OBJECT
+ TQ_OBJECT
public:
ShortcutDialog( const TDEShortcut& cut );
virtual void accept();