package net.sourceforge.ganttproject.export;

import java.awt.Component;
import java.awt.Frame;
import java.io.File;

import javax.swing.Action;

import net.sourceforge.ganttproject.GPLogger;
import net.sourceforge.ganttproject.chart.Chart;
import net.sourceforge.ganttproject.chart.GanttChart;
import net.sourceforge.ganttproject.chart.ResourceChart;
import net.sourceforge.ganttproject.gui.GPPropertySheet;
import net.sourceforge.ganttproject.gui.ResourceTreeUIFacade;
import net.sourceforge.ganttproject.gui.TaskSelectionContext;
import net.sourceforge.ganttproject.gui.TaskTreeUIFacade;
import net.sourceforge.ganttproject.gui.UIFacade;
import net.sourceforge.ganttproject.gui.UIFacade.DialogInitHook;
import net.sourceforge.ganttproject.gui.scrolling.ScrollingManager;
import net.sourceforge.ganttproject.gui.zoom.ZoomManager;
import net.sourceforge.ganttproject.undo.GPUndoManager;

public class ConsoleUIFacade implements UIFacade {
    private UIFacade myRealFacade;

    ConsoleUIFacade(UIFacade realFacade) {
        myRealFacade = realFacade;
    }
    public ScrollingManager getScrollingManager() {
        // TODO Auto-generated method stub
        return null;
    }

    public ZoomManager getZoomManager() {
        // TODO Auto-generated method stub
        return null;
    }

    public Choice showConfirmationDialog(String message, String title) {
        // TODO Auto-generated method stub
        return null;
    }

    public void showPopupMenu(Component invoker, Action[] actions, int x, int y) {
        // TODO Auto-generated method stub

    }

    public void showDialog(Component content, Action[] buttonActions) {
        // TODO Auto-generated method stub

    }
    public void showDialog(Component content, Action[] buttonActions, String title) {
        // TODO Auto-generated method stub

    }
    
    public void showDialog(Component content, Action[] buttonActions, String title, DialogInitHook initHook) {
        // TODO Auto-generated method stub
        
    }
    public void showUndecoratedDialog(Component content, Action[] buttonActions) {
    }
    public void setStatusText(String text) {
        // TODO Auto-generated method stub

    }

    public void showErrorDialog(String errorMessage) {
        System.err.println("[ConsoleUIFacade] ERROR: "+errorMessage);
    }

    public void showErrorDialog(Throwable e) {
        System.err.println("[ConsoleUIFacade] ERROR: "+e.getMessage());
        e.printStackTrace();
    }
    public void showInformationDialog(String message) {
        System.err.println("[ConsoleUIFacade] INFO: "+message);
    }
    public void logErrorMessage(Exception e) {
        System.err.println("[ConsoleUIFacade] ERROR:"+e.getMessage());
        e.printStackTrace();
    }
    public GanttChart getGanttChart() {
        return myRealFacade.getGanttChart();
    }

    public ResourceChart getResourceChart() {
        return myRealFacade.getResourceChart();
    }

    public Chart getActiveChart() {
        // TODO Auto-generated method stub
        return null;
    }

    public int getViewIndex() {
        // TODO Auto-generated method stub
        return 0;
    }

    public void setViewIndex(int viewIndex) {
        // TODO Auto-generated method stub

    }

    public int getGanttDividerLocation() {
        // TODO Auto-generated method stub
        return 0;
    }

    public void setGanttDividerLocation(int location) {
        // TODO Auto-generated method stub

    }

    public int getResourceDividerLocation() {
        // TODO Auto-generated method stub
        return 0;
    }

    public void setResourceDividerLocation(int location) {
        // TODO Auto-generated method stub

    }

    public void refresh() {
        // TODO Auto-generated method stub

    }

    public Frame getMainFrame() {
        // TODO Auto-generated method stub
        return null;
    }

    public void setWorkbenchTitle(String title) {
        // TODO Auto-generated method stub

    }

    public void changeWorkingDirectory(File parentFile) {
        // TODO Auto-generated method stub

    }
    public GPUndoManager getUndoManager() {
        // TODO Auto-generated method stub
        return null;
    }
    public TaskTreeUIFacade getTaskTree() {
        // TODO Auto-generated method stub
        return null;
    }
    public ResourceTreeUIFacade getResourceTree() {
        // TODO Auto-generated method stub
        return null;
    }
    public TaskSelectionContext getTaskSelectionContext() {
        // TODO Auto-generated method stub
        return null;
    }
    public void showPopupMenu(Component invoker, Component content, int x, int y) {
        // TODO Auto-generated method stub
        
    }
    public GPPropertySheet getTaskPropertySheet() {
        // TODO Auto-generated method stub
        return null;
    }

}
