{
__pPopup = new (std::nothrow) Popup();
__pPopupList = new (std::nothrow) ListView();
- __pPopupList->Construct(Tizen::Graphics::Rectangle(X_POPUP_LIST_RECTANGLE, Y_POPUP_LIST_RECTANGLE, W_POPUP_LIST_RECTANGLE, H_POPUP_LIST_RECTANGLE), true, false);
+ __pPopupList->Construct(Tizen::Graphics::Rectangle(X_POPUP_LIST_RECTANGLE, Y_POPUP_LIST_RECTANGLE, W_POPUP_LIST_RECTANGLE, H_POPUP_LIST_RECTANGLE), true, SCROLL_STYLE_FAST_SCROLL);
AppControlListProvider* pAppControlListProvider = new (std::nothrow) AppControlListProvider();
ConstructAppControlPopup(__pPopup, __pPopupList, pAppControlListProvider, this, this);
}
SetComment(__pMemoData->GetMemoContents(), true);
}
- __pBitmap = img.DecodeN(__pMemoData->GetMemoDrawingPath(), BITMAP_PIXEL_FORMAT_RGB565, GetClientAreaBounds().width, __pDrawingPanel->GetHeight());
- if (__pBitmap == null)
+ Dimension canvasSize;
+ canvasSize.SetSize(GetClientAreaBounds().width, __pDrawingPanel->GetHeight());
+
+ ByteBuffer* pBuffer = img.DecodeToBufferN(__pMemoData->GetMemoDrawingPath(), BITMAP_PIXEL_FORMAT_RGB565, canvasSize.width, canvasSize.height);
+ if (pBuffer != null)
+ {
+ __pBitmap = Bitmap::GetNonScaledBitmapN(*pBuffer, canvasSize, BITMAP_PIXEL_FORMAT_RGB565);
+ delete pBuffer;
+ }
+ if(__pBitmap != null)
{
- AppLogDebug("Error in DecodeN");
- return;
+ SetCanvasBitmap(*__pBitmap);
}
- SetCanvasBitmap(*__pBitmap);
}
return;
}
__drawingMode = DRAWING_MODE_CURVELINE;
}
__pButtonEraser->Invalidate(false);
+ ShowCommentControl();
}
break;
//Gets the drawing canvas size
width = GetClientAreaBounds().width;
height = __pDrawingPanel->GetHeight();
- pBitmap = img.DecodeN(__pEditMemo->GetMemoDrawingPath(), BITMAP_PIXEL_FORMAT_RGB565, width, height);
- if (pBitmap == null)
+ Dimension canvasSize;
+ canvasSize.SetSize(GetClientAreaBounds().width, __pDrawingPanel->GetHeight());
+
+ ByteBuffer* pBuffer = img.DecodeToBufferN(__pEditMemo->GetMemoDrawingPath(), BITMAP_PIXEL_FORMAT_RGB565, canvasSize.width, canvasSize.height);
+ if (pBuffer != null)
+ {
+ pBitmap = Bitmap::GetNonScaledBitmapN(*pBuffer, canvasSize, BITMAP_PIXEL_FORMAT_RGB565);
+ delete pBuffer;
+ }
+ if(pBitmap != null)
{
- AppLogDebug("Error in DecodeN");
-
- return;
+ SetCanvasBitmap(*pBitmap);
}
- SetCanvasBitmap(*pBitmap);
- //delete pBitmap;
String drawingPath = File::GetFileName(__pEditMemo->GetMemoDrawingPath());
String memoContent = __pEditMemo->GetMemoContents().GetPointer();
{
__pPopup = new (std::nothrow) Popup();
__pPopupList = new (std::nothrow) ListView();
- __pPopupList->Construct(Tizen::Graphics::Rectangle(X_POPUP_LIST_RECTANGLE, Y_POPUP_LIST_RECTANGLE, W_POPUP_LIST_RECTANGLE, H_POPUP_LIST_RECTANGLE), true, false);
+ __pPopupList->Construct(Tizen::Graphics::Rectangle(X_POPUP_LIST_RECTANGLE, Y_POPUP_LIST_RECTANGLE, W_POPUP_LIST_RECTANGLE, H_POPUP_LIST_RECTANGLE), true, SCROLL_STYLE_FAST_SCROLL);
ConstructAppControlPopup(__pPopup, __pPopupList, __pAppControlListProvider, this, this);
}
__pPopup->SetShowState(true);
__pMemoListView->SetTextColorOfEmptyList(Color::GetColor(COLOR_ID_GREY));
__pMemoListView->SetShowState(false);
SetControlAlwaysOnTop(*__pMemoListView, true); //If not set, in search mode list will be below Keypad, and it will not receive any events
-
+ __pSearchBar->SetContent(__pMemoListView);
__pContextMenu = new (std::nothrow) ContextMenu();
__pFormFooter->GetPosition(xPos, yPos);
__pContextMenu->Construct(Point(0 , yPos), CONTEXT_MENU_STYLE_LIST);
if(__pSearchBar->GetTextLength() == 0)
{
__pMemoListView->SetEnabled(false);
+ __pSearchBar->SetContentAreaVisible(false);
}
else
{
__pMemoListView->SetEnabled(true);
+ __pSearchBar->SetContentAreaVisible(true);
}
//Show the number of memo in header
SetListFormTitle(ID_SEARCH_LIST);
__pSearchBar->SetGuideText(L"");
__pFormFooter->SetShowState(false);
__pMemoListView->ScrollToItem(0);
+ __pMemoListView->SetEnabled(false);
}
__pMemoListView->Invalidate(false);
__pFormFooter->Draw();
{
__pPopup = new (std::nothrow) Popup();
__pPopupList = new (std::nothrow) ListView();
- __pPopupList->Construct(Tizen::Graphics::Rectangle(X_POPUP_LIST_RECTANGLE, Y_POPUP_LIST_RECTANGLE, W_POPUP_LIST_RECTANGLE, H_POPUP_LIST_RECTANGLE), true, false);
+ __pPopupList->Construct(Tizen::Graphics::Rectangle(X_POPUP_LIST_RECTANGLE, Y_POPUP_LIST_RECTANGLE, W_POPUP_LIST_RECTANGLE, H_POPUP_LIST_RECTANGLE), true, SCROLL_STYLE_FAST_SCROLL);
ConstructAppControlPopup(__pPopup, __pPopupList, __pAppControlListProvider, this, this);
}
__pPopup->SetShowState(true);