public dialogSelectFile(IPlatform platform, String path, dialogSelectFileMode mode, String extension, String extraComment)
            : base(platform)
        {
            dialogFormatSettings format = new dialogFormatSettings(dialogStyle.blueDialog, dialogSize.fullScreenBox);

            format.apply(this, platform);

            selector             = new smartFilePathSelector(path, mode, extension, this.height, this.width, 0, 3);
            selector.doShowTitle = false;

            switch (mode)
            {
            case dialogSelectFileMode.selectFileToOpen:
                layoutTitleMessage = "Select file to open";
                break;

            case dialogSelectFileMode.selectFileToSave:
                layoutTitleMessage = "Select file to save";
                break;

            case dialogSelectFileMode.selectPath:
                layoutTitleMessage = "Select directory path";
                break;
            }

            layoutStatusMessage = extraComment;

            addLayer(selector, layerBlending.transparent, 100);

            init(platform);
        }
Exemple #2
0
        /// <summary>
        /// Dijalog kojim se edituju propertiji nekog objekta. Podrzava paginaciju
        /// </summary>
        /// <param name="platform">Platforma na kojoj se prikazuje dijalog</param>
        /// <param name="targetObject">Objekat koi se edituje</param>
        public dialogMessageBoxWithOptions(IPlatform platform, String title, String description, IEnumerable <T> options)
            : base(platform)
        {
            layoutTitleMessage  = title;
            layoutStatusMessage = description;

            init(platform);
            // Definicija izgleda ovog dijaloga
            dialogFormatSettings format = new dialogFormatSettings(dialogStyle.redDialog, dialogSize.messageBox);

            // Primenjuje pravila formatiranja
            format.apply(this, platform);
            backgroundDecoration = "=";
            writeBackground(null, true);

            //var titleDiv = new smartMessageSection(title, description, height, width, 2, 2);

            //titleDiv.setStyle(textSectionLineStyleName.heading);

            var menu = new aceMenu();

            menu.setItems(options);

            var menuDiv = new smartMenuSection(menu, this, textInputMenuRenderView.inlineKeyListGroup);

            menuDiv.doShowValueRemarks = false;
            menuDiv.doShowTitle        = false;
            menuDiv.doShowRemarks      = false;
            header.setAttachment(menuDiv);

            //   titleDiv.setAttachment(menuDiv);

            // addLayer(titleDiv, layerBlending.transparent, 100);
        }
        /// <summary>
        /// Dijalog kojim se edituju propertiji nekog objekta. Podrzava paginaciju
        /// </summary>
        /// <param name="platform">Platforma na kojoj se prikazuje dijalog</param>
        /// <param name="targetObject">Objekat koi se edituje</param>
        public dialogPageViewerWithMenu(IPlatform platform, IEnumerable <String> content, String title, String description, T[] spec)
            : base(platform)
        {
            layoutTitleMessage  = title;
            layoutStatusMessage = description;

            init(platform);

            // Definicija izgleda ovog dijaloga
            dialogFormatSettings format = new dialogFormatSettings(dialogStyle.greenDialog, dialogSize.fullScreenBox);

            // Primenjuje pravila formatiranja
            format.apply(this, platform);

            backgroundDecoration = "=";
            // writeBackground(null, true);

            //var titleDiv = new smartMessageSection(title, description, height, width, 2, 2);



            Int32 h = height - header.outerBottomPosition;

            var editorDiv = new smartPageViewer(content, h, width, 0, 0);

            // titleDiv.setAttachment(editorDiv);



            var menu = new aceMenu();

            //menu.setItems(spec);

            //var menuDiv = new smartMenuSection(menu, this, textInputMenuRenderView.inlineKeyListGroup);

            //menuDiv.doShowValueRemarks = false;
            //menuDiv.doShowTitle = false;
            //menuDiv.doShowRemarks = false;

            header.setAttachment(editorDiv);
            // editorDiv.setAttachment(menuDiv);

            //header.refreshAttachmentPosition();


            // editorDiv.setAttachment(menuDiv);

            // addLayer(menuDiv, layerBlending.transparent, 100);
        }
        /// <summary>
        /// Dijalog kojim se edituju propertiji nekog objekta. Podrzava paginaciju
        /// </summary>
        /// <param name="platform">Platforma na kojoj se prikazuje dijalog</param>
        /// <param name="targetObject">Objekat koi se edituje</param>
        public dialogEditProperties(IPlatform platform, Object targetObject, String TitleMessage, String StatusMessage)
            : base(platform)
        {
            layoutTitleMessage  = TitleMessage;
            layoutStatusMessage = StatusMessage;
            init(platform);

            // Definicija izgleda ovog dijaloga
            dialogFormatSettings format = new dialogFormatSettings(dialogStyle.greenDialog, dialogSize.fullScreenBox);

            // Primenjuje pravila formatiranja
            format.apply(this, platform);
            backgroundDecoration = "=";
            writeBackground(null, true);

            editor = new smartMenuPropertyEditor(height - header.height, width, 0, 0);
            //editor.pageManager = new textBlocks.core.textPageManager<menu.core.aceMenuItem>()
            editor.layoutTitleMessage  = TitleMessage;
            editor.layoutStatusMessage = StatusMessage;
            editor.setObject(targetObject);

            header.setAttachment(editor);
            //addLayer(editor, layerBlending.transparent, 100);
        }