-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c512ef
commit 8bfb1f2
Showing
6 changed files
with
355 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */ | ||
/*! | ||
* dialog_preferences.cc | ||
* Copyright (C) Diego Rubin 2020 <[email protected]> | ||
* | ||
* Gnomato 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. | ||
* | ||
* Gnomato 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/>. | ||
* | ||
* Author: Diego Rubin <[email protected]> | ||
* | ||
*/ | ||
|
||
#include "dialog_work_log_entries.h" | ||
#include <gdkmm/rgba.h> | ||
|
||
DialogWorkLogEntries::DialogWorkLogEntries( | ||
BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &refGlade) | ||
: Gtk::Dialog(cobject), m_refGlade(refGlade) { | ||
|
||
// buttons | ||
m_refGlade->get_widget("btnWorkLogSave", btnOk); | ||
m_refGlade->get_widget("btnWorkLogCancel", btnCancel); | ||
|
||
// connect signals | ||
btnCancel->signal_clicked().connect( | ||
sigc::mem_fun(*this, &DialogWorkLogEntries::on_button_cancel_clicked)); | ||
btnOk->signal_clicked().connect( | ||
sigc::mem_fun(*this, &DialogWorkLogEntries::on_button_ok_clicked)); | ||
|
||
show_all(); | ||
} | ||
|
||
DialogWorkLogEntries::~DialogWorkLogEntries() {} | ||
|
||
void DialogWorkLogEntries::on_button_cancel_clicked() { hide(); } | ||
|
||
void DialogWorkLogEntries::on_button_ok_clicked() { hide(); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */ | ||
/*! | ||
* dialog_preferences.h | ||
* Copyright (C) Diego Rubin 2020 <[email protected]> | ||
* | ||
* Gnomato 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. | ||
* | ||
* Gnomato 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/>. | ||
* | ||
* Author: Diego Rubin <[email protected]> | ||
* | ||
*/ | ||
|
||
#ifndef _WIN_WORK_LOG_ENTRIES_H_ | ||
#define _WIN_WORK_LOG_ENTRIES_H_ | ||
|
||
#include <gtkmm.h> | ||
|
||
using namespace Gtk; | ||
|
||
class DialogWorkLogEntries : public Gtk::Dialog { | ||
public: | ||
DialogWorkLogEntries(BaseObjectType *cobject, | ||
const Glib::RefPtr<Gtk::Builder> &refGlade); | ||
|
||
virtual ~DialogWorkLogEntries(); | ||
|
||
protected: | ||
private: | ||
// attributes | ||
Button *btnOk; | ||
Button *btnCancel; | ||
|
||
Glib::RefPtr<Gtk::Builder> m_refGlade; | ||
|
||
// callback methods | ||
virtual void on_button_cancel_clicked(); | ||
virtual void on_button_ok_clicked(); | ||
}; | ||
|
||
#endif // WIN_WORK_LOG_ENTRIES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.