improve inputbox

fix some inputbox issues
add a new inputbox::path class
This commit is contained in:
Jinhao
2015-02-25 01:00:27 +08:00
parent f454a965be
commit c2cb89f024
4 changed files with 164 additions and 9 deletions

View File

@@ -1,4 +1,16 @@
#include <nana/gui/filebox.hpp>
/*
* Filebox
* Nana C++ Library(http://www.nanapro.org)
* Copyright(C) 2003-2015 Jinhao(cnjinhao@hotmail.com)
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* @file: nana/gui/filebox.cpp
*/
#include <nana/gui.hpp>
#include <nana/filesystem/fs_utility.hpp>
#if defined(NANA_WINDOWS)
@@ -858,6 +870,11 @@ namespace nana
std::vector<filter> filters;
};
filebox::filebox(bool is_openmode)
: filebox(nullptr, is_openmode)
{
}
filebox::filebox(window owner, bool open)
: impl_(new implement)
{
@@ -874,11 +891,27 @@ namespace nana
#endif
}
filebox::filebox(const filebox& other)
: impl_(new implement(*other.impl_))
{}
filebox::~filebox()
{
delete impl_;
}
filebox& filebox::operator=(const filebox& other)
{
if (this != &other)
*impl_ = *other.impl_;
return *this;
}
void filebox::owner(window wd)
{
impl_->owner = wd;
}
nana::string filebox::title(nana::string s)
{
impl_->title.swap(s);