xref: /haiku/src/apps/icon-o-matic/shape/commands/PathCommand.cpp (revision 25a7b01d15612846f332751841da3579db313082)
1 /*
2  * Copyright 2006, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #include "PathCommand.h"
10 
11 #include <stdio.h>
12 
13 #include <Catalog.h>
14 #include <Locale.h>
15 
16 #include "VectorPath.h"
17 
18 
19 #undef B_TRANSLATION_CONTEXT
20 #define B_TRANSLATION_CONTEXT "Icon-O-Matic-PathCmd"
21 
22 
23 // constructor
PathCommand(VectorPath * path)24 PathCommand::PathCommand(VectorPath* path)
25 	: fPath(path)
26 {
27 }
28 
29 // destructor
~PathCommand()30 PathCommand::~PathCommand()
31 {
32 }
33 
34 // InitCheck
35 status_t
InitCheck()36 PathCommand::InitCheck()
37 {
38 	return fPath ? B_OK : B_NO_INIT;
39 }
40 
41 // GetName
42 void
GetName(BString & name)43 PathCommand::GetName(BString& name)
44 {
45 
46 	name << B_TRANSLATE("<modify path>");
47 }
48 
49 // _Select
50 void
_Select(const int32 * indices,int32 count,bool extend) const51 PathCommand::_Select(const int32* indices, int32 count,
52 					 bool extend) const
53 {
54 	// TODO: ...
55 }
56