functions.h 817 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * functions.h
  3. *
  4. * Created on: Oct 6, 2011
  5. * Author: Gapchich Vladislav
  6. */
  7. #ifndef FUNCTIONS_H_
  8. #define FUNCTIONS_H_
  9. class QString;
  10. class QChar;
  11. class QDomDocument;
  12. class QPoint;
  13. class QLine;
  14. QString getDirFromPath(
  15. const QString *aPath
  16. );
  17. QString getFilenameFromPath(
  18. const QString *aPath
  19. );
  20. int getNumFromString(
  21. QString *aString,
  22. const QString &aFirstStr,
  23. const QString &aSecondStr,
  24. bool *anOkFlag
  25. );
  26. QString alterFileName(
  27. const QString &aFilename,
  28. const QString &aSuffix
  29. );
  30. QString removePath(
  31. const QString &aFilename
  32. );
  33. QString getPathFromFilename(
  34. const QString &aFilename
  35. );
  36. void calcLineCoeff(
  37. const QPoint &p1,
  38. const QPoint &p2,
  39. int *a,
  40. int *b,
  41. int *c
  42. );
  43. int pointToLineDistance(
  44. const QLine &aLine,
  45. const QPoint &aPoint
  46. );
  47. #endif /* __FUNCTIONS_H__ */
  48. /*
  49. *
  50. */