* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
#include <Ecore.h>
-#include <utilX.h>
#include <aul.h>
-#include "i18n.h"
+#include "dbg.h"
+#include <AppCommon.h>
#include "define.h"
#include "common.h"
+#include "i18n.h"
#include "Info.h"
-#include "CtxPopup.h"
#include "SortCtxPopup.h"
+#define BTN_ID "BTN_ID"
+
const char *sorttext[] = {
N_("Title A-Z"),
N_("Title Z-A"),
- N_("Date ↓"),
- N_("Date ↑"),
- N_("Size ↓"),
- N_("Size ↑"),
+ N_("Date ↓ "),
+ N_("Date ↑ "),
+ N_("Size ↓ "),
+ N_("Size ↑ "),
};
const char *sortbtnids[] = {
void CSortCtxPopup::t_OnConfiguration(void)
{
- t_SetList(sorttext, ARRAY_SIZE(sorttext), (int)CInfo::SortType(), CCtxPopup::TOPBTN_SORT, sortbtnids, FBR_PART_SORT_POPUP);
+ t_SetList(sorttext, ARRAY_SIZE(sorttext), (int)CInfo::SortType(),
+ CContextPopup::TOPBTN_SORT, sortbtnids,
+ POSITION_SORT_POPUP_X, POSITION_SORT_POPUP_Y,
+ NULL,
+ FBR_STYLE_HOVER_ENTRY, FBR_STYLE_HOVER_ENTRY, FBR_STYLE_HOVER_ENTRY);
}
void CSortCtxPopup::t_OnBtnClicked(Evas_Object* obj, void* ev)
return;
int index = -1;
- const char *id = (const char*)evas_object_data_get(obj, FBR_BTN_ID);
+ const char *id = (const char*)evas_object_data_get(obj, BTN_ID);
if (!id)
return;
return;
CInfo::SetSortType(index);
- CCtxPopup::t_OnBtnClicked(obj, ev);
+ CContextPopup::t_OnBtnClicked(obj, ev);
Destroy(); //_destroy_ctxpopup(bd);
}