133c867d93
* add multi arc mockup * implement mutli arc * add join and smooth option * reset multiarc and arc when deactivated * create self loop if the last point is the same as the first * make join option in multiarc consistent with tape tool * fix a bug where thickness don't affect mutliarc in vector level * remove join option in geometric tool * stop mutliarc after closing shape * double click can also end multi arc * fix a bug where multiArc will produce buggy stroke * fix a bug where geometric tools is not deactivated * add multiArc shortcut * rewrite multiArc * revert changes to tvectorimage * add undo data for multiArc * Paste as Copy Command for XSheet * Remove unneeded code * Bug fix * prevent guide lines from jumping around in MultiArc * make stroke color consistent in MultiArc * remove color in MultiArc's undo data * make color consistent in MultiArc with previous version * Fix single image raster levels * fix compilation error * fix a bug where multiArc might generate bugged stroke * Remove ICONV dep (#3304) * fix crash on saving studio palette * Move to Paste Special Menu * Don't Set Fixed Width if Docking a Floating Panel Co-authored-by: pojienie <pojienie@gmail.com> Co-authored-by: rim <11380091+rozhuk-im@users.noreply.github.com> Co-authored-by: shun-iwasawa <shun.iwasawa@ghibli.jp> Co-authored-by: Rodney <rodney.baker@gmail.com>
58 lines
2.8 KiB
C++
58 lines
2.8 KiB
C++
#pragma once
|
|
|
|
#ifndef igs_resource_msg_from_err_h
|
|
#define igs_resource_msg_from_err_h
|
|
|
|
#include <string>
|
|
#include "igs_os_type.h" /* windows.h... */
|
|
|
|
#define igs_tostr(n) igs_tostr_(n) /* __LINE__ --> 56 */
|
|
#define igs_tostr_(n) #n /* 56 --> "56" */
|
|
|
|
#ifndef IGS_RESOURCE_LOG_EXPORT
|
|
#define IGS_RESOURCE_LOG_EXPORT
|
|
#endif
|
|
|
|
/*------ エラーメッセージ表示 --------------------------------------*/
|
|
namespace igs {
|
|
namespace resource {
|
|
const std::string msg_from_err_(/* 直によんではいけない */
|
|
const std::basic_string<TCHAR> &tit,
|
|
const DWORD error_message_id,
|
|
const std::basic_string<TCHAR> &file,
|
|
const std::basic_string<TCHAR> &line,
|
|
const std::basic_string<TCHAR> &funcsig,
|
|
const std::basic_string<TCHAR> &comp_type,
|
|
const std::basic_string<TCHAR> &msc_full_ver,
|
|
const std::basic_string<TCHAR> &date,
|
|
const std::basic_string<TCHAR> &time);
|
|
}
|
|
}
|
|
/*--- ::GetLastError()値からエラーメッセージを得る ---*/
|
|
#ifdef _MSC_VER
|
|
#define igs_resource_msg_from_err(tit, error_message_id) \
|
|
igs::resource::msg_from_err_( \
|
|
tit, error_message_id, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
|
|
TEXT(__FUNCSIG__), TEXT(igs_tostr_(_MSC_VER)), \
|
|
TEXT(igs_tostr(_MSC_FULL_VER)), TEXT(__DATE__), TEXT(__TIME__))
|
|
/*--- エラーメッセージを得る ---*/
|
|
#define igs_resource_msg_from_er(tit) \
|
|
igs::resource::msg_from_err_( \
|
|
tit, NO_ERROR, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
|
|
TEXT(__FUNCSIG__), TEXT(igs_tostr_(_MSC_VER)), \
|
|
TEXT(igs_tostr(_MSC_FULL_VER)), TEXT(__DATE__), TEXT(__TIME__))
|
|
#else
|
|
#define igs_resource_msg_from_err(tit, error_message_id) \
|
|
igs::resource::msg_from_err_( \
|
|
tit, error_message_id, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
|
|
TEXT(__PRETTY_FUNCTION__), TEXT(__VERSION__), TEXT(__VERSION__), \
|
|
TEXT(__DATE__), TEXT(__TIME__))
|
|
/*--- エラーメッセージを得る ---*/
|
|
#define igs_resource_msg_from_er(tit) \
|
|
igs::resource::msg_from_err_( \
|
|
tit, NO_ERROR, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
|
|
TEXT(__PRETTY_FUNCTION__), TEXT(__VERSION__), TEXT(__VERSION__), \
|
|
TEXT(__DATE__), TEXT(__TIME__))
|
|
#endif
|
|
|
|
#endif /* !igs_resource_msg_from_err_h */
|