Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
604 B

  1. #pragma once
  2. #include <QtGui/QtGui>
  3. #include "tier0/platform.h"
  4. #include "tier1/utlvector.h"
  5. #include "tier1/utlstring.h"
  6. class CQPolyStyle
  7. {
  8. public:
  9. CQPolyStyle();
  10. CQPolyStyle( QString fileName );
  11. void LoadFile( QString fileName );
  12. void AddToken( QString tokenName, QString tokenValue );
  13. QString GetFinalStyle();
  14. QString ProcessString( QString str );
  15. private:
  16. void IncludeFile( QString fileName );
  17. QMap<QString,QString> m_SymbolTable;
  18. QString m_FinalStyle;
  19. };
  20. inline QString PolyStyle( QString fileName )
  21. {
  22. CQPolyStyle s( fileName );
  23. return s.GetFinalStyle();
  24. }