summaryrefslogtreecommitdiffstats
path: root/src/mxcl.library.h
blob: 57eca2ca1b48d5ff8abaf3c35c6a9ad9eb199f14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// (C) 2005 Max Howell ([email protected])
// See COPYING file for licensing information

#ifndef MXCL_LIBRARY_H
#define MXCL_LIBRARY_H


namespace mxcl
{
   /// Allocate on stack, wait cursor will be shown during existance
   struct WaitCursor
   {
      WaitCursor();
     ~WaitCursor();
   };
}


/// almost always negates the need to #include <tdelocale.h> in implementations
#include <ntqstring.h>
TQString i18n( const char *text );


/// very useful for TQStringLists
#define foreach( x ) \
   for( TQStringList::ConstIterator it = x.constBegin(), end = x.constEnd(); it != end; ++it )

#endif