change text_editor for reducing binary size

This commit is contained in:
Jinhao
2016-11-19 04:24:03 +08:00
parent ea8a912045
commit db2cb5e8d7
5 changed files with 55 additions and 78 deletions

View File

@@ -13,7 +13,7 @@
#ifndef NANA_GUI_WIDGETS_MENU_HPP
#define NANA_GUI_WIDGETS_MENU_HPP
#include <nana/gui/widgets/widget.hpp>
#include "widget.hpp"
#include <nana/pat/cloneable.hpp>
#include <nana/push_ignore_diagnostic>

View File

@@ -12,8 +12,8 @@
#ifndef NANA_GUI_WIDGETS_MENUBAR_HPP
#define NANA_GUI_WIDGETS_MENUBAR_HPP
#include <nana/gui/widgets/widget.hpp>
#include <nana/gui/widgets/menu.hpp>
#include "widget.hpp"
#include "menu.hpp"
#include <nana/push_ignore_diagnostic>
namespace nana

View File

@@ -99,12 +99,6 @@ namespace nana{ namespace widgets
void indent(bool, std::function<std::string()> generator);
void set_event(event_interface*);
/// Determine whether the text_editor is line wrapped.
bool line_wrapped() const;
/// Set the text_editor whether it is line wrapped, it returns false if the state is not changed.
bool line_wrapped(bool);
bool load(const char*);
/// Sets the text area.
@@ -116,7 +110,12 @@ namespace nana{ namespace widgets
bool tip_string(::std::string&&);
const attributes & attr() const;
/// Returns the reference of listbox attributes
const attributes & attr() const noexcept;
/// Set the text_editor whether it is line wrapped, it returns false if the state is not changed.
bool line_wrapped(bool);
bool multi_lines(bool);
/// Enables/disables the editability of text_editor