Revision 477, 479 bytes
(checked in by mido, 15 years ago)
|
panove, vite, jak jsem peclivej na upravu kodu.. snad se vam bude libit:) konfigurace je v souboru /system/astylerc
|
Rev | Line | |
---|
[468] | 1 | #include "square_mat_point.h" |
---|
| 2 | #include "base/user_info.h" |
---|
| 3 | |
---|
| 4 | using bdm::UI; |
---|
| 5 | |
---|
[477] | 6 | void square_mat_point::from_setting ( const Setting &set ) { |
---|
| 7 | UI::get ( matrix, set, "matrix" ); |
---|
| 8 | UI::get ( vector, set, "vector" ); |
---|
| 9 | UI::get ( scalar, set, "scalar" ); |
---|
[468] | 10 | } |
---|
| 11 | |
---|
[477] | 12 | void square_mat_point::to_setting ( Setting &set ) const { |
---|
| 13 | Setting &number_setting = set.add ( "scalar", Setting::TypeFloat ); |
---|
| 14 | number_setting = scalar; |
---|
[468] | 15 | |
---|
[477] | 16 | UI::save ( vector, set, "vector" ); |
---|
| 17 | UI::save ( matrix, set, "matrix" ); |
---|
[468] | 18 | } |
---|