Prechádzať zdrojové kódy

Update todos, add paned window to markdown editor

Billy Barrow 2 rokov pred
rodič
commit
86eadf9f86
2 zmenil súbory, kde vykonal 13 pridanie a 9 odobranie
  1. 9 4
      README.md
  2. 4 5
      src/Editors/MarkdownEditor.vala

+ 9 - 4
README.md

@@ -13,14 +13,19 @@ It is still a work in progress, and also depends on some of my other home grown
 - Updating PPUB metadata.
 - Editing markdown files within a PPUB
 - Editing plain text files within a PPUB
+- Spellchecking
 
 ## What is still to come
 
-- Spellchecking
-- Ability to generate PPIX files (PPub IndeX) once LibPpub has the functionality.
-- Templated creation of files that don't already exist in a PPUB.
 - Editing PPVM (PPub Video Manifest) files.
 - Guided creation of PPVM based PPUBs (PPUB files containing video).
+- Button tooltips
+- Guided link and image insertion in the markdown editor.
+- Save as
+- Templated creation of files that don't already exist in a PPUB.
+- Easily open multuple instances
+- System file association for PPUBs
+- Ability to generate PPIX files (PPub IndeX) once LibPpub has the functionality.
 - Updating the PPUB `date` metadata automatically on all saves (currently only updates when metadata is saved).
 - Templates for selecting a publication licence and copyright messages.
-- Guided link and image insertion in the markdown editor.
+- Drag and drop files into PPUB

+ 4 - 5
src/Editors/MarkdownEditor.vala

@@ -6,7 +6,7 @@ namespace Publicate.Editors {
 
     public class MarkdownEditor : Box, EditorWidget, Savable {
 
-        private Box leaflet; // For now, a box
+        private Paned leaflet;
 
         private GtkCommonMark.MarkdownView markdown_view;
         private GtkSource.View text_view;
@@ -48,7 +48,7 @@ namespace Publicate.Editors {
             orientation = Orientation.VERTICAL;
             source_scroller = new ScrolledWindow ();
             markdown_scroller = new ScrolledWindow ();
-            leaflet = new Box(Orientation.HORIZONTAL, 0);
+            leaflet = new Paned(Orientation.HORIZONTAL);
 
             text_view = new GtkSource.View ();
             language_manager = new GtkSource.LanguageManager ();
@@ -88,9 +88,8 @@ namespace Publicate.Editors {
             source_scroller.child = text_view;
             markdown_scroller.child = markdown_view;
 
-            leaflet.append(source_scroller);
-            leaflet.append(new Separator(Orientation.VERTICAL));
-            leaflet.append (markdown_scroller);
+            leaflet.start_child = source_scroller;
+            leaflet.end_child = markdown_scroller;
 
             Gtk.Settings.get_default().notify["gtk-application-prefer-dark-theme"].connect(() => configure_tags());
             configure_tags();