Bug 708174 - A text based intent driving tool for GIMP (Tito)

This commit is contained in:
Srihari 2012-03-10 11:46:44 +05:30 committed by Michael Natterer
parent 8bd729e6ad
commit fc8f6c127f
10 changed files with 1202 additions and 1 deletions

View File

@ -267,7 +267,13 @@ static const GimpStringActionEntry dialogs_toplevel_actions[] =
NULL,
NC_("dialogs-action", "About GIMP"),
"gimp-about-dialog",
GIMP_HELP_ABOUT_DIALOG }
GIMP_HELP_ABOUT_DIALOG },
{ "dialogs-action-search", GTK_STOCK_FIND,
NC_("dialogs-action", "_Search and Run a Command"), NULL,
NC_("dialogs-action", "Search commands by keyword, and run them"),
"gimp-action-search-dialog",
GIMP_HELP_ACTION_SEARCH_DIALOG }
};

View File

@ -13,6 +13,8 @@ AM_CPPFLAGS = \
noinst_LIBRARIES = libappdialogs.a
libappdialogs_a_sources = \
action-search-dialog.c \
action-search-dialog.h \
dialogs-types.h \
dialogs.c \
dialogs.h \

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,24 @@
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 2012 Srihari Sriraman, Suhas Bharadwaj, Vidyashree K, Zeeshan Ali Ansari
*
* This program 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 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __ACTION_SEARCH_DIALOG_H__
#define __ACTION_SEARCH_DIALOG_H__
GtkWidget * action_search_dialog_create (void);
#endif /* __ACTION_SEARCH_DIALOG_H__ */

View File

@ -78,6 +78,7 @@
#include "preferences-dialog.h"
#include "quit-dialog.h"
#include "tips-dialog.h"
#include "action-search-dialog.h"
#include "gimp-intl.h"
@ -194,6 +195,15 @@ dialogs_about_get (GimpDialogFactory *factory,
return about_dialog_create (context);
}
GtkWidget *
dialogs_action_search_get (GimpDialogFactory *factory,
GimpContext *context,
GimpUIManager *ui_manager,
gint view_size)
{
return action_search_dialog_create ();
}
GtkWidget *
dialogs_error_get (GimpDialogFactory *factory,
GimpContext *context,

View File

@ -69,6 +69,10 @@ GtkWidget * dialogs_about_get (GimpDialogFactory *factory,
GimpContext *context,
GimpUIManager *ui_manager,
gint view_size);
GtkWidget * dialogs_action_search_get (GimpDialogFactory *factory,
GimpContext *context,
GimpUIManager *ui_manager,
gint view_size);
GtkWidget * dialogs_error_get (GimpDialogFactory *factory,
GimpContext *context,
GimpUIManager *ui_manager,

View File

@ -278,6 +278,8 @@ static const GimpDialogFactoryEntry entries[] =
dialogs_tips_get, TRUE, FALSE, FALSE),
TOPLEVEL ("gimp-about-dialog",
dialogs_about_get, TRUE, FALSE, FALSE),
TOPLEVEL ("gimp-action-search-dialog",
dialogs_action_search_get, TRUE, FALSE, FALSE),
TOPLEVEL ("gimp-error-dialog",
dialogs_error_get, TRUE, FALSE, FALSE),
TOPLEVEL ("gimp-close-all-dialog",

View File

@ -527,6 +527,13 @@ gui_restore_after_callback (Gimp *gimp,
#undef PREFERENCES
gui_add_to_app_menu (image_ui_manager, group,
"/dummy-menubar/image-popup/Help/dialogs-search-action",
_("Search and Run a Command"));
/* the preferences group */
group = ige_mac_menu_add_app_menu_group ();
item = gtk_separator_menu_item_new ();
gtkosx_application_insert_app_menu_item (osx_app, item, 7);

View File

@ -508,6 +508,7 @@
#define GIMP_HELP_DOCK_SHOW_BUTTON_BAR "gimp-dock-show-button-bar"
#define GIMP_HELP_ABOUT_DIALOG "gimp-about-dialog"
#define GIMP_HELP_ACTION_SEARCH_DIALOG "gimp-action-search-dialog"
#define GIMP_HELP_COLOR_DIALOG "gimp-color-dialog"
#define GIMP_HELP_DEVICE_STATUS_DIALOG "gimp-device-status-dialog"
#define GIMP_HELP_DISPLAY_FILTER_DIALOG "gimp-display-filter-dialog"

View File

@ -750,6 +750,8 @@
<menuitem action="dialogs-tips" />
<menuitem action="dialogs-about" />
<separator />
<menuitem action="dialogs-action-search" />
<separator />
<placeholder name="Programming" />
<separator />
</menu>