瀏覽代碼

Move resource files

Kandrashin Denis 13 年之前
父節點
當前提交
b2dc5a667e
共有 69 個文件被更改,包括 79 次插入71 次删除
  1. 0 0
      3rdparty/gnome/16x16/application-exit.png
  2. 0 0
      3rdparty/gnome/16x16/document-new.png
  3. 0 0
      3rdparty/gnome/16x16/document-open.png
  4. 0 0
      3rdparty/gnome/16x16/document-properties.png
  5. 0 0
      3rdparty/gnome/16x16/document-save.png
  6. 0 0
      3rdparty/gnome/16x16/edit-copy.png
  7. 0 0
      3rdparty/gnome/16x16/edit-cut.png
  8. 0 0
      3rdparty/gnome/16x16/edit-find-replace.png
  9. 0 0
      3rdparty/gnome/16x16/edit-find.png
  10. 0 0
      3rdparty/gnome/16x16/edit-paste.png
  11. 0 0
      3rdparty/gnome/16x16/edit-redo.png
  12. 0 0
      3rdparty/gnome/16x16/edit-undo.png
  13. 0 0
      3rdparty/gnome/16x16/format-text-bold.png
  14. 0 0
      3rdparty/gnome/16x16/format-text-italic.png
  15. 0 0
      3rdparty/gnome/16x16/format-text-strikethrough.png
  16. 0 0
      3rdparty/gnome/16x16/go-down.png
  17. 0 0
      3rdparty/gnome/16x16/go-next.png
  18. 0 0
      3rdparty/gnome/16x16/go-previous.png
  19. 0 0
      3rdparty/gnome/16x16/go-up.png
  20. 0 0
      3rdparty/gnome/16x16/insert-image.png
  21. 0 0
      3rdparty/gnome/16x16/insert-link.png
  22. 0 0
      3rdparty/gnome/16x16/insert-object.png
  23. 0 0
      3rdparty/gnome/16x16/insert-text.png
  24. 0 0
      3rdparty/gnome/16x16/list-add.png
  25. 0 0
      3rdparty/gnome/16x16/list-remove.png
  26. 0 0
      3rdparty/gnome/16x16/preferences-desktop.png
  27. 0 0
      3rdparty/gnome/16x16/window-close.png
  28. 0 0
      3rdparty/gnome/16x16/zoom-in.png
  29. 0 0
      3rdparty/gnome/16x16/zoom-original.png
  30. 0 0
      3rdparty/gnome/16x16/zoom-out.png
  31. 0 0
      3rdparty/gnome/24x24/application-exit.png
  32. 0 0
      3rdparty/gnome/24x24/document-new.png
  33. 0 0
      3rdparty/gnome/24x24/document-open.png
  34. 0 0
      3rdparty/gnome/24x24/document-properties.png
  35. 0 0
      3rdparty/gnome/24x24/document-save.png
  36. 0 0
      3rdparty/gnome/24x24/edit-copy.png
  37. 0 0
      3rdparty/gnome/24x24/edit-cut.png
  38. 0 0
      3rdparty/gnome/24x24/edit-find-replace.png
  39. 0 0
      3rdparty/gnome/24x24/edit-find.png
  40. 0 0
      3rdparty/gnome/24x24/edit-paste.png
  41. 0 0
      3rdparty/gnome/24x24/edit-redo.png
  42. 0 0
      3rdparty/gnome/24x24/edit-undo.png
  43. 0 0
      3rdparty/gnome/24x24/format-text-bold.png
  44. 0 0
      3rdparty/gnome/24x24/format-text-italic.png
  45. 0 0
      3rdparty/gnome/24x24/format-text-strikethrough.png
  46. 0 0
      3rdparty/gnome/24x24/go-down.png
  47. 0 0
      3rdparty/gnome/24x24/go-next.png
  48. 0 0
      3rdparty/gnome/24x24/go-previous.png
  49. 0 0
      3rdparty/gnome/24x24/go-up.png
  50. 0 0
      3rdparty/gnome/24x24/insert-image.png
  51. 0 0
      3rdparty/gnome/24x24/insert-link.png
  52. 0 0
      3rdparty/gnome/24x24/insert-object.png
  53. 0 0
      3rdparty/gnome/24x24/insert-text.png
  54. 0 0
      3rdparty/gnome/24x24/list-add.png
  55. 0 0
      3rdparty/gnome/24x24/list-remove.png
  56. 0 0
      3rdparty/gnome/24x24/preferences-desktop.png
  57. 0 0
      3rdparty/gnome/24x24/window-close.png
  58. 0 0
      3rdparty/gnome/24x24/zoom-in.png
  59. 0 0
      3rdparty/gnome/24x24/zoom-original.png
  60. 0 0
      3rdparty/gnome/24x24/zoom-out.png
  61. 64 0
      3rdparty/gnome/gnome.qrc
  62. 8 5
      CMakeLists.txt
  63. 1 0
      fb2edit.pro
  64. 2 2
      source/fb2main.cpp
  65. 0 0
      source/res/16x16/format-text-subscript.png
  66. 0 0
      source/res/16x16/format-text-superscript.png
  67. 0 0
      source/res/24x24/format-text-subscript.png
  68. 0 0
      source/res/24x24/format-text-superscript.png
  69. 4 64
      source/res/fb2edit.qrc

+ 0 - 0
source/res/16/application-exit.png → 3rdparty/gnome/16x16/application-exit.png


+ 0 - 0
source/res/16/document-new.png → 3rdparty/gnome/16x16/document-new.png


+ 0 - 0
source/res/16/document-open.png → 3rdparty/gnome/16x16/document-open.png


+ 0 - 0
source/res/16/document-properties.png → 3rdparty/gnome/16x16/document-properties.png


+ 0 - 0
source/res/16/document-save.png → 3rdparty/gnome/16x16/document-save.png


+ 0 - 0
source/res/16/edit-copy.png → 3rdparty/gnome/16x16/edit-copy.png


+ 0 - 0
source/res/16/edit-cut.png → 3rdparty/gnome/16x16/edit-cut.png


+ 0 - 0
source/res/16/edit-find-replace.png → 3rdparty/gnome/16x16/edit-find-replace.png


+ 0 - 0
source/res/16/edit-find.png → 3rdparty/gnome/16x16/edit-find.png


+ 0 - 0
source/res/16/edit-paste.png → 3rdparty/gnome/16x16/edit-paste.png


+ 0 - 0
source/res/16/edit-redo.png → 3rdparty/gnome/16x16/edit-redo.png


+ 0 - 0
source/res/16/edit-undo.png → 3rdparty/gnome/16x16/edit-undo.png


+ 0 - 0
source/res/16/format-text-bold.png → 3rdparty/gnome/16x16/format-text-bold.png


+ 0 - 0
source/res/16/format-text-italic.png → 3rdparty/gnome/16x16/format-text-italic.png


+ 0 - 0
source/res/16/format-text-strikethrough.png → 3rdparty/gnome/16x16/format-text-strikethrough.png


+ 0 - 0
source/res/16/go-down.png → 3rdparty/gnome/16x16/go-down.png


+ 0 - 0
source/res/16/go-next.png → 3rdparty/gnome/16x16/go-next.png


+ 0 - 0
source/res/16/go-previous.png → 3rdparty/gnome/16x16/go-previous.png


+ 0 - 0
source/res/16/go-up.png → 3rdparty/gnome/16x16/go-up.png


+ 0 - 0
source/res/16/insert-image.png → 3rdparty/gnome/16x16/insert-image.png


+ 0 - 0
source/res/16/insert-link.png → 3rdparty/gnome/16x16/insert-link.png


+ 0 - 0
source/res/16/insert-object.png → 3rdparty/gnome/16x16/insert-object.png


+ 0 - 0
source/res/16/insert-text.png → 3rdparty/gnome/16x16/insert-text.png


+ 0 - 0
source/res/16/list-add.png → 3rdparty/gnome/16x16/list-add.png


+ 0 - 0
source/res/16/list-remove.png → 3rdparty/gnome/16x16/list-remove.png


+ 0 - 0
source/res/16/preferences-desktop.png → 3rdparty/gnome/16x16/preferences-desktop.png


+ 0 - 0
source/res/16/window-close.png → 3rdparty/gnome/16x16/window-close.png


+ 0 - 0
source/res/16/zoom-in.png → 3rdparty/gnome/16x16/zoom-in.png


+ 0 - 0
source/res/16/zoom-original.png → 3rdparty/gnome/16x16/zoom-original.png


+ 0 - 0
source/res/16/zoom-out.png → 3rdparty/gnome/16x16/zoom-out.png


+ 0 - 0
source/res/24/application-exit.png → 3rdparty/gnome/24x24/application-exit.png


+ 0 - 0
source/res/24/document-new.png → 3rdparty/gnome/24x24/document-new.png


+ 0 - 0
source/res/24/document-open.png → 3rdparty/gnome/24x24/document-open.png


+ 0 - 0
source/res/24/document-properties.png → 3rdparty/gnome/24x24/document-properties.png


+ 0 - 0
source/res/24/document-save.png → 3rdparty/gnome/24x24/document-save.png


+ 0 - 0
source/res/24/edit-copy.png → 3rdparty/gnome/24x24/edit-copy.png


+ 0 - 0
source/res/24/edit-cut.png → 3rdparty/gnome/24x24/edit-cut.png


+ 0 - 0
source/res/24/edit-find-replace.png → 3rdparty/gnome/24x24/edit-find-replace.png


+ 0 - 0
source/res/24/edit-find.png → 3rdparty/gnome/24x24/edit-find.png


+ 0 - 0
source/res/24/edit-paste.png → 3rdparty/gnome/24x24/edit-paste.png


+ 0 - 0
source/res/24/edit-redo.png → 3rdparty/gnome/24x24/edit-redo.png


+ 0 - 0
source/res/24/edit-undo.png → 3rdparty/gnome/24x24/edit-undo.png


+ 0 - 0
source/res/24/format-text-bold.png → 3rdparty/gnome/24x24/format-text-bold.png


+ 0 - 0
source/res/24/format-text-italic.png → 3rdparty/gnome/24x24/format-text-italic.png


+ 0 - 0
source/res/24/format-text-strikethrough.png → 3rdparty/gnome/24x24/format-text-strikethrough.png


+ 0 - 0
source/res/24/go-down.png → 3rdparty/gnome/24x24/go-down.png


+ 0 - 0
source/res/24/go-next.png → 3rdparty/gnome/24x24/go-next.png


+ 0 - 0
source/res/24/go-previous.png → 3rdparty/gnome/24x24/go-previous.png


+ 0 - 0
source/res/24/go-up.png → 3rdparty/gnome/24x24/go-up.png


+ 0 - 0
source/res/24/insert-image.png → 3rdparty/gnome/24x24/insert-image.png


+ 0 - 0
source/res/24/insert-link.png → 3rdparty/gnome/24x24/insert-link.png


+ 0 - 0
source/res/24/insert-object.png → 3rdparty/gnome/24x24/insert-object.png


+ 0 - 0
source/res/24/insert-text.png → 3rdparty/gnome/24x24/insert-text.png


+ 0 - 0
source/res/24/list-add.png → 3rdparty/gnome/24x24/list-add.png


+ 0 - 0
source/res/24/list-remove.png → 3rdparty/gnome/24x24/list-remove.png


+ 0 - 0
source/res/24/preferences-desktop.png → 3rdparty/gnome/24x24/preferences-desktop.png


+ 0 - 0
source/res/24/window-close.png → 3rdparty/gnome/24x24/window-close.png


+ 0 - 0
source/res/24/zoom-in.png → 3rdparty/gnome/24x24/zoom-in.png


+ 0 - 0
source/res/24/zoom-original.png → 3rdparty/gnome/24x24/zoom-original.png


+ 0 - 0
source/res/24/zoom-out.png → 3rdparty/gnome/24x24/zoom-out.png


+ 64 - 0
3rdparty/gnome/gnome.qrc

@@ -0,0 +1,64 @@
+<RCC>
+    <qresource prefix="/">
+        <file>16x16/application-exit.png</file>
+        <file>16x16/document-new.png</file>
+        <file>16x16/document-open.png</file>
+        <file>16x16/document-properties.png</file>
+        <file>16x16/document-save.png</file>
+        <file>16x16/edit-copy.png</file>
+        <file>16x16/edit-cut.png</file>
+        <file>16x16/edit-find.png</file>
+        <file>16x16/edit-find-replace.png</file>
+        <file>16x16/edit-paste.png</file>
+        <file>16x16/edit-redo.png</file>
+        <file>16x16/edit-undo.png</file>
+        <file>16x16/format-text-bold.png</file>
+        <file>16x16/format-text-italic.png</file>
+        <file>16x16/format-text-strikethrough.png</file>
+        <file>16x16/go-down.png</file>
+        <file>16x16/go-next.png</file>
+        <file>16x16/go-previous.png</file>
+        <file>16x16/go-up.png</file>
+        <file>16x16/insert-image.png</file>
+        <file>16x16/insert-link.png</file>
+        <file>16x16/insert-object.png</file>
+        <file>16x16/insert-text.png</file>
+        <file>16x16/list-add.png</file>
+        <file>16x16/list-remove.png</file>
+        <file>16x16/preferences-desktop.png</file>
+        <file>16x16/window-close.png</file>
+        <file>16x16/zoom-in.png</file>
+        <file>16x16/zoom-original.png</file>
+        <file>16x16/zoom-out.png</file>
+        <file>24x24/application-exit.png</file>
+        <file>24x24/document-new.png</file>
+        <file>24x24/document-open.png</file>
+        <file>24x24/document-properties.png</file>
+        <file>24x24/document-save.png</file>
+        <file>24x24/edit-copy.png</file>
+        <file>24x24/edit-cut.png</file>
+        <file>24x24/edit-find.png</file>
+        <file>24x24/edit-find-replace.png</file>
+        <file>24x24/edit-paste.png</file>
+        <file>24x24/edit-redo.png</file>
+        <file>24x24/edit-undo.png</file>
+        <file>24x24/format-text-bold.png</file>
+        <file>24x24/format-text-italic.png</file>
+        <file>24x24/format-text-strikethrough.png</file>
+        <file>24x24/go-down.png</file>
+        <file>24x24/go-next.png</file>
+        <file>24x24/go-previous.png</file>
+        <file>24x24/go-up.png</file>
+        <file>24x24/insert-image.png</file>
+        <file>24x24/insert-link.png</file>
+        <file>24x24/insert-object.png</file>
+        <file>24x24/insert-text.png</file>
+        <file>24x24/list-add.png</file>
+        <file>24x24/list-remove.png</file>
+        <file>24x24/preferences-desktop.png</file>
+        <file>24x24/window-close.png</file>
+        <file>24x24/zoom-in.png</file>
+        <file>24x24/zoom-original.png</file>
+        <file>24x24/zoom-out.png</file>
+    </qresource>
+</RCC>

+ 8 - 5
CMakeLists.txt

@@ -24,8 +24,12 @@ ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
 file( GLOB FB2_HEAD source/*.h       )
 file( GLOB FB2_SRCS source/*.cpp     )
 file( GLOB FB2_UIS  source/*.ui      )
-file( GLOB FB2_RES  source/res/*.qrc )
-file( GLOB FB2_TS   source/ts/*.ts   )
+file( GLOB FB2_TSS  source/ts/*.ts   )
+
+set(FB2_RES
+    3rdparty/gnome/gnome.qrc
+    source/res/fb2edit.qrc
+)
 
 set(CMAKE_IN_SOURCE_BUILD TRUE)
 
@@ -35,10 +39,9 @@ include(${QT_USE_FILE})
 qt4_wrap_ui(UI_HEADERS ${FB2_UIS})
 qt4_wrap_cpp(MOC_SRCS ${FB2_HEAD})
 qt4_add_resources(RCC_SRCS ${FB2_RES})
-qt4_create_translation(QM_FILES ${FB2_TS})
-#QT4_CREATE_TRANSLATION(LangSrcs ${Lang_files})
+qt4_create_translation(QMS_FILES ${FB2_TSS})
 include_directories(${CMAKE_BINARY_DIR} ${QSCINTILLA_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIRS})
-add_executable(fb2edit ${FB2_SRCS} ${FB2_HEAD} ${MOC_SRCS} ${RCC_SRCS} ${QM_FILES})
+add_executable(fb2edit ${FB2_SRCS} ${FB2_HEAD} ${MOC_SRCS} ${RCC_SRCS} ${QMS_FILES})
 target_link_libraries(fb2edit ${QT_LIBRARIES} ${QSCINTILLA_LIBRARIES} ${LIBXML2_LIBRARIES})
 
 set(LINUX_DESKTOP_FILE desktop/fb2edit.desktop)

+ 1 - 0
fb2edit.pro

@@ -21,6 +21,7 @@ SOURCES = \
     source/fb2xml2.cpp
 
 RESOURCES = \
+    3rdparty/gnome/gnome.qrc \
     source/res/fb2edit.qrc
 
 TARGET = fb2edit

+ 2 - 2
source/fb2main.cpp

@@ -201,8 +201,8 @@ void Fb2MainWindow::documentWasModified()
 QIcon Fb2MainWindow::icon(const QString &name)
 {
     QIcon icon;
-    icon.addFile(QString(":/24/%1.png").arg(name), QSize(24,24));
-    icon.addFile(QString(":/16/%1.png").arg(name), QSize(16,16));
+    icon.addFile(QString(":/24x24/%1.png").arg(name), QSize(24,24));
+    icon.addFile(QString(":/16x24/%1.png").arg(name), QSize(16,16));
     return QIcon::fromTheme(name, icon);
 }
 

+ 0 - 0
source/res/16/format-text-subscript.png → source/res/16x16/format-text-subscript.png


+ 0 - 0
source/res/16/format-text-superscript.png → source/res/16x16/format-text-superscript.png


+ 0 - 0
source/res/24/format-text-subscript.png → source/res/24x24/format-text-subscript.png


+ 0 - 0
source/res/24/format-text-superscript.png → source/res/24x24/format-text-superscript.png


+ 4 - 64
source/res/fb2edit.qrc

@@ -1,69 +1,9 @@
 <RCC>
     <qresource prefix="/">
-        <file>16/application-exit.png</file>
-        <file>16/document-new.png</file>
-        <file>16/document-open.png</file>
-        <file>16/document-properties.png</file>
-        <file>16/document-save.png</file>
-        <file>16/edit-copy.png</file>
-        <file>16/edit-cut.png</file>
-        <file>16/edit-find.png</file>
-        <file>16/edit-find-replace.png</file>
-        <file>16/edit-paste.png</file>
-        <file>16/edit-redo.png</file>
-        <file>16/edit-undo.png</file>
-        <file>16/format-text-bold.png</file>
-        <file>16/format-text-italic.png</file>
-        <file>16/format-text-strikethrough.png</file>
-        <file>16/format-text-subscript.png</file>
-        <file>16/format-text-superscript.png</file>
-        <file>16/go-down.png</file>
-        <file>16/go-next.png</file>
-        <file>16/go-previous.png</file>
-        <file>16/go-up.png</file>
-        <file>16/insert-image.png</file>
-        <file>16/insert-link.png</file>
-        <file>16/insert-object.png</file>
-        <file>16/insert-text.png</file>
-        <file>16/list-add.png</file>
-        <file>16/list-remove.png</file>
-        <file>16/preferences-desktop.png</file>
-        <file>16/window-close.png</file>
-        <file>16/zoom-in.png</file>
-        <file>16/zoom-original.png</file>
-        <file>16/zoom-out.png</file>
-        <file>24/application-exit.png</file>
-        <file>24/document-new.png</file>
-        <file>24/document-open.png</file>
-        <file>24/document-properties.png</file>
-        <file>24/document-save.png</file>
-        <file>24/edit-copy.png</file>
-        <file>24/edit-cut.png</file>
-        <file>24/edit-find.png</file>
-        <file>24/edit-find-replace.png</file>
-        <file>24/edit-paste.png</file>
-        <file>24/edit-redo.png</file>
-        <file>24/edit-undo.png</file>
-        <file>24/format-text-bold.png</file>
-        <file>24/format-text-italic.png</file>
-        <file>24/format-text-strikethrough.png</file>
-        <file>24/format-text-subscript.png</file>
-        <file>24/format-text-superscript.png</file>
-        <file>24/go-down.png</file>
-        <file>24/go-next.png</file>
-        <file>24/go-previous.png</file>
-        <file>24/go-up.png</file>
-        <file>24/insert-image.png</file>
-        <file>24/insert-link.png</file>
-        <file>24/insert-object.png</file>
-        <file>24/insert-text.png</file>
-        <file>24/list-add.png</file>
-        <file>24/list-remove.png</file>
-        <file>24/preferences-desktop.png</file>
-        <file>24/window-close.png</file>
-        <file>24/zoom-in.png</file>
-        <file>24/zoom-original.png</file>
-        <file>24/zoom-out.png</file>
+        <file>16x16/format-text-subscript.png</file>
+        <file>16x16/format-text-superscript.png</file>
+        <file>24x24/format-text-subscript.png</file>
+        <file>24x24/format-text-superscript.png</file>
         <file>blank.fb2</file>
         <file>style.css</file>
         <file alias="ts/ru.qm">../ts/ru.qm</file>