예제 #1
0
        protected override void AddChildElements()
        {
            addButton             = (TooltipButton)textImageButtonFactory.GenerateTooltipButton(LocalizedString.Get("Add"), "icon_circle_plus.png");
            addButton.tooltipText = LocalizedString.Get("Add a file to be printed");
            addButton.Margin      = new BorderDouble(0, 6, 6, 3);

            startButton             = (TooltipButton)textImageButtonFactory.GenerateTooltipButton(LocalizedString.Get("Print"), "icon_play_32x32.png");
            startButton.tooltipText = LocalizedString.Get("Begin printing the selected item.");
            startButton.Margin      = new BorderDouble(0, 6, 6, 3);

            string skipButtonText    = LocalizedString.Get("Skip");
            string skipButtonMessage = LocalizedString.Get("Skip the current item and move to the next in queue");

            skipButton = makeButton(skipButtonText, skipButtonMessage);

            string removeButtonText    = LocalizedString.Get("Remove");
            string removeButtonMessage = LocalizedString.Get("Remove current item from queue");

            removeButton = makeButton(removeButtonText, removeButtonMessage);

            string pauseButtonText    = LocalizedString.Get("Pause");
            string pauseButtonMessage = LocalizedString.Get("Pause the current print");

            pauseButton = makeButton(pauseButtonText, pauseButtonMessage);

            string cancelCancelButtonText     = LocalizedString.Get("Cancel Connect");
            string cancelConnectButtonMessage = LocalizedString.Get("Stop trying to connect to the printer.");

            cancelConnectButton = makeButton(cancelCancelButtonText, cancelConnectButtonMessage);

            string cancelButtonText    = LocalizedString.Get("Cancel");
            string cancelButtonMessage = LocalizedString.Get("Stop the current print");

            cancelButton = makeButton(cancelButtonText, cancelButtonMessage);

            string resumeButtonText    = LocalizedString.Get("Resume");
            string resumeButtonMessage = LocalizedString.Get("Resume the current print");

            resumeButton = makeButton(resumeButtonText, resumeButtonMessage);

            string reprintButtonText    = LocalizedString.Get("Reprint");
            string reprintButtonMessage = LocalizedString.Get("Print current item again");

            reprintButton = makeButton(reprintButtonText, reprintButtonMessage);

            string doneCurrentPartButtonText    = LocalizedString.Get("Done");
            string doenCurrentPartButtonMessage = LocalizedString.Get("Move to next print in queue");

            doneWithCurrentPartButton = makeButton(doneCurrentPartButtonText, doenCurrentPartButtonMessage);

            this.AddChild(addButton);
            allPrintButtons.Add(addButton);

            this.AddChild(startButton);
            allPrintButtons.Add(startButton);

            this.AddChild(pauseButton);
            allPrintButtons.Add(pauseButton);

            this.AddChild(resumeButton);
            allPrintButtons.Add(resumeButton);

            this.AddChild(doneWithCurrentPartButton);
            allPrintButtons.Add(doneWithCurrentPartButton);

            this.AddChild(skipButton);
            allPrintButtons.Add(skipButton);

            this.AddChild(cancelButton);
            allPrintButtons.Add(cancelButton);

            this.AddChild(cancelConnectButton);
            allPrintButtons.Add(cancelConnectButton);

            this.AddChild(reprintButton);
            allPrintButtons.Add(reprintButton);

            this.AddChild(removeButton);
            allPrintButtons.Add(removeButton);

            SetButtonStates();
        }