Example #1
0
 public ShellManager(IWhitelistedServiceLocator serviceLocator, IRegionManager regionManager, IWpfTopMostHelper topMostHelper, TabRegion profileSettingsTabs, TabRegion applicationSettingsTabs)
 {
     _regionManager           = regionManager;
     _serviceLocator          = serviceLocator;
     _topMostHelper           = topMostHelper;
     _profileSettingsTabs     = profileSettingsTabs;
     _applicationSettingsTabs = applicationSettingsTabs;
 }
Example #2
0
        public TabRegion DefineApplicationSettingsTabs()
        {
            var applicationSettingsTabs = new TabRegion(RegionNames.SettingsTabRegion);

            applicationSettingsTabs.Add(new MultiTab <GeneralSettingsViewModel>(RegionNames.GeneralSettingsTabContentRegion, HelpTopic.AppGeneral, typeof(LanguageSelectionSettingsView), typeof(UpdateIntervalSettingsView), typeof(DefaultPrinterSettingsView), typeof(ExplorerIntegrationSettingsView)));
            applicationSettingsTabs.Add(new SimpleTab <TitleReplacementsView, TitleReplacementsViewModel>(RegionNames.TitleReplacementTabContentRegion, HelpTopic.AppTitle));
            applicationSettingsTabs.Add(new MultiTab <DebugSettingsViewModel>(RegionNames.DebugSettingsTabContentRegion, HelpTopic.AppDebug, typeof(LoggingSettingView), typeof(TestPageSettingsView), typeof(RestoreSettingsView), typeof(ExportSettingView)));

            ModifyApplicationSettingsTabs(applicationSettingsTabs);

            return(applicationSettingsTabs);
        }
Example #3
0
        public TabRegion DefineProfileSettingsTabs()
        {
            var profileTabs = new TabRegion(RegionNames.ProfileTabContentRegion);

            profileTabs.Add(new SimpleTab <SaveTab, SaveTabViewModel>(RegionNames.SaveTabContentRegion, HelpTopic.ProfileSave));
            // TODO define proper help topic
            profileTabs.Add(new MultiTab <ConvertTabViewModel>(RegionNames.ConvertTabContentRegion, HelpTopic.ProfileSave, typeof(OutputFormatTab), typeof(ConvertPdfView), typeof(ConvertJpgView), typeof(ConvertPngView), typeof(ConvertTiffView), typeof(ConvertTextView)));
            profileTabs.Add(new SimpleTab <MetadataTab, MetadataViewModel>(RegionNames.MetadataTabContentRegion, HelpTopic.ProfileMetadata));

            var modifyTab = new MasterTab <ModifyMasterTabViewModel>(RegionNames.ModifyMasterTabItemsRegion, RegionNames.ModifyMasterTabContentRegion);

            modifyTab.AddSubTab(new SubTab <CoverUserControl, ProfileModifyTranslation>(t => t.Cover, profile => profile.CoverPage));
            modifyTab.AddSubTab(new SubTab <BackgroundUserControl, ProfileModifyTranslation>(t => t.Background, profile => profile.BackgroundPage));
            modifyTab.AddSubTab(new SubTab <AttachmentUserControl, ProfileModifyTranslation>(t => t.Attachment, profile => profile.AttachmentPage));
            modifyTab.AddSubTab(new SubTab <StampUserControl, ProfileModifyTranslation>(t => t.Stamp, profile => profile.Stamping));
            profileTabs.Add(modifyTab);

            var sendTab = new MasterTab <SendMasterTabViewModel>(RegionNames.SendMasterTabItemsRegion, RegionNames.SendMasterTabContentRegion);

            sendTab.AddSubTab(new SubTab <FTPActionUserControl, ProfileSendSubTabTranslation>(t => t.Ftp, profile => profile.Ftp));
            sendTab.AddSubTab(new SubTab <MailClientUserControl, MailClientTabTranslation>(t => t.Email, profile => profile.EmailClientSettings));
            sendTab.AddSubTab(new SubTab <HttpActionUserControl, HttpTranslation>(t => t.HttpSubTabTitle, profile => profile.HttpSettings));
            sendTab.AddSubTab(new SubTab <SmtpActionUserControl, SmtpTranslation>(t => t.SmtpSubTabTitle, profile => profile.EmailSmtpSettings));
            sendTab.AddSubTab(new SubTab <DropboxUserControl, DropboxTranslation>(t => t.Dropbox, profile => profile.DropboxSettings));
            sendTab.AddSubTab(new SubTab <PrintUserControl, PrintTabTranslation>(t => t.Print, profile => profile.Printing));
            profileTabs.Add(sendTab);

            var secureTab = new MasterTab <SecureMasterTabViewModel>(RegionNames.SecureMasterTabItemsRegion, RegionNames.SecureMasterTabContentRegion);

            secureTab.AddSubTab(new SubTab <EncryptUserControl, ProfileSecureTranslation>(t => t.Encryption, profile => profile.PdfSettings.Security));
            secureTab.AddSubTab(new SubTab <SignUserControl, ProfileSecureTranslation>(t => t.Signature, profile => profile.PdfSettings.Signature));
            profileTabs.Add(secureTab);

            var advancedTab = new MasterTab <AdvancedMasterTabViewModel>(RegionNames.AdvancedMasterTabItemsRegion, RegionNames.AdvancedMasterTabContentRegion);

            advancedTab.AddSubTab(new SubTab <ScriptUserControl, ProfileAdvancedTranslation>(t => t.Script, profile => profile.Scripting));
            advancedTab.AddSubTab(new SubTab <UserTokenUserControl, ProfileAdvancedTranslation>(t => t.UserToken, profile => profile.UserTokens));
            profileTabs.Add(advancedTab);

            ModifyProfileSettingsTabs(profileTabs);

            return(profileTabs);
        }
Example #4
0
 protected override void ModifyApplicationSettingsTabs(TabRegion applicationSettingsTabs)
 {
     applicationSettingsTabs.Add(new SimpleTab <LicenseSettingsView, LicenseSettingsViewModel>(RegionNames.LicenseSettingsContentRegion, HelpTopic.AppLicense));
 }
 public PrismBootstrapper(TabRegion profileSettingsTabs, TabRegion applicationSettingsTabs)
 {
     _profileSettingsTabs     = profileSettingsTabs;
     _applicationSettingsTabs = applicationSettingsTabs;
 }
Example #6
0
 protected virtual void ModifyApplicationSettingsTabs(TabRegion applicationSettingsTabs)
 {
 }
Example #7
0
 protected virtual void ModifyProfileSettingsTabs(TabRegion profileSettingsTabs)
 {
 }