public DATabButton(Composite parent, int style, boolean isImageTab) {
super(parent, ColorResources.TAB_NORMAL_COLOR_START,
- ColorResources.TAB_NORMAL_COLOR_END,
- ColorResources.TAB_PUSH_COLOR_START,
- ColorResources.TAB_PUSH_COLOR_END,
- ColorResources.TAB_HOVER_COLOR_START,
- ColorResources.TAB_HOVER_COLOR_END,
+ ColorResources.TAB_NORMAL_COLOR_START,
ColorResources.TAB_SELECTED_COLOR_START,
- ColorResources.TAB_SELECTED_COLOR_END);
+ ColorResources.TAB_SELECTED_COLOR_START,
+ ColorResources.TAB_NORMAL_COLOR_START,
+ ColorResources.TAB_NORMAL_COLOR_START,
+ ColorResources.TAB_SELECTED_COLOR_START,
+ ColorResources.TAB_SELECTED_COLOR_START);
if(isImageTab) {
this.setImages(ImageResources.TAB_NORMAL,
- ImageResources.TAB_PUSH,
+ ImageResources.TAB_SELECTED,
ImageResources.TAB_HOVER,
ImageResources.TAB_SELECTED);
}
tabButton.setButtonFont(FontResources.TAB_BUTTON_LARGE_FONT);
}
tabButton.setFontColors(ColorResources.TAB_NORMAL_FONT_COLOR,
- ColorResources.TAB_PUSH_FONT_COLOR,
- ColorResources.TAB_HOVER_FONT_COLOR,
+ ColorResources.TAB_SELECTED_FONT_COLOR,
+ ColorResources.TAB_NORMAL_FONT_COLOR,
ColorResources.TAB_SELECTED_FONT_COLOR);
- tabButton.setOutlineColors(ColorResources.TAB_OUTLINE_NORMAL_COLOR,
- ColorResources.TAB_OUTLINE_PUSH_COLOR,
- ColorResources.TAB_OUTLINE_HOVER_COLOR,
- ColorResources.TAB_OUTLINE_SELECTED_COLOR);
+ tabButton.setOutlineColors(ColorResources.TAB_NORMAL_COLOR_START,
+ ColorResources.TAB_SELECTED_COLOR_START,
+ ColorResources.TAB_NORMAL_COLOR_START,
+ ColorResources.TAB_SELECTED_COLOR_START);
tabButton.setRenderer(new TabButtonRenderer());
tabButton.setButtonEnabled(true);
tabButton.setBackground(ColorResources.TAB_BG_COLOR);
if (buttons.size() > 0) {
DATabButton lastbutton = buttons.get(buttons.size() - 1);
- data.left = new FormAttachment(lastbutton, 0);
+ data.left = new FormAttachment(lastbutton, 2);
if (!usingAnimation) {
data.width = tabWidth; // short
}
data.width = tabWidth;
if (leftTabIndex != -1) {
// if the tabIndex is not a first tab
- data.left = new FormAttachment(buttons.get(leftTabIndex));
+ data.left = new FormAttachment(buttons.get(leftTabIndex), 2);
} else {
// if the tabIndex is a first tab
data.left = new FormAttachment(0, 0);
} else {
button.setGradationColor(DAButton.STATE_DISABLE,
ColorResources.TAB_NORMAL_COLOR_START,
- ColorResources.TAB_NORMAL_COLOR_END);
+ ColorResources.TAB_NORMAL_COLOR_START);
button.setButtonEnabled(false);
tabAnimation(button, false);
}
int height = bounds.height;\r
\r
// Draws background.\r
- gc.setForeground(ColorResources.TITLEBAR_START_COLOR);\r
- gc.setBackground(ColorResources.TITLEBAR_END_COLOR);\r
+ gc.setForeground(ColorResources.TAB_NORMAL_COLOR_START);\r
+ gc.setBackground(ColorResources.TAB_NORMAL_COLOR_START);\r
gc.fillGradientRectangle(bounds.x, bounds.y, width, height, true);\r
\r
// Draws text.\r
protected DAChartBoardItem selectItem;
// private final static int DEFAULT_CHART_ZOOMOUT_HEIGHT = 50;
- public final static int DEFAULT_ITEM_HEIGHT = 84;
+ public final static int DEFAULT_ITEM_HEIGHT = 64;
private final static int DEFAULT_CHARTBOARD_HEADER_HEIGHT = 25;
- private final static int DEFAULT_CHARTBOARD_TITLE_BUTTON_WIDTH = 80;
+ private final static int DEFAULT_CHARTBOARD_TITLE_BUTTON_WIDTH = 118;
private final static int DEFAULT_CHARTBOARD_MINIMIZE_BUTTON_WIDTH = 22;
private final static int DEFAULT_CHARTBOARD_FOOTER_HEIGHT = 20;
- private final static int DEFAULT_CHARTBOARD_SCALE_WIDTH = 102;
+ private final static int DEFAULT_CHARTBOARD_SCALE_WIDTH = 140;
public static final double ITEM_HEIGHT_RATIO_SHORT = 0.5;
public static final double ITEM_HEIGHT_RATIO_NORMAL = 1;
}
boardManager.scaleChanged(scale.getSelection());
event.doit = false; // Prevent vertical scroll of ChartBoard, only change scale.
- }
+ }
}
});
itemListScrollComp.addListener(SWT.Activate, new Listener() {
private boolean isHidden = false;
private boolean isSelectable = true;
- public final static int DEFAULT_NAME_CELL_WIDTH = 102;
+ public final static int DEFAULT_NAME_CELL_WIDTH = 140;
private int depth = 0;
private Object sortObj = null;
private final static int DEFAULT_TOGGLE_BUTTON_TOP_MARGIN = 3;
private final static int DEFAULT_TOGGLE_BUTTON_RIGHT_MARGIN = 2;
private final static int DEFAULT_FOLD_TOGGLE_BUTTON_MARGIN = 23;
- private final static int NAME_ICON_X = 31;
- private final static int NAME_ICON_Y = 13;
+ private final static int NAME_ICON_X = 4;
+ private final static int NAME_ICON_Y = 10;
private final static int NAME_CELL_DEFAULT_MARGIN = 5;
private final static int NAME_CELL_IMAGE_NAME_MARGIN = 50;
drawNameCellBackGround(e.gc, rect);
int startY = rect.height / 2;
if (rect.height > NAME_CELL_IMAGE_NAME_MARGIN) {
- drawNameImage(e.gc, itemIcon, rect, NAME_ICON_X, NAME_ICON_Y);
+ //drawNameImage(e.gc, itemIcon, rect, NAME_ICON_X, NAME_ICON_Y);
+ e.gc.drawImage(itemIcon, NAME_ICON_X, (rect.height / 2) - 18);
startY = NAME_ICON_Y + NAME_CELL_IMAGE_NAME_MARGIN;
}
if (itemIcon == null) {
}
e.gc.setForeground(ColorResources.BLACK);
e.gc.setFont(parent.getNameFont());
- drawText(e.gc, itemName, rect, startY);
+ //drawText(e.gc, itemName, rect, rect.height / 2 - NAME_CELL_DEFAULT_MARGIN);
+ e.gc.drawText(itemName, 49, rect.height / 2 - NAME_CELL_DEFAULT_MARGIN, true);
}
});
nameCell.addPaintListener(nameCellPaintListener);
}
}
});
+
pkginfoLines.add("");
// add lines for running process
import org.tizen.dynamicanalyzer.ui.file.manager.FileDataManager;
import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class FilePage extends DAPageComposite {
// page and view IDs
setTitle(AnalyzerLabels.COOLBAR_AREA_FILE);
this.setData(DAPageComposite.KEY_TOOLTIP,
ShortCutManager.COOLBAR_AREA_FILE_TOOLTIP);
- this.setLayout(new FillLayout());
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
+ this.setLayout(new FillLayout());
- baseForm = new SashForm(this, SWT.HORIZONTAL);
+ baseForm = new SashForm(this, SWT.HORIZONTAL);
baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
+
leftForm = new SashForm(baseForm, SWT.VERTICAL);
rightForm = new SashForm(baseForm, SWT.VERTICAL);
+ // FILE_DETAIL = 3;
+ FileDetailInfoView detailInfo = new FileDetailInfoView(rightForm,
+ SWT.NONE);
+ addView(detailInfo);
+
ScreenshotTabComposite tabview = new ScreenshotTabComposite(rightForm,
SWT.NONE, FilePage.pageID);
tabview.setObservingViews(ScreenshotTabComposite.screenshotViewID,
new String[] { FilePage.apilistViewID });
addView(tabview);
- // FILE_DETAIL = 3;
- FileDetailInfoView detailInfo = new FileDetailInfoView(rightForm,
- SWT.NONE);
- addView(detailInfo);
-
rightForm.setWeights(new int[] { 50, 50 });
baseForm.setWeights(new int[] { 75, 25 });
}
baseForm.setWeights(new int[] { 100 - wrate, wrate });
- rightForm.setWeights(new int[] { hrate, 100 - hrate });
+ rightForm.setWeights(new int[] { 100 - hrate, hrate });
}
@Override
import org.tizen.dynamicanalyzer.ui.hierarchy.tree.HierarchyTreeView;
import org.tizen.dynamicanalyzer.ui.hierarchy.tree.overview.HierarchyTreeOverView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class HierarchyPage extends DAPageComposite {
public static final String pageID = HierarchyPage.class.getName();
public HierarchyPage(Composite parent, int style) {
super(parent, style);
setTitle(AnalyzerLabels.COOLBAR_AREA_HIERARCHY);
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
this.setLayout(new FillLayout());
- baseForm = new SashForm(this, SWT.HORIZONTAL);
+ baseForm = new SashForm(this, SWT.HORIZONTAL);
baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
+
leftForm = new SashForm(baseForm, SWT.HORIZONTAL);
HierarchyPropertiesView propertiesView = new HierarchyPropertiesView(leftForm, SWT.NONE);
import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.timeline.calltrace.CallTraceView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class InteractivePage extends DAPageComposite {
public static final String pageID = InteractivePage.class.getName();
public InteractivePage(Composite parent, int style) {
super(parent, style);
setTitle(AnalyzerLabels.COOLBAR_AREA_INTERACTIVE);
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
this.setLayout(new FillLayout());
baseForm = new SashForm(this, SWT.HORIZONTAL);
baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
leftForm = new SashForm(baseForm, SWT.VERTICAL);
InteractiveChartView chartView = new InteractiveChartView(leftForm, SWT.NONE);
leftForm.setWeights(new int[] { 60, 40 });
rightForm = new SashForm(baseForm, SWT.VERTICAL);
+
+ CallTraceView apiListView = new CallTraceView(rightForm, SWT.NONE);
+ addView(apiListView);
+
ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm,
SWT.NONE, InteractivePage.pageID);
tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
new String[] { InteractivePage.listViewID });
addView(tabView);
- CallTraceView apiListView = new CallTraceView(rightForm, SWT.NONE);
- addView(apiListView);
-
rightForm.setWeights(new int[] { 50, 50 });
baseForm.setWeights(new int[] { 75, 25 });
}
baseForm.setWeights(new int[] { 100 - wrate, wrate });
- rightForm.setWeights(new int[] { hrate, 100 - hrate });
+ rightForm.setWeights(new int[] { 100 - hrate, hrate });
}
}
import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class KernelPage extends DAPageComposite {
public static final String pageID = KernelPage.class.getName();
setTitle(AnalyzerLabels.COOLBAR_AREA_KERNEL);
this.setData(DAPageComposite.KEY_TOOLTIP, ShortCutManager.COOLBAR_AREA_KERNEL_TOOLTIP);
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
this.setLayout(new FillLayout());
baseForm = new SashForm(this, SWT.HORIZONTAL);
baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
leftForm = new SashForm(baseForm, SWT.VERTICAL);
ContextSwitchingChartView kernelChartView = new ContextSwitchingChartView(leftForm,
leftForm.setWeights(new int[] { 60, 40 });
rightForm = new SashForm(baseForm, SWT.VERTICAL);
+
+ KernelStatisticInfoView statInfo = new KernelStatisticInfoView(rightForm, SWT.NONE);
+ addView(statInfo);
+
ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm, SWT.NONE,
KernelPage.pageID);
tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
new String[] { KernelPage.listViewID });
addView(tabView);
- KernelStatisticInfoView statInfo = new KernelStatisticInfoView(rightForm, SWT.NONE);
- addView(statInfo);
-
rightForm.setWeights(new int[] { 50, 50 });
baseForm.setWeights(new int[] { 75, 25 });
}
baseForm.setWeights(new int[] { 100 - wrate, wrate });
- rightForm.setWeights(new int[] { hrate, 100 - hrate });
+ rightForm.setWeights(new int[] { 100 - hrate, hrate });
}
@Override
import org.tizen.dynamicanalyzer.ui.network.data.NetworkDataManager;
import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class NetworkPage extends DAPageComposite {
public static final String pageID = NetworkPage.class.getName();
setTitle(AnalyzerLabels.COOLBAR_AREA_NETWORK);
this.setData(DAPageComposite.KEY_TOOLTIP,
ShortCutManager.COOLBAR_AREA_NETWORK_TOOLTIP);
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
this.setLayout(new FillLayout());
baseForm = new SashForm(this, SWT.HORIZONTAL);
- baseForm.setLayout(new FillLayout());
+ baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
leftForm = new SashForm(baseForm, SWT.VERTICAL);
NetworkChartView networkChartView = new NetworkChartView(leftForm,
leftForm.setWeights(new int[] { 60, 40 });
rightForm = new SashForm(baseForm, SWT.VERTICAL);
+
+ NetworkDetailView detailInfo = new NetworkDetailView(rightForm,
+ SWT.NONE);
+ addView(detailInfo);
+
ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm,
SWT.NONE, NetworkPage.pageID);
tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
new String[] { NetworkPage.listViewID });
addView(tabView);
- NetworkDetailView detailInfo = new NetworkDetailView(rightForm,
- SWT.NONE);
- addView(detailInfo);
-
rightForm.setWeights(new int[] { 50, 50 });
baseForm.setWeights(new int[] { 75, 25 });
}
baseForm.setWeights(new int[] { 100 - wrate, wrate });
- rightForm.setWeights(new int[] { hrate, 100 - hrate });
+ rightForm.setWeights(new int[] { 100 - hrate, hrate });
}
@Override
import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class GLPage extends DAPageComposite {
public static final String pageID = GLPage.class.getName();
setTitle(AnalyzerLabels.COOLBAR_AREA_OPENGLES);
this.setData(DAPageComposite.KEY_TOOLTIP, ShortCutManager.COOLBAR_AREA_GRAPHICS_TOOLTIP);
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
this.setLayout(new FillLayout());
baseForm = new SashForm(this, SWT.HORIZONTAL);
+ baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
+
leftForm = new SashForm(baseForm, SWT.VERTICAL);
glChartView = new GLChartView(leftForm, SWT.NONE);
bottomForm.setWeights(new int[] { 50, 50 });
rightForm = new SashForm(baseForm, SWT.VERTICAL);
+ GLDetailsView detailsView = new GLDetailsView(rightForm, SWT.NONE);
+ addView(detailsView);
+
ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm, SWT.NONE,
GLPage.pageID);
tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
new String[] { GLPage.apiListViewID });
addView(tabView);
- GLDetailsView detailsView = new GLDetailsView(rightForm, SWT.NONE);
- addView(detailsView);
-
rightForm.setWeights(new int[] { 50, 50 });
baseForm.setWeights(new int[] { 75, 25 });
}
baseForm.setWeights(new int[] { 100 - wrate, wrate });
- rightForm.setWeights(new int[] { hrate, 100 - hrate });
+ rightForm.setWeights(new int[] { 100 - hrate, hrate });
}
@Override
returnCombo.setComboImages(ImageResources.TAB_COMBO_BUTTON_DOWN,
ImageResources.TAB_COMBO_BUTTON_DOWN, ImageResources.TAB_COMBO_BUTTON_DOWN,
ImageResources.TAB_COMBO_BUTTON_DOWN);
- returnCombo.setComboImagePoint(new Point(71, 10));
+ returnCombo.setComboImagePoint(new Point(107, 10));
returnCombo.setButtonImages(ImageResources.TAB_COMBO_BUTTON_DOWN,
ImageResources.TAB_COMBO_BUTTON_DOWN);
- returnCombo.setFontPoint(new Point(2, 5));
+ returnCombo.setFontPoint(new Point(25, 5));
returnCombo.setEnabled(true);
returnCombo.setComboFont(FontResources.COMBO);
returnCombo.setItemFont(FontResources.DROPDOWN);
// create tab view in base composite
tabView = new DATabComposite(parent, SWT.DOUBLE_BUFFERED);
tabView.setTabWidth(114);
- tabView.isImageTab(true);
- tabView.setTabBGColor(ColorResources.TAB_BG_COLOR, ColorResources.TAB_BG_COLOR);
+ tabView.isImageTab(false);
+ tabView.setTabBGColor(ColorResources.TOOLBAR_COMBO_NORMAL_START, ColorResources.TOOLBAR_COMBO_NORMAL_START);
createPagesByTarget(null);
}
public static final String imageViewerID = ImageViewer.class.getName();
public static final String appStartupViewID = AppStartupView.class.getName();
- public static final double DEFAULT_WIDTH = DesignConstants.SCREENSHOT_VIEW_WIDTH + 14;
+ public static final double DEFAULT_WIDTH = DesignConstants.SCREENSHOT_VIEW_WIDTH + 30;
public static final double DEFAULT_HEIGHT = DesignConstants.SCREENSHOT_VIEW_HEIGHT
- + 10 + DesignConstants.VIEW_TITLEBAR_HEIGHT;
+ + 30 + DesignConstants.VIEW_TITLEBAR_HEIGHT;
{
ID = tabID;
import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class RangePage extends DAPageComposite {
public static final String pageID = RangePage.class.getName();
super(parent, style);
setTitle(AnalyzerLabels.COOLBAR_AREA_RANGE);
this.setData(DAPageComposite.KEY_TOOLTIP,
- ShortCutManager.COOLBAR_AREA_RANGE_TOOLTIP);
+ ShortCutManager.COOLBAR_AREA_RANGE_TOOLTIP);
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
this.setLayout(new FillLayout());
baseForm = new SashForm(this, SWT.VERTICAL);
- baseForm.setLayout(new FillLayout());
+ baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
upperForm = new SashForm(baseForm, SWT.HORIZONTAL);
import org.tizen.dynamicanalyzer.ui.summary.warning.WarningDetailView;
import org.tizen.dynamicanalyzer.ui.summary.warning.WarningListView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class SummaryPage extends DAPageComposite {
public static final String pageID = SummaryPage.class.getName();
setTitle(AnalyzerLabels.COOLBAR_AREA_SUMMARY);
this.setData(DAPageComposite.KEY_TOOLTIP, ShortCutManager.COOLBAR_AREA_SUMMARY_TOOLTIP);
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
this.setLayout(new FillLayout());
baseForm = new SashForm(this, SWT.VERTICAL);
baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
upperForm = new SashForm(baseForm, SWT.HORIZONTAL);
addView(leakView);
// INFO_VIEW_INDEX = 2;
+ /*
ScreenshotTabComposite tabView = new ScreenshotTabComposite(upperForm, SWT.NONE,
SummaryPage.pageID);
tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID, new String[] {
tabView.setObservingViews(ScreenshotTabComposite.callstackViewID, new String[] {
SummaryPage.failedViewID, SummaryPage.leakViewID, SummaryPage.warningListViewID });
addView(tabView);
-
- upperForm.setWeights(new int[] { 37, 40, 23 });
+ */
+ upperForm.setWeights(new int[] { 50, 50 });
bottomForm = new SashForm(baseForm, SWT.HORIZONTAL);
// FUNCTION_PROFILING_VIEW_INDEX = 3;
addView(userFunctionProfilingView);
warningForm = new SashForm(bottomForm, SWT.VERTICAL);
- bottomForm.setWeights(new int[] { 70, 30 });
+ bottomForm.setWeights(new int[] { 50, 50 });
// WARNING_VIEW_INDEX = 4;
WarningListView warningListView = new WarningListView(warningForm, SWT.NONE);
@Override
protected void onResized(int width, int height) {
+ /*
int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
wrate = (wrate > 100) ? 100 : wrate;
if ((wrate > (100 - 37)) || hrate > 100) {
return;
}
-
- upperForm.setWeights(new int[] { 37, 100 - 37 - wrate, wrate });
- baseForm.setWeights(new int[] { hrate, 100 - hrate });
+*/
+ upperForm.setWeights(new int[] { 50 , 50 });
+ baseForm.setWeights(new int[] { 50 , 50 });
}
@Override
import org.tizen.dynamicanalyzer.ui.thread.chart.ThreadChartView;
import org.tizen.dynamicanalyzer.ui.thread.data.ThreadDataManager;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class ThreadPage extends DAPageComposite {
public static final String pageID = ThreadPage.class.getName();
super(parent, style);
setTitle(AnalyzerLabels.COOLBAR_AREA_THREAD);
this.setData(DAPageComposite.KEY_TOOLTIP, ShortCutManager.COOLBAR_AREA_THREAD_TOOLTIP);
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
this.setLayout(new FillLayout());
baseForm = new SashForm(this, SWT.HORIZONTAL);
baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
leftForm = new SashForm(baseForm, SWT.VERTICAL);
ThreadChartView threadChartView = new ThreadChartView(leftForm, SWT.NONE);
rightForm = new SashForm(baseForm, SWT.VERTICAL);
+ ThreadDetailInfoView detailInfo = new ThreadDetailInfoView(rightForm, SWT.NONE);
+ addView(detailInfo);
+
ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm, SWT.NONE,
ThreadPage.pageID);
tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
new String[] { ThreadPage.listViewID });
addView(tabView);
- ThreadDetailInfoView detailInfo = new ThreadDetailInfoView(rightForm, SWT.NONE);
- addView(detailInfo);
-
rightForm.setWeights(new int[] { 50, 50 });
baseForm.setWeights(new int[] { 75, 25 });
}
baseForm.setWeights(new int[] { 100 - wrate, wrate });
- rightForm.setWeights(new int[] { hrate, 100 - hrate });
+ rightForm.setWeights(new int[] { 100 - hrate, hrate });
}
@Override
returnCombo.setComboImages(ImageResources.TAB_COMBO_BUTTON_DOWN,
ImageResources.TAB_COMBO_BUTTON_DOWN, ImageResources.TAB_COMBO_BUTTON_DOWN,
ImageResources.TAB_COMBO_BUTTON_DOWN);
- returnCombo.setComboImagePoint(new Point(71, 10));
+ returnCombo.setComboImagePoint(new Point(107, 10));
returnCombo.setButtonImages(ImageResources.TAB_COMBO_BUTTON_DOWN,
ImageResources.TAB_COMBO_BUTTON_DOWN);
- returnCombo.setFontPoint(new Point(7, 5));
+ returnCombo.setFontPoint(new Point(31, 5));
returnCombo.setEnabled(true);
returnCombo.setComboFont(FontResources.COMBO);
returnCombo.setItemFont(FontResources.DROPDOWN);
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineView;
import org.tizen.dynamicanalyzer.ui.toolbar.replay.data.ReplayDataManager;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class TimelinePage extends DAPageComposite {
public static final String pageID = TimelinePage.class.getName();
public static final String timelineViewID = TimelineView.class.getName();
public static final String calltraceViewID = CallTraceView.class.getName();
+ SashForm baseForm;
SashForm leftForm;
SashForm rightForm;
super(parent, style);
setTitle(AnalyzerLabels.COOLBAR_AREA_TIMELINE);
this.setData(DAPageComposite.KEY_TOOLTIP, ShortCutManager.COOLBAR_AREA_TIMELINE_TOOLTIP);
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
this.setLayout(new FillLayout());
+
+ baseForm = new SashForm(this, SWT.VERTICAL);
+ baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
- leftForm = new SashForm(this, SWT.HORIZONTAL);
+ leftForm = new SashForm(baseForm, SWT.HORIZONTAL);
// index 0 : TIMELINE_INDEX
TimelineView timelineComp = new TimelineView(leftForm, SWT.NONE);
rightForm = new SashForm(leftForm, SWT.VERTICAL);
+ // index 2 : APILIST_INDEX
+ CallTraceView apiListView = new CallTraceView(rightForm, SWT.NONE);
+ addView(apiListView);
+
// index 1 : INFO_INDEX
ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm, SWT.NONE,
TimelinePage.pageID);
new String[] { TimelinePage.calltraceViewID });
addView(tabView);
- // index 2 : APILIST_INDEX
- CallTraceView apiListView = new CallTraceView(rightForm, SWT.NONE);
- addView(apiListView);
-
leftForm.setWeights(new int[] { 75, 25 });
rightForm.setWeights(new int[] { 50, 50 });
}
leftForm.setWeights(new int[] { 100 - wrate, wrate });
- rightForm.setWeights(new int[] { hrate, 100 - hrate });
+ rightForm.setWeights(new int[] { 100 - hrate, hrate });
}
@Override
addItems.setButtonImagePoint(new Point(6, 4));
- addItems.setFontPoint(new Point(43, 5));
+ addItems.setFontPoint(new Point(47, 5));
addItems.setFontColors(ColorResources.ADD_CHART_FONT_COLOR,
ColorResources.ADD_CHART_FONT_COLOR,
public static final int CHART_TYPE_ENERGY = -113;
/* range selector */
- public static final int TIMELINE_ITEM_INFO_WIDTH = 99;
+ public static final int TIMELINE_ITEM_INFO_WIDTH = 118;
public static final double MEGA_DOUBLE = 1000000;
public static final long MEGA_LONG = 1000000;
}
}
});
-
+/*
deviceCombo.addListener(SWT.MouseDown, new Listener() {
@Override
public void handleEvent(Event event) {
}
}
});
-
+*/
appCombo.addSelectionListener(new DACustomComboSelectionListener() {
@Override
import org.tizen.dynamicanalyzer.ui.userinterface.profiling.UIFunctionProfilingView;
import org.tizen.dynamicanalyzer.ui.userinterface.scene.UISceneListView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
+import org.tizen.dynamicanalyzer.resources.ColorResources;
public class UIPage extends DAPageComposite {
public static final String pageID = UIPage.class.getName();
public UIPage(Composite parent, int style) {
super(parent, style);
setTitle(AnalyzerLabels.COOLBAR_AREA_UI);
+ this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
this.setData(DAPageComposite.KEY_TOOLTIP, ShortCutManager.COOLBAR_AREA_UI_TOOLTIP);
this.setLayout(new FillLayout());
baseForm = new SashForm(this, SWT.VERTICAL);
baseForm.setLayout(new FillLayout());
+ baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
+ ((FillLayout) getLayout()).marginHeight = 15;
+ ((FillLayout) getLayout()).marginWidth = 5;
upperForm = new SashForm(baseForm, SWT.HORIZONTAL);
UISceneListView topLeftSencond = new UISceneListView(upperForm, SWT.NONE);
addView(topLeftSencond);
+ upperForm.setWeights(new int[] { 40, 60});
+
+ bottomForm = new SashForm(baseForm, SWT.HORIZONTAL);
+ UIFunctionProfilingView bottomLeftFirst = new UIFunctionProfilingView(bottomForm, SWT.NONE);
+ addView(bottomLeftFirst);
+
ScreenshotTabComposite tabView = new ScreenshotTabComposite(upperForm, SWT.NONE,
UIPage.pageID);
tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID, new String[] {
tabView.setObservingViews(ScreenshotTabComposite.callstackViewID, new String[] {
UIPage.sceneListViewID, UIPage.controlListViewID });
addView(tabView);
-
- upperForm.setWeights(new int[] { 37, 40, 23 });
-
- bottomForm = new SashForm(baseForm, SWT.HORIZONTAL);
- UIFunctionProfilingView bottomLeftFirst = new UIFunctionProfilingView(bottomForm, SWT.NONE);
- addView(bottomLeftFirst);
- bottomForm.setWeights(new int[] { 100 });
+
+ bottomForm.setWeights(new int[] { 77, 23 });
baseForm.setSashWidth(AnalyzerConstants.SASH_WIDTH);
upperForm.setSashWidth(AnalyzerConstants.SASH_WIDTH);
return;
}
- upperForm.setWeights(new int[] { 37, 100 - 37 - wrate, wrate });
- baseForm.setWeights(new int[] { hrate, 100 - hrate });
+ upperForm.setWeights(new int[] { 100 - wrate, wrate });
+ baseForm.setWeights(new int[] { 100 - hrate, hrate });
}
@Override
super.clear();
UIDataManager.getInstance().clear();
}
-}
\ No newline at end of file
+}