Beispiel #1
0
		public FontStyleWindow() : 
				base (Gtk.WindowType.Toplevel)
		{
			this.Build();
			// force to use custom theme
			base.Decorated = false;

			this.DeleteEvent += delegate (object o, Gtk.DeleteEventArgs args) {
				Gtk.Application.Quit ();
				args.RetVal = true;
			};

			this.SaveAction.Activated += delegate(object sender, EventArgs e) {
				FontBuildWindow fbwin = new FontBuildWindow(fontService);
				fbwin.Decorated = base.Decorated;
				fbwin.Show();
			};

			this.CloseAction.Activated += delegate(object sender, EventArgs e) {
				Gtk.Application.Quit ();
			};

			this.AboutAction.Activated += delegate(object sender, EventArgs e) {
				new Gui.AboutWindow(this, authors).Show();
			};

			/*
			this.CustomStyleAction.Activated += delegate(object sender, EventArgs e) {
				if (this.CustomStyleAction.Active) {
					base.Decorated = false;
				}
			};

			this.DecoratedCustomStyleAction.Activated += delegate(object sender, EventArgs e) {
				if (this.DecoratedCustomStyleAction.Active) {
					base.Decorated = true;
				}
			};
			*/

			fontService = new FontTool.FontService ();
			BuildFontFamilyTree ();
			AssignSignals ();

			this.fontService.OnlyEnglish = this.OnlyEnglishAction.Active;
		}
		public FontStyleWindow() : 
				base (Gtk.WindowType.Toplevel)
		{
			this.Build();

			this.btnNextPreview.ImagePosition = Gtk.PositionType.Right;
			this.btnPrevSettings.ImagePosition = Gtk.PositionType.Left;

			this.DeleteEvent += delegate (object o, Gtk.DeleteEventArgs args) {
				Gtk.Application.Quit ();
				args.RetVal = true;
			};

			this.SaveAction.Activated += HandleSaveAction;

			this.CloseAction.Activated += delegate(object sender, EventArgs e) {
				Gtk.Application.Quit ();
			};

			this.AboutAction.Activated += delegate(object sender, EventArgs e) {
				new Gui.AboutWindow (this, About.Authors).Show ();
			};

			this.btnNextPreview.Clicked += delegate(object sender, EventArgs e) {
				notebookFont.NextPage ();
				BuildPreview ();
			};
			
			this.btnPrevSettings.Clicked += delegate(object sender, EventArgs e) {
				notebookFont.PrevPage ();
			};

			fontService = new FontTool.FontService ();
			BuildFontFamilyTree ();
			AssignSignals ();

			this.fontService.OnlyEnglish = this.OnlyEnglishAction.Active;
		}
Beispiel #3
0
        public FontStyleWindow() :
            base(Gtk.WindowType.Toplevel)
        {
            this.Build();

            this.btnNextPreview.ImagePosition  = Gtk.PositionType.Right;
            this.btnPrevSettings.ImagePosition = Gtk.PositionType.Left;

            this.DeleteEvent += (o, args) =>
            {
                Gtk.Application.Quit();
                args.RetVal = true;
            };

            this.SaveAction.Activated += HandleSaveAction;

            this.CloseAction.Activated += (sender, e) =>
                                          Gtk.Application.Quit();

            this.AboutAction.Activated += (sender, e) =>
                                          new Gui.AboutWindow(this, About.Authors).Show();

            this.btnNextPreview.Clicked += (sender, e) =>
            {
                notebookFont.NextPage();
                BuildPreview();
            };

            this.btnPrevSettings.Clicked += (sender, e) =>
                                            notebookFont.PrevPage();

            fontService = new FontTool.FontService();
            BuildFontFamilyTree();
            AssignSignals();

            this.fontService.OnlyEnglish = this.OnlyEnglishAction.Active;
        }