platform_edit_number.hpp
Go to the documentation of this file.
00001 /* 00002 Copyright 2005-2007 Adobe Systems Incorporated 00003 Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt 00004 or a copy at http://stlab.adobe.com/licenses.html) 00005 */ 00006 00007 /****************************************************************************************************/ 00008 00009 #ifndef ADOBE_WIDGET_EDIT_NUMBER_EDGE_HPP 00010 #define ADOBE_WIDGET_EDIT_NUMBER_EDGE_HPP 00011 00012 /****************************************************************************************************/ 00013 00014 #include <adobe/future/widgets/headers/macintosh_mouse_wheel_handler.hpp> 00015 #include <adobe/future/widgets/headers/platform_label.hpp> 00016 00017 /****************************************************************************************************/ 00018 00019 namespace adobe { 00020 00021 /****************************************************************************************************/ 00022 00023 struct edit_number_t; 00024 00025 /****************************************************************************************************/ 00026 00027 struct edit_number_platform_data_t 00028 { 00029 explicit edit_number_platform_data_t(edit_number_t* edit_number) : 00030 control_m(edit_number) 00031 { } 00032 00033 edit_number_platform_data_t(const edit_number_platform_data_t& rhs) : 00034 control_m(rhs.control_m) 00035 // wheel_handler_m not shareable 00036 { } 00037 00038 edit_number_platform_data_t& operator= (const edit_number_platform_data_t& rhs) 00039 { 00040 control_m = rhs.control_m; 00041 // wheel_handler_m not shareable 00042 00043 return *this; 00044 } 00045 00046 void initialize(); 00047 00048 private: 00049 void wheel(long delta, bool extra); 00050 void label_subevent(label_subevent_t type); 00051 void scrubby(double new_value); 00052 00053 edit_number_t* control_m; 00054 mouse_wheel_handler_t wheel_handler_m; 00055 }; 00056 00057 /****************************************************************************************************/ 00058 00059 } // namespace adobe 00060 00061 /****************************************************************************************************/ 00062 00063 // ADOBE_WIDGET_EDIT_NUMBER_EDGE_HPP 00064 #endif 00065 00066 /****************************************************************************************************/ |