00001 #ifndef _QCamUtilities_hpp_
00002 #define _QCamUtilities_hpp_
00003
00004 #include <string>
00005
00006 using namespace std;
00007
00008 class QPixmap;
00009 class QLabel;
00010 class QWidget;
00011 class QApplication;
00012
00013 class QCamUtilities {
00014 public:
00015 static QPixmap * getIcon(const char * pixmapBaseName);
00016 static void computePathName(const char * pathToBinary);
00017 static const string & basePathName() { return basePath_;}
00018 static const string getVersionId();
00019 static void setQastrocamIcon(QWidget *,bool color=false);
00020 static void basePathName(const string & path) {basePath_=path;}
00021 static void useSDL(bool val) { useSDL_=val;}
00022 static bool useSDL() {return useSDL_;}
00023 static void setLocale(QApplication & app);
00024 static void expertMode(bool val) { expertMode_=val;}
00025 static bool expertMode() { return expertMode_; }
00026 private:
00027 static string basePath_;
00028 static bool useSDL_;
00030 static bool expertMode_;
00031 };
00032
00033 #endif