init request entry class

This commit is contained in:
yggverse 2024-08-13 09:59:58 +03:00
parent d1a08ce8de
commit 86f4313a1d
6 changed files with 46 additions and 0 deletions

View File

@ -19,6 +19,7 @@ SRCS = src/main.cpp\
src/app/browser/main/tab/data/navbar/history.cpp\
src/app/browser/main/tab/data/navbar/history/back.cpp\
src/app/browser/main/tab/data/navbar/history/forward.cpp\
src/app/browser/main/tab/data/navbar/request.cpp\
src/app/browser/main/tab/data/navbar/update.cpp\
src/app/browser/main/tab/label.cpp\
src/lib/database.cpp\

View File

@ -11,6 +11,7 @@ src/app/browser/main/tab/data/navbar/bookmark.cpp
src/app/browser/main/tab/data/navbar/history.cpp
src/app/browser/main/tab/data/navbar/history/back.cpp
src/app/browser/main/tab/data/navbar/history/forward.cpp
src/app/browser/main/tab/data/navbar/request.cpp
src/app/browser/main/tab/data/navbar/update.cpp
src/app/browser/main/tab/label.cpp
src/lib/database.cpp

View File

@ -2,6 +2,7 @@
#include "navbar/base.hpp"
#include "navbar/bookmark.hpp"
#include "navbar/history.hpp"
#include "navbar/request.hpp"
#include "navbar/update.hpp"
using namespace app::browser::main::tab::data;
@ -52,6 +53,12 @@ Navbar::Navbar()
* update
);
request = new navbar::Request();
append(
* request
);
bookmark = new navbar::Bookmark();
append(

View File

@ -11,6 +11,7 @@ namespace app::browser::main::tab::data
class Bookmark;
class History;
class Update;
class Request;
}
class Navbar : public Gtk::Box
@ -25,6 +26,7 @@ namespace app::browser::main::tab::data
navbar::Base * base;
navbar::Bookmark * bookmark;
navbar::History * history;
navbar::Request * request;
navbar::Update * update;
public:

View File

@ -0,0 +1,16 @@
#include "request.hpp"
using namespace app::browser::main::tab::data::navbar;
Request::Request()
{
set_placeholder_text(
_("URL or search term...")
);
set_hexpand(
true
);
}
Request::~Request() = default;

View File

@ -0,0 +1,19 @@
#ifndef APP_BROWSER_MAIN_TAB_DATA_NAVBAR_REQUEST_HPP
#define APP_BROWSER_MAIN_TAB_DATA_NAVBAR_REQUEST_HPP
#include <glibmm/i18n.h>
#include <gtkmm/entry.h>
namespace app::browser::main::tab::data::navbar
{
class Request : public Gtk::Entry
{
public:
Request();
~Request();
};
}
#endif // APP_BROWSER_MAIN_TAB_DATA_NAVBAR_REQUEST_HPP