Exemplo n.º 1
0
        public Controller()
        {
            //Initisalisation de l'application
            Application.Init();

            //Création du receiver des commandes
            commandReceiver = new CommandReceiver();

            //Création des commandes
            CommandManager.RegisterCommand(new NewCommand(commandReceiver, this, "New", "", "", "", ""));
            CommandManager.RegisterCommand(new SaveCurrentViewCommand(commandReceiver, "SaveCurrentView", "Sauver", Gtk.Stock.Save, "", "Enregistrer les modifications apportées dans le document actif."));

            RegisterNewViewCommands();

            //Affichage de l'interface graphique principale
            ExecuteCommand("New", "");

            //Création des bouton d'instanciation de vues
            CreateToolButtons();

            //Boucle principale de l'application
            Application.Run();
        }
Exemplo n.º 2
0
        public Controller()
        {
            //Initisalisation de l'application
            Application.Init();

              	//Création du receiver des commandes
              	commandReceiver = new CommandReceiver();

              	//Création des commandes
              	CommandManager.RegisterCommand(new NewCommand(commandReceiver, this, "New", "", "", "", ""));
              	CommandManager.RegisterCommand(new SaveCurrentViewCommand(commandReceiver, "SaveCurrentView", "Sauver",  Gtk.Stock.Save, "", "Enregistrer les modifications apportées dans le document actif."));

              	RegisterNewViewCommands();

              	//Affichage de l'interface graphique principale
              	ExecuteCommand("New", "");

              	//Création des bouton d'instanciation de vues
              	CreateToolButtons();

              	//Boucle principale de l'application
              	Application.Run ();
        }
Exemplo n.º 3
0
 public OpenViewCommand(CommandReceiver commandReceiver, string id, string text, string icon, string accelKey, string description)
     : base(id, text, icon, accelKey, description)
 {
     this.commandReceiver = commandReceiver;
 }
Exemplo n.º 4
0
 public NewViewCommand(CommandReceiver commandReceiver, string viewName, string id, string text, string icon, string accelKey, string description)
     : base(id, text, icon, accelKey, description)
 {
     this.commandReceiver = commandReceiver;
     this.viewName = viewName;
 }
Exemplo n.º 5
0
 public OpenViewCommand(CommandReceiver commandReceiver, string id, string text, string icon, string accelKey, string description) : base(id, text, icon, accelKey, description)
 {
     this.commandReceiver = commandReceiver;
 }
Exemplo n.º 6
0
 public NewViewCommand(CommandReceiver commandReceiver, string viewName, string id, string text, string icon, string accelKey, string description) : base(id, text, icon, accelKey, description)
 {
     this.commandReceiver = commandReceiver;
     this.viewName        = viewName;
 }