Changeset b599f99746558fdac9692feab4e0c140f9b9febd
- Timestamp:
- 05/18/08 22:38:45 (5 years ago)
- Author:
- Armin Burgmeier <armin@…>
- Parents:
- da28543bdf240dd0748b7d40e2f9768951e90431
- Children:
- 91aa9b20f84f5db304446175b7e75cccb2f4bab7
- git-committer:
- Armin Burgmeier <armin@arbur.net> / 2008-05-18T22:38:45Z+0200
- Message:
-
Added text plugin as a public global constant.
2008-05-18 Armin Burgmeier <armin@…>
- inc/core/Makefile.am:
- src/core/Makefile.am:
- inc/core/noteplugin.hpp:
- src/core/noteplugin.cpp: Added text plugin as a public global
constant.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rda28543
|
rb599f99
|
|
| | 1 | 2008-05-18 Armin Burgmeier <armin@0x539.de> |
| | 2 | |
| | 3 | * inc/core/Makefile.am: |
| | 4 | * src/core/Makefile.am: |
| | 5 | * inc/core/noteplugin.hpp: |
| | 6 | * src/core/noteplugin.cpp: Added text plugin as a public global |
| | 7 | constant. |
| | 8 | |
| | 9 | * src/window.cpp: Adapt. |
| | 10 | |
| 1 | 11 | 2008-05-18 Armin Burgmeier <armin@0x539.de> |
| 2 | 12 | |
-
|
rdddf956
|
rb599f99
|
|
| 7 | 7 | header.hpp \ |
| 8 | 8 | iconmanager.hpp \ |
| | 9 | noteplugin.hpp \ |
| 9 | 10 | preferences.hpp \ |
| 10 | 11 | statusbar.hpp \ |
-
|
rda28543
|
rb599f99
|
|
| 61 | 61 | Glib::ustring str(m_location_dialog->get_document_name()); |
| 62 | 62 | |
| 63 | | // TODO: Use TRUE here, but make sure browser-commands handles |
| 64 | | // the subscription correctly. |
| | 63 | // TODO: Use FileOperations here |
| 65 | 64 | InfcNodeRequest* request = infc_browser_add_note( |
| 66 | 65 | browser, &iter, str.c_str(), |
-
|
rdddf956
|
rb599f99
|
|
| 8 | 8 | header.cpp \ |
| 9 | 9 | iconmanager.cpp \ |
| 10 | | Makefile.am \ |
| | 10 | noteplugin.cpp \ |
| 11 | 11 | preferences.cpp \ |
| 12 | 12 | statusbar.cpp \ |
-
|
rdddf956
|
rb599f99
|
|
| 21 | 21 | #include "core/docwindow.hpp" |
| 22 | 22 | #include "core/iconmanager.hpp" |
| 23 | | |
| 24 | | #include <libinftextgtk/inf-text-gtk-buffer.h> |
| 25 | | #include <libinftext/inf-text-session.h> |
| 26 | | #include <libinftext/inf-text-buffer.h> |
| 27 | | |
| 28 | | namespace |
| 29 | | { |
| 30 | | InfSession* |
| 31 | | session_new(InfIo* io, InfConnectionManager* manager, |
| 32 | | InfConnectionManagerGroup* sync_group, |
| 33 | | InfXmlConnection* sync_connection) |
| 34 | | { |
| 35 | | GtkSourceBuffer* textbuffer = gtk_source_buffer_new(NULL); |
| 36 | | InfUserTable* user_table = inf_user_table_new(); |
| 37 | | InfTextGtkBuffer* buffer = |
| 38 | | inf_text_gtk_buffer_new(GTK_TEXT_BUFFER(textbuffer), |
| 39 | | user_table); |
| 40 | | InfTextSession* session = |
| 41 | | inf_text_session_new_with_user_table( |
| 42 | | manager, INF_TEXT_BUFFER(buffer), io, |
| 43 | | user_table, sync_group, sync_connection); |
| 44 | | return INF_SESSION(session); |
| 45 | | } |
| 46 | | |
| 47 | | const InfcNotePlugin TEXT_PLUGIN = |
| 48 | | { |
| 49 | | "InfText", |
| 50 | | session_new |
| 51 | | }; |
| 52 | | } |
| | 23 | #include "core/noteplugin.hpp" |
| 53 | 24 | |
| 54 | 25 | Gobby::Window::Window(const IconManager& icon_mgr, Config& config): |
| … |
… |
|
| 59 | 30 | m_folder(m_preferences, m_lang_manager), |
| 60 | 31 | m_statusbar(m_folder), |
| 61 | | m_browser(*this, &TEXT_PLUGIN, m_statusbar, m_preferences), |
| | 32 | m_browser(*this, Plugins::TEXT, m_statusbar, m_preferences), |
| 62 | 33 | m_commands_browser(m_browser, m_folder, m_statusbar, m_preferences), |
| 63 | 34 | m_commands_file(*this, m_header, m_browser, m_folder, m_statusbar) |