Added initial action interfaces in GitgExt

This commit is contained in:
Jesse van den Kieboom 2014-01-06 18:00:11 +01:00 committed by Jesse van den Kieboom
parent d4d987fde3
commit f0f119b338
5 changed files with 128 additions and 0 deletions

View file

@ -43,6 +43,10 @@ libgitg_ext_libgitg_ext_1_0_la_LIBADD = \
libgitg_ext_libgitg_ext_1_0_la_VALASOURCES = \
libgitg-ext/gitg-ext-assembly-info.vala \
libgitg-ext/gitg-ext-action-interface.vala \
libgitg-ext/gitg-ext-action.vala \
libgitg-ext/gitg-ext-commit-action.vala \
libgitg-ext/gitg-ext-ref-action.vala \
libgitg-ext/gitg-ext-application.vala \
libgitg-ext/gitg-ext-ui-element.vala \
libgitg-ext/gitg-ext-activity.vala \

View file

@ -0,0 +1,29 @@
/*
* This file is part of gitg
*
* Copyright (C) 2014 - Jesse van den Kieboom
*
* gitg is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* gitg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with gitg. If not, see <http://www.gnu.org/licenses/>.
*/
namespace GitgExt
{
public interface ActionInterface : Object
{
}
}
// ex: ts=4 noet

View file

@ -0,0 +1,35 @@
/*
* This file is part of gitg
*
* Copyright (C) 2014 - Jesse van den Kieboom
*
* gitg is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* gitg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with gitg. If not, see <http://www.gnu.org/licenses/>.
*/
namespace GitgExt
{
public interface Action : Object
{
public abstract ActionInterface action_interface { get; construct set; }
public abstract string label { get; }
public abstract bool enabled { get; }
public abstract void activate();
}
}
// ex: ts=4 noet

View file

@ -0,0 +1,30 @@
/*
* This file is part of gitg
*
* Copyright (C) 2014 - Jesse van den Kieboom
*
* gitg is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* gitg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with gitg. If not, see <http://www.gnu.org/licenses/>.
*/
namespace GitgExt
{
public interface CommitAction : Action
{
public abstract Ggit.Commit commit { get; construct set; }
}
}
// ex: ts=4 noet

View file

@ -0,0 +1,30 @@
/*
* This file is part of gitg
*
* Copyright (C) 2014 - Jesse van den Kieboom
*
* gitg is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* gitg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with gitg. If not, see <http://www.gnu.org/licenses/>.
*/
namespace GitgExt
{
public interface RefAction : Action
{
public abstract Ggit.Ref reference { get; construct set; }
}
}
// ex: ts=4 noet