public ReadOnlyDocumentViewModel(string programFullPath, TvcStudioSettings settings) : base(programFullPath, settings)
 {
     IsReadOny          = true;
     CollapseAllCommand = new RelayCommand(o => { }, o => false);
     ExpandAllCommand   = new RelayCommand(o => { }, o => false);
     Program            = null;
 }
 public AssemblyProgramViewModel(string fullPath, DocumentHandler documentHandler, TvcStudioSettings settings) : base(fullPath, documentHandler, settings)
 {
     ProgramType           = ProgramType.Assembly;
     OpenListFileCommand   = new RelayCommand(OpenListFile);
     OpenLoaderFileCommand = new RelayCommand(OpenLoaderFile);
     m_Settings            = settings;
 }
Exemplo n.º 3
0
 public BasicProgramViewModel(string fullPath, DocumentHandler documentHandler, TvcStudioSettings settings) : base(fullPath, documentHandler, settings)
 {
     ProgramType           = ProgramType.Basic;
     OpenListFileCommand   = new RelayCommand(o => { }, o => false);
     OpenLoaderFileCommand = new RelayCommand(o => { }, o => false);
     m_Settings            = settings;
 }
Exemplo n.º 4
0
        public SettingsViewModel(IReadOnlyDictionary <string, Theme> themes, TvcStudioSettings settings)
        {
            Settings  = settings;
            ThemeList = new ObservableCollection <ThemeData>(themes.Select(kvp => new ThemeData {
                Name = kvp.Key, Theme = kvp.Value
            }));
            Brushes = new List <SolidColorBrush>(GetSolidBrushes());
            ResetSettingsCommand  = new RelayCommand(ResetSettings);
            SelectEmulatorCommand = new RelayCommand(SelectEmulator);

            ApplySettings();
        }
Exemplo n.º 5
0
 public ClockCycleMargin(AssemblyCodeAnalyzer analyzer, TvcStudioSettings settings)
 {
     m_Analyzer = analyzer;
     m_Settings = settings;
     m_Analyzer.AnalizingFinished += AnalizingFinished;
 }
Exemplo n.º 6
0
 public DocumentHandler()
 {
     RecentPrograms    = new ObservableCollection <ProgramViewModel>();
     OpenedDocuments   = new ObservableCollection <DocumentViewModel>();
     TvcStudioSettings = TvcStudioSettings.DeSerialize() ?? new TvcStudioSettings();
 }
 public AssemblyCodeAnalyzer(TextArea area, TextDocument document, TvcStudioSettings settings,
                             AnalizerTrigger trigger, string programFullPath) : base(area, document, settings, trigger)
 {
     m_ProgramFullPath = programFullPath;
     WrongLine         = new List <Tuple <string, int> >();
 }
Exemplo n.º 8
0
 public BasicDocumentViewModel(string programFullPath, ProgramViewModel program, TvcStudioSettings settings) : base(programFullPath, settings)
 {
     Program            = program;
     IsReadOny          = false;
     CollapseAllCommand = new RelayCommand(o => { }, o => false);
     ExpandAllCommand   = new RelayCommand(o => { }, o => false);
 }
        public AssemblyDocumentViewModel(string programFullPath, ProgramViewModel program, TvcStudioSettings settings) : base(programFullPath, settings)
        {
            Program            = program;
            IsReadOny          = false;
            CollapseAllCommand = new RelayCommand(o => m_CodeFolding.CollapseAll(),
                                                  o => m_CodeFolding != null && m_CodeFolding.FoldingCount > 0);
            ExpandAllCommand = new RelayCommand(o => m_CodeFolding.ExpandAll(),
                                                o => m_CodeFolding != null && m_CodeFolding.FoldingCount > 0);

            InterpretedSymbols = new ObservableCollection <SymbolData>();
            WrongLines         = new ObservableCollection <WrongLineData>();
        }
Exemplo n.º 10
0
 public BasicCodeAnalyzer(TextArea area, TextDocument document, TvcStudioSettings settings, AnalizerTrigger trigger = AnalizerTrigger.Manual) : base(area, document, settings, trigger)
 {
 }
Exemplo n.º 11
0
 public Settings(TvcStudioSettings settings, IReadOnlyDictionary <string, Theme> themes)
 {
     InitializeComponent();
     DataContext = new SettingsViewModel(themes, settings);
 }