You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
#include "view_about.h"
|
|
|
|
|
|
|
|
view_about::view_about(/* args */) {
|
|
builder = Gtk::Builder::create_from_file(path_glade);
|
|
this->settings();
|
|
}
|
|
|
|
view_about::~view_about() {
|
|
}
|
|
|
|
void view_about::lacalization() {
|
|
time_t now = time(0);
|
|
tm *ltm = localtime(&now);
|
|
unsigned int year = 1900 + ltm->tm_year;
|
|
string str_authors = string(copyright) + to_string(year);
|
|
aboutWindows->set_copyright(str_authors);
|
|
aboutWindows->set_comments(str_setting_user);
|
|
aboutWindows->set_website(website);
|
|
aboutWindows->set_version(_(version_application.c_str()));
|
|
aboutWindows->set_website_label(project_Home_page);
|
|
headerAboutTopic->set_label(_(app_name));
|
|
}
|
|
|
|
void view_about::set_name(string app_name) {
|
|
app_name = app_name;
|
|
}
|
|
|
|
void view_about::set_version(string version_application) {
|
|
version_application = version_application;
|
|
}
|
|
|
|
void view_about::show() {
|
|
aboutWindows->show();
|
|
}
|
|
void view_about::get_builder() {
|
|
builder->get_widget("btnBoxAboutDialog", btnBoxAboutDialog);
|
|
builder->get_widget("aboutWindows", aboutWindows);
|
|
builder->get_widget("headerAboutTopic", headerAboutTopic);
|
|
}
|
|
|
|
void view_about::settings() {
|
|
this->get_builder();
|
|
this->lacalization();
|
|
btnBoxAboutDialog->set_visible(false);
|
|
}
|
|
|
|
void view_filters::set_path_glade(string path_glade) {
|
|
this->path_glade = path_glade;
|
|
} |