Merge "fix klocwork issue" into tizen_2.2
[platform/framework/native/uifw.git] / inc / FUiCtrlProgressPopup.h
index 65adbb6..482823a 100644 (file)
@@ -9,7 +9,7 @@
 //     http://www.apache.org/licenses/LICENSE-2.0/
 //
 // Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an ”AS IS” BASIS,
+// distributed under the License is distributed on an "AS IS" BASIS,
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
@@ -60,6 +60,7 @@ namespace Tizen { namespace Ui { namespace Controls
 class ProgressPopupSample
        : public Tizen::Ui::Controls::Form
        , public Tizen::Ui::IProgressPopupEventListener
+       , public Tizen::Ui::IActionEventListener
 {
 public:
        ProgressPopupSample(void);
@@ -119,9 +120,10 @@ ProgressPopupSample::OnInitializing(void)
 
        // Creates an instance of Button to open the ProgressPopup.
        Button* pButtonProgressPopup = new Button();
-       pButtonProgressPopup->Construct(Rectangle(10, 10, 250, 60), L"Open ProgressPopup");
+       pButtonProgressPopup->Construct(Rectangle(50, 50, 350, 100), L"Open ProgressPopup");
        pButtonProgressPopup->SetActionId(ID_BUTTON_PROGRESSPOPUP);
        pButtonProgressPopup->AddActionEventListener(*this);
+       AddControl(pButtonProgressPopup);
 
        return r;
 }