fb2mode.h 992 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef FB2MODE_H
  2. #define FB2MODE_H
  3. #include <QAction>
  4. #include <QMap>
  5. namespace Fb {
  6. enum Mode {
  7. Text,
  8. Head,
  9. Code,
  10. Html,
  11. };
  12. enum Actions {
  13. GoBack,
  14. GoForward,
  15. EditUndo,
  16. EditRedo,
  17. EditCut,
  18. EditCopy,
  19. EditPaste,
  20. PasteText,
  21. TextSelect,
  22. TextFind,
  23. TextReplace,
  24. InsertImage,
  25. InsertNote,
  26. InsertLink,
  27. InsertBody,
  28. InsertTitle,
  29. InsertEpigraph,
  30. InsertSubtitle,
  31. InsertAnnot,
  32. InsertCite,
  33. InsertPoem,
  34. InsertDate,
  35. InsertStanza,
  36. InsertAuthor,
  37. InsertSection,
  38. InsertText,
  39. InsertParag,
  40. InsertLine,
  41. ClearFormat,
  42. TextBold,
  43. TextItalic,
  44. TextStrike,
  45. TextSub,
  46. TextSup,
  47. TextCode,
  48. TextTitle,
  49. SectionAdd,
  50. SectionDel,
  51. ViewContents,
  52. ViewPictures,
  53. ViewInspect,
  54. ZoomIn,
  55. ZoomOut,
  56. ZoomReset,
  57. };
  58. }
  59. class FbActionMap : public QMap<Fb::Actions, QAction*>
  60. {
  61. public:
  62. void connect();
  63. void disconnect();
  64. };
  65. #endif // FB2MODE_H