1 /* 2 Copyright 2007, 2008, 2009, 2010 Geyer Klaus 3 4 This file is part of Cat'sEyE. 5 6 Cat'sEyE is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 Cat'sEyE is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with Cat'sEyE. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 21 #ifndef MYFM_H_ 22 #define MYFM_H_ 23 24 gboolean oneKeyPressedOnNotebook(GtkWidget *widget, GdkEventKey *event, gpointer data); 25 void oneRowActivated(struct AllInformationAllUseStruct *stru); 26 int mysortfunctionforText(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); 27 int mysortfunctionshelperForCaseInsensitiveComparission(gchar *string1, gchar *string2, GtkSortType sortOrder); 28 int mysortfunctionforNumbers(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); 29 int mysortfunctionforBigNumbers(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); 30 void updateViewWithNewFolder(struct SideObjectList *Object, GString *NewPath); 31 void getStandardEditor(); 32 void getTerminal(); 33 GList *getTypesOfSelectedItems(struct AllInformationAllUseStruct *info); 34 int getUserProgramsForSelectedItems(GList *glistMarkedTypes, struct UserDataList **theUserDataList); 35 int checkIfOneSelectionIsPoints(gpointer data, int ColoumnToUse); 36 void CallUsersDummyCommand (void *Object, int iSource, int iCallType); 37 void searchStringInAndHighlightItems(GtkWidget *menuitem, gpointer data); 38 void sizeOfSelectedItemsRecursive (GtkWidget *menuitem, gpointer data); 39 int checkIfOneSelectionIsPath(gpointer data, int ColoumnToUse); 40 void renameItemsHelper(GtkTreeSelection *selection, struct AllInformationAllUseStruct *info); 41 void callEachWith_Menuitem(GtkWidget *menuitem, gpointer data); 42 void startItemsWithUserCommand(GtkWidget *menuitem, struct UserDataList *UserDataListItem); 43 void CallUsersDummyCommand (void *Object, int iSource, int iCallType); 44 gboolean oneMouseButtonPressedOnNotebook(GtkWidget *notebook, GdkEventButton *event, gpointer data); 45 int predefine_NotebookTaps_Objects(struct SideObjectList *Object); 46 int connectSignalsToNotebookTapObject(struct SideObjectList *Object); 47 void updateObjectsViewingFolder(char *Folder, gboolean automaticTriggered); 48 void updateViewWithNewFolder_UserAdvice(struct SideObjectList *Object, GString *NewPath); 49 gboolean updateViewsFolder_Helper (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, struct AllInformationAllUseStruct *infostru); 50 void updateStatusBar(struct SideObjectList *Object); 51 void copyToAnOtherPannel(struct SideObjectList *sourceObject, struct SideObjectList *destObject); 52 void updateActiveViews(); 53 void updateView(struct SideObjectList *Object); 54 int checkIfFolderNeedsUpdate(struct SideObjectList *Object); 55 void MenuAddItemToFileshelf(GtkWidget *menuitem, gpointer data); 56 int MakeList (int Source, struct CopyReMoveList **FirstItem, GtkTreeSelection *selection, GString *SourcePath, GString *gstrDestPath); 57 gboolean oneMouseButtonPressed(GtkWidget *treeview, GdkEventButton *event, gpointer data); 58 GdkPixbuf *getPreviewPixBufForFile (const char *ccpPath, const char *ccpFilename); 59 int predefine_NotebookTabs_reorderColumns (GtkTreeView *treeview); 60 void reorderAllTabsColumns (); 61 62 enum { 63 COL_PREVIEW=0, 64 COL_NAME, 65 COL_SIZE, 66 COL_OWNER, 67 COL_GROUP, 68 COL_PERMISSION, 69 COL_ACCESSED, 70 COL_CHANGED, 71 COL_TARGET, //if the item is a link, here is what it points to 72 COL_FILETYPE, //For e.g. for picture or video file this means jpg, mp3 and so on 73 COL_TIMESTAMPACCESSED, //untouched timevalue from files 74 COL_TIMESTAMPCHANGED, 75 COL_TYPE_D, //is it file, directory, link and so on, see 'man dirent' 76 COL_COLOR, 77 NUM_COLS 78 }; 79 80 81 #endif //MYFM_H_ 82 83 84 85