fb2mode.h 1012 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. EditFind,
  23. EditReplace,
  24. CheckText,
  25. InsertImage,
  26. InsertNote,
  27. InsertLink,
  28. InsertBody,
  29. InsertTitle,
  30. InsertEpigraph,
  31. InsertSubtitle,
  32. InsertAnnot,
  33. InsertCite,
  34. InsertPoem,
  35. InsertDate,
  36. InsertStanza,
  37. InsertAuthor,
  38. InsertSection,
  39. InsertText,
  40. InsertParag,
  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. ViewFootnotes,
  54. ViewInspector,
  55. ZoomIn,
  56. ZoomOut,
  57. ZoomReset,
  58. };
  59. }
  60. class FbActionMap : public QMap<Fb::Actions, QAction*>
  61. {
  62. public:
  63. void connect();
  64. void disconnect();
  65. };
  66. #endif // FB2MODE_H