Changeset 40f94d4a045758474f9a9271472edb600ca5b459

Show
Ignore:
Timestamp:
09/07/08 20:24:21 (5 years ago)
Author:
Armin Burgmeier <armin@…>
Parents:
575ced84a12ab4a4a6eab26db761acba29e33b47
Children:
fef8f20f82dd51db6ebe46a38ba58e219e8b7185
git-committer:
Armin Burgmeier <armin@arbur.net> / 2008-09-07T20:24:21Z+0200
Message:

Set user active only for currently shown document

2008-09-07 Armin Burgmeier <armin@…>

  • inc/commands/folder-commands.hpp:
  • src/commands/folder-commands.cpp: Added FolderCommands? class, setting user status according to currently activated document in folder.
  • src/core/folder.cpp: Make sure signal_document_added is emitted before the first emission of signal_document_changed for the new document.
  • inc/commands/Makefile.am:
  • src/commands/Makefile.am: Added new files to the build.
Files:
2 added
7 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r575ced8 r40f94d4  
     12008-09-07  Armin Burgmeier  <armin@arbur.net> 
     2 
     3        * inc/commands/folder-commands.hpp: 
     4        * src/commands/folder-commands.cpp: Added FolderCommands class, 
     5        setting user status according to currently activated document in 
     6        folder. 
     7 
     8        * src/core/folder.cpp: Make sure signal_document_added is emitted 
     9        before the first emission of signal_document_changed for the new 
     10        document. 
     11 
     12        * inc/window.hpp: 
     13        * src/window.cpp: Instantiate FolderCommands. 
     14 
     15        * inc/commands/Makefile.am: 
     16        * src/commands/Makefile.am: Added new files to the build. 
     17 
    1182008-08-27  Armin Burgmeier  <armin@arbur.net> 
    219 
  • TODO

    r092ccc3 r40f94d4  
    1616   and a way to re-show the former two. 
    1717 - hue-only color selector 
     18 - Set session title as initial file name in Save As filechooser 
     19 - drag+drop-bare tabs 
    1820 
    1921These things need to be implemented in infinote, but again would be nice 
  • inc/commands/Makefile.am

    r092ccc3 r40f94d4  
    55        edit-commands.hpp \ 
    66        file-commands.hpp \ 
     7        folder-commands.hpp \ 
    78        help-commands.hpp \ 
    89        view-commands.hpp 
  • inc/window.hpp

    r092ccc3 r40f94d4  
    2525#include "commands/browser-commands.hpp" 
    2626#include "commands/browser-context-commands.hpp" 
     27#include "commands/folder-commands.hpp" 
    2728#include "commands/file-commands.hpp" 
    2829#include "commands/edit-commands.hpp" 
     
    9596        BrowserCommands m_commands_browser; 
    9697        BrowserContextCommands m_commands_browser_context; 
     98        FolderCommands m_commands_folder; 
    9799        FileCommands m_commands_file; 
    98100        EditCommands m_commands_edit; 
  • src/commands/Makefile.am

    r092ccc3 r40f94d4  
    66        edit-commands.cpp \ 
    77        file-commands.cpp \ 
     8        folder-commands.cpp \ 
    89        help-commands.cpp \ 
    910        view-commands.cpp 
  • src/core/folder.cpp

    r3bb782a9 r40f94d4  
    261261                              m_preferences, m_lang_manager)); 
    262262        window->show(); 
     263        m_signal_document_added.emit(*window); 
    263264 
    264265        TabLabel* tablabel = Gtk::manage(new TabLabel(*window, title)); 
     
    273274        record(session, title); 
    274275 
    275         m_signal_document_added.emit(*window); 
    276276        return *window; 
    277277} 
  • src/window.cpp

    r092ccc3 r40f94d4  
    3737        m_commands_browser_context(*this, m_browser, m_file_chooser, 
    3838                                   m_operations, m_preferences), 
     39        m_commands_folder(m_folder), 
    3940        m_commands_file(*this, m_header, m_browser, m_folder, m_file_chooser, 
    4041                        m_operations, m_info_storage, m_preferences),