comparison Applications/Samples/SampleApplicationBase.h @ 295:b04b13810540 am-2

unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
author am@osimis.io
date Tue, 04 Sep 2018 15:09:42 +0200
parents 8c8da145fefa
children be2660b6e40a
comparison
equal deleted inserted replaced
294:faccc4b07b92 295:b04b13810540
11 * 11 *
12 * This program is distributed in the hope that it will be useful, but 12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Affero General Public License for more details. 15 * Affero General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Affero General Public License 17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 21
32 public: 32 public:
33 virtual void Initialize(StoneApplicationContext* context, 33 virtual void Initialize(StoneApplicationContext* context,
34 IStatusBar& statusBar, 34 IStatusBar& statusBar,
35 const boost::program_options::variables_map& parameters) 35 const boost::program_options::variables_map& parameters)
36 { 36 {
37 } 37 }
38
39
40 38
41 virtual std::string GetTitle() const 39 virtual std::string GetTitle() const
42 { 40 {
43 return "Stone of Orthanc - Sample"; 41 return "Stone of Orthanc - Sample";
44 } 42 }
46 virtual void OnPushButton1Clicked() {} 44 virtual void OnPushButton1Clicked() {}
47 virtual void OnPushButton2Clicked() {} 45 virtual void OnPushButton2Clicked() {}
48 virtual void OnTool1Clicked() {} 46 virtual void OnTool1Clicked() {}
49 virtual void OnTool2Clicked() {} 47 virtual void OnTool2Clicked() {}
50 48
51 virtual void GetButtonNames(std::string& pushButton1, 49 virtual void GetButtonNames(std::string& pushButton1,
52 std::string& pushButton2, 50 std::string& pushButton2,
53 std::string& tool1, 51 std::string& tool1,
54 std::string& tool2 52 std::string& tool2
55 ) { 53 ) {
56 pushButton1 = "action1"; 54 pushButton1 = "action1";
57 pushButton2 = "action2"; 55 pushButton2 = "action2";
58 tool1 = "tool1"; 56 tool1 = "tool1";
59 tool2 = "tool2"; 57 tool2 = "tool2";
60 } 58 }