fix typos
This commit is contained in:
@@ -61,7 +61,7 @@ namespace nana
|
||||
return new holder(value);
|
||||
}
|
||||
public:
|
||||
Value value; //representation accessable for friend of any
|
||||
Value value; //representation accessible for friend of any
|
||||
};
|
||||
public:
|
||||
//constructors and destructor
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace nana
|
||||
|
||||
namespace detail
|
||||
{
|
||||
struct drawable_impl_type; //declearation, defined in platform_spec.hpp
|
||||
struct drawable_impl_type; //declaration, defined in platform_spec.hpp
|
||||
}
|
||||
|
||||
namespace paint
|
||||
@@ -275,7 +275,7 @@ namespace nana
|
||||
yellow = 0xFFFF00,
|
||||
yellow_green = 0x9acd32,
|
||||
|
||||
//temporary defintions, these will be replaced by color schema
|
||||
//temporary definitions, these will be replaced by color schema
|
||||
button_face_shadow_start = 0xF5F4F2,
|
||||
button_face_shadow_end = 0xD5D2CA,
|
||||
button_face = 0xD4D0C8 , //,light_cyan
|
||||
@@ -425,7 +425,7 @@ namespace nana
|
||||
size(value_type width, value_type height);
|
||||
|
||||
bool empty() const; ///< true if width * height == 0
|
||||
bool is_hit(const point&) const; ///< Assume it is a rectangle at (0,0), and check whether a specified position is in the rectange.
|
||||
bool is_hit(const point&) const; ///< Assume it is a rectangle at (0,0), and check whether a specified position is in the rectangle.
|
||||
size& shift();
|
||||
|
||||
bool operator==(const size& rhs) const;
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
|
||||
#if defined(NANA_MINGW)
|
||||
#ifndef __MINGW64_VERSION_MAJOR
|
||||
//It's a knonwn issue under MinGW(except MinGW-W64)
|
||||
//It's a known issue under MinGW(except MinGW-W64)
|
||||
#define STD_NUMERIC_CONVERSIONS_NOT_SUPPORTED
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace nana
|
||||
{
|
||||
namespace utf
|
||||
{
|
||||
/// Attempt to get a pointer to a character of UTF-8 string by a specifed character index.
|
||||
/// Attempt to get a pointer to a character of UTF-8 string by a specified character index.
|
||||
/// @param text_utf8 A string encoded as UTF-8.
|
||||
/// @param pos The unicode character index.
|
||||
/// @returns A pointer to the unicode character. It returns a null if pos is out of range.
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
//
|
||||
//#define BOOST_FILESYSTEM_AVAILABLE // "Is Boost filesystem available?"
|
||||
//#define BOOST_FILESYSTEM_FORCE // "Force use of Boost filesystem if available (over ISO and nana)
|
||||
//#define STD_FILESYSTEM_FORCE // "Use of STD filesystem?(a compilation error will ocurre if not available)" OFF)
|
||||
//#define STD_FILESYSTEM_FORCE // "Use of STD filesystem?(a compilation error will occur if not available)" OFF)
|
||||
//#define NANA_FILESYSTEM_FORCE // "Force nana filesystem over ISO and boost?" OFF)
|
||||
//
|
||||
// Make sure you (cmake?) provide the following where correspond (please find the correct values):
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
*
|
||||
* @file: nana/deploy.hpp
|
||||
*
|
||||
* What follow are dependented on what defined in nana/config.hpp
|
||||
* What follows is dependent on what defined in nana/config.hpp
|
||||
*/
|
||||
|
||||
#ifndef NANA_DEPLOY_HPP
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace nana
|
||||
public:
|
||||
frameset();
|
||||
void push_back(paint::image); ///< Inserts frames at the end.
|
||||
void push_back(framebuilder fb, std::size_t length); ///< Insters a framebuilder and the number of frames that it generates.
|
||||
void push_back(framebuilder fb, std::size_t length); ///< Inserts a framebuilder and the number of frames that it generates.
|
||||
private:
|
||||
std::shared_ptr<impl> impl_;
|
||||
};
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace nana
|
||||
|
||||
A window has an appearance. This appearance can be specified when a window is being created.
|
||||
To determine the appearance of a window there is a structure named nana::appearance with
|
||||
a bool member for each feature with can be included or excluded in the "apereance" of the windows form.
|
||||
a bool member for each feature with can be included or excluded in the "appearance" of the windows form.
|
||||
But in practical development is hard to describe the style of the appearance using the struct nana::appearance.
|
||||
If a form would to be defined without min/max button and sizable border, then
|
||||
|
||||
@@ -282,7 +282,7 @@ that return a corresponding nana::appearance with predefined values.
|
||||
set_type::template count<sizable>::value);
|
||||
}
|
||||
};
|
||||
};//end namespace apper
|
||||
};//end namespace appear
|
||||
|
||||
/// Interface for caret operations
|
||||
class caret_interface
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "../traits.hpp"
|
||||
namespace nana
|
||||
{
|
||||
/// \brief Draw pictures on a widget by specifying a drawing method that will be employed everytime the widget refreshes.
|
||||
/// \brief Draw pictures on a widget by specifying a drawing method that will be employed every time the widget refreshes.
|
||||
/// By the end of drawing, the picture may not be displayed immediately.
|
||||
/// If a picture need to be displayed immediately call nana::gui::API::refresh_window() .
|
||||
class drawing
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace nana
|
||||
/// Constructor that creates a message box with a specified title and default button.
|
||||
msgbox(const ::std::string&);
|
||||
|
||||
/// Constructor that creates a message box with an owner windoow, a specified title and buttons.
|
||||
/// Constructor that creates a message box with an owner window, a specified title and buttons.
|
||||
msgbox(window, const ::std::string&, button_t = ok);
|
||||
|
||||
/// Sets an icon for informing user.
|
||||
@@ -73,7 +73,7 @@ namespace nana
|
||||
// Calls a manipulator to the stream.
|
||||
msgbox & operator<<(std::ostream& (*)(std::ostream&));
|
||||
|
||||
/// Write a streamizable object to the buffer.
|
||||
/// Write a streamable object to the buffer.
|
||||
template<typename T>
|
||||
msgbox & operator<<(const T& t)
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace nana
|
||||
std::function<void(Widget&)> init_;
|
||||
};
|
||||
|
||||
/// Layout managment - an object of class place is attached to a widget, and it automatically positions and resizes the children widgets.
|
||||
/// Layout management - an object of class place is attached to a widget, and it automatically positions and resizes the children widgets.
|
||||
class place
|
||||
: ::nana::noncopyable
|
||||
{
|
||||
|
||||
@@ -108,7 +108,7 @@ namespace API
|
||||
bool copy_transparent_background(window, paint::graphics&);
|
||||
bool copy_transparent_background(window, const rectangle& src_r, paint::graphics&, const point& dst_pt);
|
||||
|
||||
/// Refreshs a widget surface
|
||||
/// Refreshes a widget surface
|
||||
/*
|
||||
* This function will copy the drawer surface into system window after the event process finished.
|
||||
*/
|
||||
@@ -187,12 +187,12 @@ namespace API
|
||||
void exit_all(); ///< close all windows
|
||||
|
||||
/// @brief Searches whether the text contains a '&' and removes the character for transforming.
|
||||
/// If the text contains more than one '&' charachers, the others are ignored. e.g
|
||||
/// If the text contains more than one '&' characters, the others are ignored. e.g
|
||||
/// text = "&&a&bcd&ef", the result should be "&abcdef", shortkey = 'b', and pos = 2.
|
||||
std::string transform_shortkey_text
|
||||
( std::string text, ///< the text is transformed
|
||||
wchar_t &shortkey, ///< the character which indicates a short key.
|
||||
std::string::size_type *skpos ///< retrives the shortkey position if it is not a null_ptr;
|
||||
std::string::size_type *skpos ///< retrieves the shortkey position if it is not a null_ptr;
|
||||
);
|
||||
bool register_shortkey(window, unsigned long);
|
||||
void unregister_shortkey(window);
|
||||
@@ -432,7 +432,7 @@ namespace API
|
||||
*/
|
||||
window move_tabstop(window window_handle, bool forward);
|
||||
|
||||
/// Sets the window active state. If a window active state is false, the window will not obtain the focus when a mouse clicks on it wich will be obteined by take_if_has_active_false.
|
||||
/// Sets the window active state. If a window active state is false, the window will not obtain the focus when a mouse clicks on it which will be obtained by take_if_has_active_false.
|
||||
void take_active(window, bool has_active, window take_if_has_active_false);
|
||||
|
||||
/// Copies the graphics of a specified to a new graphics object.
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @file: nana/gui/timer.hpp
|
||||
* @description:
|
||||
* A timer can repeatedly call a piece of code. The duration between
|
||||
* calls is specified in milliseconds. Timer is defferent from other graphics
|
||||
* calls is specified in milliseconds. Timer is different from other graphics
|
||||
* controls, it has no graphics interface.
|
||||
*/
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace nana
|
||||
bool clear();
|
||||
|
||||
//splitstr
|
||||
//@brief: Sets the splitstr. If the parameter will be ingored if it is an empty string.
|
||||
//@brief: Sets the splitstr. If the parameter will be ignored if it is an empty string.
|
||||
void splitstr(const ::std::string&);
|
||||
const ::std::string& splitstr() const;
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace nana
|
||||
* @param window A handle to a window which is a owner of float_listbox
|
||||
* @param rectangle A position and a size of float_listbox
|
||||
* @param is_ignore_first_mouse_up The flost_listbox will be closed when a mouse_up is emitted, this parameter is specified for ignoring the first mouse_up emitting.
|
||||
* @remark The float_listbox can be popupped in a mouse_down event, the next mouse_up may be ignored, otherwise the float_listbox will be closed when user releases the button.
|
||||
* @remark The float_listbox can be pop-upped in a mouse_down event, the next mouse_up may be ignored, otherwise the float_listbox will be closed when user releases the button.
|
||||
*/
|
||||
float_listbox(window, const rectangle&, bool is_ignore_first_mouse_up);
|
||||
|
||||
|
||||
@@ -651,7 +651,7 @@ namespace nana
|
||||
};
|
||||
|
||||
|
||||
/// usefull for both absolute and display (sorted) positions
|
||||
/// useful for both absolute and display (sorted) positions
|
||||
struct index_pair
|
||||
{
|
||||
constexpr static const size_type npos = ::nana::npos;
|
||||
@@ -712,7 +712,7 @@ namespace nana
|
||||
|
||||
// struct essence
|
||||
//@brief: this struct gives many data for listbox,
|
||||
// the state of the struct does not effect on member funcions, therefore all data members are public.
|
||||
// the state of the struct does not effect on member functions, therefore all data members are public.
|
||||
struct essence;
|
||||
|
||||
class oresolver
|
||||
@@ -806,7 +806,7 @@ namespace nana
|
||||
drawer_lister_impl *drawer_lister_;
|
||||
};//end class trigger
|
||||
|
||||
/// operate with absolute positions and contain only the position but montain pointers to parts of the real items
|
||||
/// operate with absolute positions and contain only the position but maintain pointers to parts of the real items
|
||||
/// item_proxy self, it references and iterators are not invalidated by sort()
|
||||
class item_proxy
|
||||
: public ::nana::widgets::detail::widget_iterator<std::input_iterator_tag, item_proxy>
|
||||
@@ -814,11 +814,11 @@ namespace nana
|
||||
public:
|
||||
item_proxy(essence*, const index_pair& = index_pair{npos, npos});
|
||||
|
||||
/// the main porpose of this it to make obvious that item_proxy operate with absolute positions, and dont get moved during sort()
|
||||
/// the main purpose of this it to make obvious that item_proxy operate with absolute positions, and don't get moved during sort()
|
||||
static item_proxy from_display(essence *, const index_pair &relative) ;
|
||||
item_proxy from_display(const index_pair &relative) const;
|
||||
|
||||
/// posible use: last_selected_display = last_selected.to_display().item; use with caution, it get invalidated after a sort()
|
||||
/// possible use: last_selected_display = last_selected.to_display().item; use with caution, it get invalidated after a sort()
|
||||
index_pair to_display() const;
|
||||
|
||||
/// Determines whether the item is displayed on the screen
|
||||
@@ -837,9 +837,9 @@ namespace nana
|
||||
/// Determines whether the item is checked
|
||||
bool checked() const;
|
||||
|
||||
/// Selects/unselects the item
|
||||
/// Selects/deselects the item
|
||||
/**
|
||||
* @param sel Indicates whether to select or unselect the item
|
||||
* @param sel Indicates whether to select or deselect the item
|
||||
* @param scroll_view Indicates whether to scroll the view to the item. It is ignored if the item is displayed.
|
||||
* @return the reference of *this.
|
||||
*/
|
||||
@@ -1176,7 +1176,7 @@ namespace nana
|
||||
{
|
||||
drawerbase::listbox::cat_proxy category;
|
||||
|
||||
/// A flag that indicates whether or not to block expension/shrink of category when it is double clicking.
|
||||
/// A flag that indicates whether or not to block expansion/shrink of category when it is double clicked.
|
||||
mutable bool block_operation{ false };
|
||||
|
||||
arg_listbox_category(const drawerbase::listbox::cat_proxy&) noexcept;
|
||||
@@ -1189,7 +1189,7 @@ namespace nana
|
||||
struct listbox_events
|
||||
: public general_events
|
||||
{
|
||||
/// An envent occurs when the toggle of a listbox item is checked.
|
||||
/// An event occurs when the toggle of a listbox item is checked.
|
||||
basic_event<arg_listbox> checked;
|
||||
|
||||
/// An event occurs when a listbox item is clicked.
|
||||
@@ -1244,8 +1244,8 @@ By \a clicking on one header the list get \a reordered, first up, and then down
|
||||
|
||||
1. The resolver is used to resolute an object of the specified type into (or back from) a listbox item.
|
||||
3. nana::listbox creates the category 0 by default.
|
||||
This is an special category, becouse it is invisible, while the associated items are visible.
|
||||
The optional, user-created categories begin at index 1 and are visibles.
|
||||
This is an special category, because it is invisible, while the associated items are visible.
|
||||
The optional, user-created categories begin at index 1 and are visible.
|
||||
The member functions without the categ parameter operate the items that belong to category 0.
|
||||
4. A sort compare is used for sorting the items. It is a strict weak ordering comparer that must meet the requirement:
|
||||
Irreflexivity (comp(x, x) returns false)
|
||||
@@ -1276,15 +1276,15 @@ By \a clicking on one header the list get \a reordered, first up, and then down
|
||||
cat.at(0).value(10); //10 is custom data.
|
||||
cat.at(1).value(20); //20 is custom data.
|
||||
5. listbox is a widget_object, with template parameters drawerbase::listbox::trigger and drawerbase::listbox::scheme
|
||||
amon others.
|
||||
That means that listbox have a member trigger_ constructed first and accecible with get_drawer_trigger() and
|
||||
a member (unique pointer to) scheme_ accesible with scheme_type& scheme() created in the constructor
|
||||
among others.
|
||||
That means that listbox have a member trigger_ constructed first and accessible with get_drawer_trigger() and
|
||||
a member (unique pointer to) scheme_ accessible with scheme_type& scheme() created in the constructor
|
||||
with API::dev::make_scheme<Scheme>() which call API::detail::make_scheme(::nana::detail::scheme_factory<Scheme>())
|
||||
which call restrict::bedrock.make_scheme(static_cast<::nana::detail::scheme_factory_base&&>(factory));
|
||||
which call pi_data_->scheme.create(std::move(factory));
|
||||
which call factory.create(scheme_template(std::move(factory)));
|
||||
which call (new Scheme(static_cast<Scheme&>(other)));
|
||||
and which in create is setted with: API::dev::set_scheme(handle_, scheme_.get()); which save the scheme pointer in
|
||||
and which in create is set with: API::dev::set_scheme(handle_, scheme_.get()); which save the scheme pointer in
|
||||
the nana::detail::basic_window member pointer scheme
|
||||
\todo doc: actualize this example listbox.at(0)...
|
||||
\see nana::drawerbase::listbox::cat_proxy
|
||||
@@ -1426,7 +1426,7 @@ the nana::detail::basic_window member pointer scheme
|
||||
/// Scrolls the view to the first or last item of a specified category
|
||||
void scroll(bool to_bottom, size_type cat_pos = ::nana::npos);
|
||||
|
||||
/// Scrolls the view to show an item sepcified by absolute position at top/bottom of the listbox.
|
||||
/// Scrolls the view to show an item specified by absolute position at top/bottom of the listbox.
|
||||
void scroll(bool to_bottom, const index_pair& abs_pos);
|
||||
|
||||
/// Appends a new column with a header text and the specified width at the end, and return it position
|
||||
@@ -1532,11 +1532,11 @@ the nana::detail::basic_window member pointer scheme
|
||||
std::function<bool(const std::string&, nana::any*,
|
||||
const std::string&, nana::any*, bool reverse)> strick_ordering);
|
||||
|
||||
/// sort() and ivalidate any existing reference from display position to absolute item, that is: after sort() display offset point to different items
|
||||
/// sort() and invalidates any existing reference from display position to absolute item, that is: after sort() display offset point to different items
|
||||
void sort_col(size_type col, bool reverse = false);
|
||||
size_type sort_col() const;
|
||||
|
||||
/// potencially ivalidate any existing reference from display position to absolute item, that is: after sort() display offset point to different items
|
||||
/// potentially invalidates any existing reference from display position to absolute item, that is: after sort() display offset point to different items
|
||||
void unsort();
|
||||
bool freeze_sort(bool freeze);
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace nana
|
||||
}//end namespace menubar
|
||||
}//end namespace drawerbase
|
||||
|
||||
/// \brief A toolbar at the top of window for popuping menus.
|
||||
/// \brief A toolbar at the top of window for pop-upping menus.
|
||||
///
|
||||
/// The widget sets as shortkey the character behind the first of & in the text, for the item. e.g. "File(&F)" or "&File".
|
||||
class menubar
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace nana
|
||||
};
|
||||
}// end namespace panel
|
||||
}//end namespace drawerbase
|
||||
/// For placing other widgets, where the bool template parameter determinte if it is widget or lite_widget, which in actual use makes no difference.
|
||||
/// For placing other widgets, where the bool template parameter determines if it is widget or lite_widget, which in actual use makes no difference.
|
||||
template<bool HasBackground>
|
||||
class panel
|
||||
: public widget_object<typename std::conditional<HasBackground, category::widget_tag, category::lite_widget_tag>::type,
|
||||
|
||||
@@ -47,8 +47,8 @@ namespace nana
|
||||
};
|
||||
}
|
||||
}//end namespace drawerbase
|
||||
/// \brief A progressbar widget with two styles: know, and unknow amount value (goal).
|
||||
/// In unknow style the amount is ignored and the bar is scrolled when value change.
|
||||
/// \brief A progressbar widget with two styles: know, and unknown amount value (goal).
|
||||
/// In unknown style the amount is ignored and the bar is scrolled when value change.
|
||||
class progress
|
||||
: public widget_object<category::widget_tag, drawerbase::progress::trigger, ::nana::general_events, drawerbase::progress::scheme>
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace nana
|
||||
size_type peak; ///< the whole total
|
||||
size_type range; ///< how many is shown on a page, that is, How many to scroll after click on first or second
|
||||
size_type step; ///< how many to scroll by click in forward or backward
|
||||
size_type value; ///< current offset calculated from the very beginnig
|
||||
size_type value; ///< current offset calculated from the very beginning
|
||||
|
||||
buttons what;
|
||||
bool pressed;
|
||||
@@ -354,7 +354,7 @@ namespace nana
|
||||
/// Set the range of the widget.
|
||||
virtual void range(size_type r) = 0;
|
||||
|
||||
/// \brief Get the value (current offset calculated from the very beginnig)
|
||||
/// \brief Get the value (current offset calculated from the very beginning)
|
||||
/// @return the value.
|
||||
virtual size_type value() const = 0;
|
||||
|
||||
@@ -371,7 +371,7 @@ namespace nana
|
||||
/// @param s a value for step.
|
||||
virtual void step(size_type s) = 0;
|
||||
|
||||
/// \brief Increase/decrease values by a step (alternativelly by some number of steps).
|
||||
/// \brief Increase/decrease values by a step (alternatively by some number of steps).
|
||||
/// @param forward it determines whether increase or decrease.
|
||||
/// @return true if the value is changed.
|
||||
virtual bool make_step(bool forward, unsigned steps = 1) = 0;
|
||||
@@ -438,7 +438,7 @@ namespace nana
|
||||
return this->get_drawer_trigger().range(r);
|
||||
}
|
||||
|
||||
/// \brief Get the value (current offset calculated from the very beginnig)
|
||||
/// \brief Get the value (current offset calculated from the very beginning)
|
||||
/// @return the value.
|
||||
size_type value() const override
|
||||
{
|
||||
@@ -466,7 +466,7 @@ namespace nana
|
||||
return this->get_drawer_trigger().step(s);
|
||||
}
|
||||
|
||||
/// \brief Increase/decrease values by a step (alternativelly by some number of steps).
|
||||
/// \brief Increase/decrease values by a step (alternatively by some number of steps).
|
||||
/// @param forward it determines whether increase or decrease.
|
||||
/// @return true if the value is changed.
|
||||
bool make_step(bool forward, unsigned steps = 1) override
|
||||
@@ -486,7 +486,7 @@ namespace nana
|
||||
|
||||
/// \brief Increase/decrease values by steps as if it is scrolled through mouse wheel.
|
||||
/// @param forward it determines whether increase or decrease.
|
||||
/// @return true if the vlaue is changed.
|
||||
/// @return true if the value is changed.
|
||||
bool make_scroll(bool forward)
|
||||
{
|
||||
return this->make_step(forward, 3); // set this 3 in the metrics of the widget scheme ?
|
||||
@@ -494,7 +494,7 @@ namespace nana
|
||||
|
||||
/// \brief Increase/decrease values by a page as if it is scrolled page up.
|
||||
/// @param forward it determines whether increase or decrease.
|
||||
/// @return true if the vlaue is changed.
|
||||
/// @return true if the value is changed.
|
||||
bool make_page_scroll(bool forward)
|
||||
{
|
||||
auto const count = range() / step();
|
||||
|
||||
@@ -134,7 +134,7 @@ namespace nana
|
||||
}//end namespace drawerbase
|
||||
|
||||
|
||||
/// A slider widget wich the user can drag for tracking
|
||||
/// A slider widget which the user can drag for tracking
|
||||
class slider
|
||||
: public widget_object<category::widget_tag, drawerbase::slider::trigger, drawerbase::slider::slider_events, drawerbase::slider::scheme_impl>
|
||||
{
|
||||
|
||||
@@ -103,10 +103,10 @@ namespace nana
|
||||
std::pair<int, int> range_int() const;
|
||||
std::pair<double, double> range_double() const;
|
||||
|
||||
/// Selects/unselects the text
|
||||
/// Selects/Deselects the text
|
||||
void select(bool);
|
||||
|
||||
/// Gets the spinned value
|
||||
/// Gets the spun value
|
||||
::std::string value() const;
|
||||
void value(const ::std::string&);
|
||||
int to_int() const;
|
||||
|
||||
@@ -328,7 +328,7 @@ namespace nana
|
||||
tabbar& append(std::wstring text, window attach_wd, value_type value = {})
|
||||
{
|
||||
if (attach_wd && API::empty_window(attach_wd))
|
||||
throw std::invalid_argument("Appening a tab to a tabbar - error: tabbar.attach: invalid window handle");
|
||||
throw std::invalid_argument("Appending a tab to a tabbar - error: tabbar.attach: invalid window handle");
|
||||
|
||||
this->get_drawer_trigger().insert(::nana::npos, to_nstring(std::move(text)), std::move(value));
|
||||
if (attach_wd)
|
||||
@@ -409,7 +409,7 @@ namespace nana
|
||||
this->get_drawer_trigger().text(pos, to_nstring(str));
|
||||
}
|
||||
|
||||
std::string text(std::size_t pos) const /// Returns a title of a specified item, If pos is invalid, the method trhows a std::out_of_range object.
|
||||
std::string text(std::size_t pos) const /// Returns a title of a specified item, If pos is invalid, the method throws a std::out_of_range object.
|
||||
{
|
||||
return to_utf8(this->get_drawer_trigger().text(pos));
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ namespace nana
|
||||
bool selected() const;
|
||||
bool get_selected_points(nana::upoint &a, nana::upoint &b) const;
|
||||
|
||||
/// Selects/unselects all text.
|
||||
/// Selects/Deselects all text.
|
||||
void select(bool);
|
||||
|
||||
void select_points(nana::upoint arg_a, nana::upoint arg_b);
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace nana
|
||||
bool empty() const;
|
||||
|
||||
/// \brief Return the distance between the ROOT node and this node.
|
||||
/// @return only available when emtpy() is false.
|
||||
/// @return only available when empty() is false.
|
||||
std::size_t level() const;
|
||||
|
||||
/// Return the check state
|
||||
@@ -309,7 +309,7 @@ namespace nana
|
||||
return *this;
|
||||
}
|
||||
|
||||
// Undocumentated methods for internal use
|
||||
// Undocumented methods for internal use
|
||||
trigger::node_type * _m_node() const;
|
||||
private:
|
||||
nana::any& _m_value();
|
||||
@@ -397,7 +397,7 @@ namespace nana
|
||||
|
||||
const nana::pat::cloneable<compset_placer_interface> & placer() const;
|
||||
|
||||
/// \brief Eanble the widget to be draws automatically when it is operated.
|
||||
/// \brief Enable the widget to be draws automatically when it is operated.
|
||||
///
|
||||
/// The treebox automatically redraws after certain operations, but,
|
||||
/// under some circumstances, it is good to disable the automatic drawing mode,
|
||||
@@ -441,7 +441,7 @@ namespace nana
|
||||
/// If 'hovered' or 'expanded' are not set, it uses 'normal' state image for these 2 states.
|
||||
/// See also in [documentation](http://nanapro.org/en-us/help/widgets/treebox.htm)
|
||||
/// @param id The name of an icon scheme. If the name is not existing, it creates a new scheme for the name.
|
||||
/// @return The reference of node image scheme correspending with the specified id.
|
||||
/// @return The reference of node image scheme corresponding with the specified id.
|
||||
node_image_type& icon(const ::std::string& id);
|
||||
|
||||
void icon_erase(const ::std::string& id);
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace nana
|
||||
|
||||
#ifdef NANA_AUTOMATIC_GUI_TESTING
|
||||
|
||||
/// @brief Take control of the GUI and optionaly automaticaly tests it.
|
||||
/// @brief Take control of the GUI and optionally automatically tests it.
|
||||
///
|
||||
/// @detail It transfers to nana the program flow control, which begin pumping messages
|
||||
/// from the underlying OS, interpreting and sending it with suitable arguments
|
||||
@@ -71,10 +71,10 @@ namespace nana
|
||||
void exec(
|
||||
unsigned wait = 1, ///< for the GUI to be constructed, in seconds
|
||||
unsigned wait_end = 1, ///< for the GUI to be destructed, in seconds
|
||||
std::function<void()> = {} ///< emit events to mimics user actions and may asert results
|
||||
std::function<void()> = {} ///< emit events to mimics user actions and may assert results
|
||||
);
|
||||
|
||||
/// send a click message to this widget - useffull in GUI testing
|
||||
/// send a click message to this widget - useful in GUI testing
|
||||
void click(widget& w);
|
||||
|
||||
/// in seconds
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace nana
|
||||
|
||||
//add
|
||||
//@brief: The add operation is successful if the name does not exist.
|
||||
// it does not replace the existing object by new object, becuase this
|
||||
// it does not replace the existing object by new object, because this
|
||||
// feature is thread safe and efficiency.
|
||||
template<typename ImageProcessor, typename Tag>
|
||||
void add(Tag & tag, const std::string& name)
|
||||
|
||||
@@ -21,35 +21,35 @@
|
||||
#if defined(STD_NUMERIC_CONVERSIONS_NOT_SUPPORTED)
|
||||
namespace std
|
||||
{
|
||||
//Workaround for no implemenation of std::stoi in MinGW.
|
||||
//Workaround for no implementation of std::stoi in MinGW.
|
||||
int stoi(const std::string&, std::size_t * pos = nullptr, int base = 10);
|
||||
int stoi(const std::wstring&, std::size_t* pos = nullptr, int base = 10);
|
||||
|
||||
//Workaround for no implemenation of std::stof in MinGW.
|
||||
//Workaround for no implementation of std::stof in MinGW.
|
||||
float stof(const std::string&, std::size_t * pos = nullptr);
|
||||
float stof(const std::wstring&, std::size_t* pos = nullptr);
|
||||
|
||||
//Workaround for no implemenation of std::stod in MinGW.
|
||||
//Workaround for no implementation of std::stod in MinGW.
|
||||
double stod(const std::string&, std::size_t * pos = nullptr);
|
||||
double stod(const std::wstring&, std::size_t* pos = nullptr);
|
||||
|
||||
//Workaround for no implemenation of std::stold in MinGW.
|
||||
//Workaround for no implementation of std::stold in MinGW.
|
||||
long double stold(const std::string&, std::size_t * pos = nullptr);
|
||||
long double stold(const std::wstring&, std::size_t* pos = nullptr);
|
||||
|
||||
//Workaround for no implemenation of std::stol in MinGW.
|
||||
//Workaround for no implementation of std::stol in MinGW.
|
||||
long stol(const std::string&, std::size_t* pos = nullptr, int base = 10);
|
||||
long stol(const std::wstring&, std::size_t* pos = nullptr, int base = 10);
|
||||
|
||||
//Workaround for no implemenation of std::stoll in MinGW.
|
||||
//Workaround for no implementation of std::stoll in MinGW.
|
||||
long long stoll(const std::string&, std::size_t* pos = nullptr, int base = 10);
|
||||
long long stoll(const std::wstring&, std::size_t* pos = nullptr, int base = 10);
|
||||
|
||||
//Workaround for no implemenation of std::stoul in MinGW.
|
||||
//Workaround for no implementation of std::stoul in MinGW.
|
||||
unsigned long stoul(const std::string&, std::size_t* pos = nullptr, int base = 10);
|
||||
unsigned long stoul(const std::wstring&, std::size_t* pos = nullptr, int base = 10);
|
||||
|
||||
//Workaround for no implemenation of std::stoull in MinGW.
|
||||
//Workaround for no implementation of std::stoull in MinGW.
|
||||
unsigned long long stoull(const std::string&, std::size_t* pos = nullptr, int base = 10);
|
||||
unsigned long long stoull(const std::wstring&, std::size_t* pos = nullptr, int base = 10);
|
||||
}
|
||||
@@ -58,7 +58,7 @@ namespace std
|
||||
#ifdef STD_TO_STRING_NOT_SUPPORTED
|
||||
namespace std
|
||||
{
|
||||
//Workaround for no implemenation of std::to_string/std::to_wstring in MinGW.
|
||||
//Workaround for no implementation of std::to_string/std::to_wstring in MinGW.
|
||||
std::string to_string(long double);
|
||||
std::string to_string(double);
|
||||
std::string to_string(unsigned);
|
||||
@@ -131,7 +131,7 @@ namespace std {
|
||||
#include <string>
|
||||
namespace std
|
||||
{
|
||||
//Workaround for no implemenation of std::put_time in gcc < 5.
|
||||
//Workaround for no implementation of std::put_time in gcc < 5.
|
||||
/* std unspecified return type */
|
||||
//template< class CharT, class RTSTR >// let fail for CharT != char / wchar_t
|
||||
//RTSTR put_time(const std::tm* tmb, const CharT* fmt);
|
||||
|
||||
Reference in New Issue
Block a user