mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 20:09:23 +00:00
Added initial action interfaces in GitgExt
This commit is contained in:
parent
d4d987fde3
commit
f0f119b338
|
@ -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 \
|
||||
|
|
29
libgitg-ext/gitg-ext-action-interface.vala
Normal file
29
libgitg-ext/gitg-ext-action-interface.vala
Normal 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
|
35
libgitg-ext/gitg-ext-action.vala
Normal file
35
libgitg-ext/gitg-ext-action.vala
Normal 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
|
30
libgitg-ext/gitg-ext-commit-action.vala
Normal file
30
libgitg-ext/gitg-ext-commit-action.vala
Normal 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
|
30
libgitg-ext/gitg-ext-ref-action.vala
Normal file
30
libgitg-ext/gitg-ext-ref-action.vala
Normal 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
|
Loading…
Reference in a new issue