parent
e4de627272
commit
23f3e3657d
@ -1,15 +0,0 @@
|
||||
[window]
|
||||
WindowPosX=0
|
||||
WindowPosY=0
|
||||
WindowWidth=1920
|
||||
WindowHeight=1004
|
||||
WindowTheme=1
|
||||
IconSize=2
|
||||
IconSegmentSize=152
|
||||
|
||||
[sections]
|
||||
Personal=XFCE;
|
||||
Hardware=X-UBL-SettingsManager;X-UBL-HardwareSettings;
|
||||
System=X-UBL-SettingsManager;X-UBL-SystemSettings;
|
||||
Misc=X-UBL-SettingsManager;X-UBL-PersonalSettings;
|
||||
Xfce Настройки=X-XFCE-SettingsDialog;
|
||||
@ -1,9 +0,0 @@
|
||||
.vscode/
|
||||
config.conf
|
||||
ubconfig-main-back.conf
|
||||
gtk-dark.css
|
||||
msgformat.py
|
||||
calendarApp.glade
|
||||
calendarApp.glade~
|
||||
ubl-settings-manager.glade~
|
||||
ubl-settings-manager-bin
|
||||
@ -1,57 +0,0 @@
|
||||
|
||||
.bg {
|
||||
|
||||
}
|
||||
|
||||
.label {
|
||||
font-size: 13px;
|
||||
}
|
||||
.noborder{
|
||||
border:none;
|
||||
border-width:0px;
|
||||
border-radius:0px;
|
||||
box-shadow: none;
|
||||
}
|
||||
.darkborder{
|
||||
border-width:1px;
|
||||
border-radius:1px;
|
||||
}
|
||||
.bannerbackground {
|
||||
background-color: #404040;
|
||||
}
|
||||
.elseps {
|
||||
border-style:solid;
|
||||
border-bottom-width: 1px;
|
||||
border-image: linear-gradient(90deg, #aaaaaa 0%, #dcddde 100%);
|
||||
border-image-slice: 1;
|
||||
|
||||
}
|
||||
.fgnb {
|
||||
}
|
||||
|
||||
|
||||
#Icon {
|
||||
background-color: transparent;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
iconview#GnomeIcon{
|
||||
border-style:solid;
|
||||
border-bottom-width: 1px;
|
||||
border-image: linear-gradient(90deg, #aaaaaa 0%, #dcddde 100%);
|
||||
border-image-slice: 1;
|
||||
|
||||
background-color: transparent;
|
||||
}
|
||||
#noborders{
|
||||
border-style:solid;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
label#iconlabel {
|
||||
font-size:14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
#combo{
|
||||
text-align:center;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 366 KiB |
|
Before Width: | Height: | Size: 14 KiB |
@ -1,96 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-01-17 04:52+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: test.c:724
|
||||
msgid "Back to settings"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:841
|
||||
msgid "UBLinux Settings Manager"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:842
|
||||
msgid "Personal"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:843
|
||||
msgid "Hardware"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:844
|
||||
msgid "System"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:845
|
||||
msgid "Icon size"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:846
|
||||
msgid "Window theme"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:847
|
||||
msgid "Misc"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:848
|
||||
msgid "Would you like to read documentation in the Web?"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:849
|
||||
msgid ""
|
||||
"You will be redirected to documentation site, where user help pages are "
|
||||
"translated and supported by community."
|
||||
msgstr ""
|
||||
|
||||
#: test.c:850
|
||||
msgid "Read online"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:851
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:852
|
||||
msgid "Close without saving"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:853
|
||||
msgid "Save and reload"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:854
|
||||
msgid "Always redirect"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:855
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:856
|
||||
msgid "About..."
|
||||
msgstr ""
|
||||
|
||||
#: test.c:899
|
||||
msgid "Standard theme"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:900
|
||||
msgid "GNOME theme"
|
||||
msgstr ""
|
||||
Binary file not shown.
@ -1,96 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-01-17 04:52+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: test.c:724
|
||||
msgid "Back to settings"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:841
|
||||
msgid "UBLinux Settings Manager"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:842
|
||||
msgid "Personal"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:843
|
||||
msgid "Hardware"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:844
|
||||
msgid "System"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:845
|
||||
msgid "Icon size"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:846
|
||||
msgid "Window theme"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:847
|
||||
msgid "Misc"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:848
|
||||
msgid "Would you like to read documentation in the Web?"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:849
|
||||
msgid ""
|
||||
"You will be redirected to documentation site, where user help pages are "
|
||||
"translated and supported by community."
|
||||
msgstr ""
|
||||
|
||||
#: test.c:850
|
||||
msgid "Read online"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:851
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:852
|
||||
msgid "Close without saving"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:853
|
||||
msgid "Save and reload"
|
||||
msgstr "Save and apply"
|
||||
|
||||
#: test.c:854
|
||||
msgid "Always redirect"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:855
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:856
|
||||
msgid "About..."
|
||||
msgstr ""
|
||||
|
||||
#: test.c:899
|
||||
msgid "Standard theme"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:900
|
||||
msgid "GNOME theme"
|
||||
msgstr ""
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,190 +0,0 @@
|
||||
#ifndef UBL_SETTINGS_MANAGER
|
||||
#define UBL_SETTINGS_MANAGER
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#define GladePath "ui/ubl-settings-manager.glade"
|
||||
#define CssPath "./css/gtk-widgets.css"
|
||||
#define ConfigPath ".config/ubconfig-main/ubconfig-main.conf"
|
||||
#define AppIconPath "/usr/share/icons/hicolor/32x32/apps/ublinux-ubconfig.svg"
|
||||
#define DesktopPath "/usr/share/applications/"
|
||||
#define IconPicturesPath "/usr/share/icons/hicolor/32x32/apps/"
|
||||
#define ErrIconPicturePath "/usr/share/icons/Faenza/emblems/32/emblem-important.png"
|
||||
#define PictureFormatMain ".png"
|
||||
#define PictureFormatExtra ".svg"
|
||||
#define LocalePath "locale/"
|
||||
#define LocaleName "base"
|
||||
|
||||
|
||||
typedef struct apps{
|
||||
char *Name;
|
||||
int Type;
|
||||
char *Categories;
|
||||
char *Exec;
|
||||
char *Icon;
|
||||
int Pluggable;
|
||||
|
||||
} apps;
|
||||
|
||||
typedef struct dictionary {
|
||||
char *key;
|
||||
void *data;
|
||||
struct dictionary *next;
|
||||
struct dictionary *prev;
|
||||
struct dictionary *first;
|
||||
} dictionary;
|
||||
|
||||
typedef struct IVGrapgicals{
|
||||
char *sectionName;
|
||||
char *categories;
|
||||
GtkListStore *LV;
|
||||
GtkWidget *Box;
|
||||
GtkWidget *IV;
|
||||
GtkWidget *label;
|
||||
GtkWidget *sep;
|
||||
} IVGraphicals;
|
||||
|
||||
typedef struct IconSection{
|
||||
char *section;
|
||||
char *categories;
|
||||
} IconSection;
|
||||
|
||||
typedef struct {
|
||||
int windowWidth;
|
||||
int windowHeight;
|
||||
int windowPosX;
|
||||
int windowPosY;
|
||||
int WindowTheme;
|
||||
char *curThemeName;
|
||||
int iconsize;
|
||||
int iconSegmentSize;
|
||||
dictionary *sections;
|
||||
|
||||
} config;
|
||||
|
||||
typedef struct {
|
||||
GtkWidget *MainFrame;
|
||||
GtkWidget *MainBox;
|
||||
GtkWidget *ElemBox;
|
||||
GtkWidget *DragButtonBox;
|
||||
GtkWidget *DragUpButton;
|
||||
GtkWidget *DragDownButton;
|
||||
GtkWidget *NameBox;
|
||||
GtkWidget *CategoriesBox;
|
||||
GtkWidget *OptionBox;
|
||||
GtkWidget *NameEntry;
|
||||
GtkWidget *NameLabel;
|
||||
GtkWidget *CategoriesEntry;
|
||||
GtkWidget *CategoriesLabel;
|
||||
GtkWidget *EditButtonBox;
|
||||
GtkWidget *EditButtonAccept;
|
||||
GtkWidget *EditButtonCancel;
|
||||
GtkWidget *ButtonEdit;
|
||||
GtkWidget *ButtonDelete;
|
||||
GtkWidget *DeleditBox;
|
||||
} SectionSettingSegment;
|
||||
|
||||
typedef struct {
|
||||
GtkBuilder *builder;
|
||||
GtkWidget *window;
|
||||
dictionary *ICSys;
|
||||
GtkWidget *DesktopBasic;
|
||||
GtkWidget *DesktopSocket;
|
||||
GtkWidget *ButtonBackToMain;
|
||||
GtkWidget *DialogOpenDocumentation;
|
||||
GtkWidget *CancelHelpButton;
|
||||
GtkWidget *ReadHelpButton;
|
||||
GtkWidget *AlwaysOpenDocumentation;
|
||||
GtkWidget *helpHeader;
|
||||
GtkWidget *helpText;
|
||||
GtkWidget *appSettings;
|
||||
GtkWidget *SettingsWindow;
|
||||
GtkWidget *settingsSizeSlider;
|
||||
GtkWidget *settingsSizeInfoLabel;
|
||||
GtkWidget *settingsThemeChooser;
|
||||
GtkWidget *settingsCancel;
|
||||
GtkWidget *settingsAccept;
|
||||
GtkWidget *settingsIcon;
|
||||
GtkWidget *socket;
|
||||
GtkWidget *socketplace;
|
||||
GtkWidget *HideWhileLaunch;
|
||||
GtkWidget *MenuItemSettings;
|
||||
GtkWidget *MenuItemDocumentation;
|
||||
GtkWidget *LabelTitle;
|
||||
GtkWidget *settingsSubmenuLabelSize;
|
||||
GtkWidget *settingsSubmenuLabelTheme;
|
||||
GtkWidget *GnomePaned;
|
||||
GtkWidget *GnomeInfoLabel;
|
||||
GtkWidget *workingwindow;
|
||||
GtkWidget *settingsSectionsSettingsButton;
|
||||
GtkWidget *SectionSettingsWindow;
|
||||
GtkWidget *SectionSettingsPack;
|
||||
dictionary *SettingsSections;
|
||||
GtkWidget *SectionSettingAddButton;
|
||||
GtkWidget *SectionSettingAddNameEntry;
|
||||
GtkWidget *SectionSettingAddCategoriesEntry;
|
||||
GtkWidget *SectionSettingsClearEntryButton;
|
||||
GtkWidget *SectionSettingsSaveButton;
|
||||
GtkWidget *SectionSettingsCloseButton;
|
||||
GtkWidget *GnomeInfoDetailsLabel;
|
||||
int appssize;
|
||||
apps *applist;
|
||||
GtkWidget *icvpack;
|
||||
|
||||
|
||||
} actionWidgets;
|
||||
|
||||
typedef enum {
|
||||
ACTIONWIDGETS,
|
||||
ICONSECTION,
|
||||
IVGRAPHICALS,
|
||||
OTHER
|
||||
|
||||
} DICT_TYPE;
|
||||
|
||||
void on_plug_added(GtkSocket* self, actionWidgets *builder);
|
||||
void on_plug_removed(GtkSocket* self, actionWidgets *widgets);
|
||||
void on_Item_activated(GtkIconView* self, GtkTreePath* path, actionWidgets *applist);
|
||||
void on_gnome_Item_activated(GtkIconView* self, GtkTreePath* path, actionWidgets *applist);
|
||||
void on_item_selection_changed(GtkIconView *IV, actionWidgets *widgets);
|
||||
void on_ButtonOpenHelp_activated(GtkWidget *button, GtkBuilder *builder);
|
||||
void on_backToSettingsButton_clicked(GtkWidget *button,actionWidgets *sctb);
|
||||
void on_CancelHelpButton_activated(GtkWidget *button,GtkBuilder *builder);
|
||||
void on_ReadHelpButton_activated(GtkWidget *button, GtkBuilder *builder);
|
||||
void launch_app_with_arguments(char *name, char *args);
|
||||
void launch_app(char *name);
|
||||
void py_launch_app(char *name,char *args);
|
||||
int on_settings_accept(GtkWidget *button, dictionary **widgetsDs);
|
||||
void on_paned_move(GtkPaned* self, GtkScrollType* scroll_type, actionWidgets *widgets);
|
||||
int on_settingsOpen(GtkWidget *button, actionWidgets *widgets);
|
||||
int on_settings_icon_size_changed(GtkWidget* self, actionWidgets *widgets);
|
||||
int on_settings_cancel(GtkWidget *button, actionWidgets *widgets);
|
||||
apps *get_app_by_name(apps *applist,char *name, int size);
|
||||
int reload_list(IVGraphicals *section);
|
||||
int load_apps(IVGraphicals *section, apps *applist, int size);
|
||||
int load_apps_with_clear(IVGraphicals *section, apps *applist, int size);
|
||||
int hide_if_unfound(IVGraphicals *section);
|
||||
GtkWidget *create_socket(actionWidgets *builder);
|
||||
void sort_apps(apps *applist,int size);
|
||||
apps *find_apps(int *sizef);
|
||||
int check_categories(apps app, char *catstocheck);
|
||||
int setup_config();
|
||||
dictionary *yon_theme_new(dictionary **widgetss, GtkBuilder *builder, char *theme_id, apps *applist, int appsize);
|
||||
char *yon_char_get_augumented(char *source, char *append);
|
||||
char *yon_cut(char *source, int size, int startpos);
|
||||
int yon_set_sections(IconSection *section);
|
||||
void yon_set_default_sections(dictionary *section);
|
||||
char *yon_char_divide_search(char *source, char* dividepos, int delete_divider);
|
||||
char *yon_char_divide(char *source, int dividepos);
|
||||
dictionary *yon_section_new(dictionary *section, char *section_name, char *categories);
|
||||
void yon_switch_theme(dictionary **dict, dictionary *newone);
|
||||
dictionary *yon_dictionary_find(dictionary **dict, char *key);
|
||||
void yon_segment_show(actionWidgets *widgets, SectionSettingSegment *sgm);
|
||||
dictionary *yon_dictionary_create_empty();
|
||||
SectionSettingSegment *yon_create_section_setting(char *name, char *categories);
|
||||
void yon_segments_show(actionWidgets *widgets);
|
||||
void yon_segments_hide(actionWidgets *widgets);
|
||||
void yon_dictionary_make_first(dictionary *dict);
|
||||
dictionary *yon_create_icon_section_list(dictionary *sections);
|
||||
int yon_show_icon_views(dictionary *IVS,actionWidgets *widgets);
|
||||
#endif
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue