mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-30 13:04:13 +00:00
init request entry class
This commit is contained in:
parent
d1a08ce8de
commit
86f4313a1d
1
Makefile
1
Makefile
@ -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.cpp\
|
||||||
src/app/browser/main/tab/data/navbar/history/back.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/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/data/navbar/update.cpp\
|
||||||
src/app/browser/main/tab/label.cpp\
|
src/app/browser/main/tab/label.cpp\
|
||||||
src/lib/database.cpp\
|
src/lib/database.cpp\
|
||||||
|
@ -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.cpp
|
||||||
src/app/browser/main/tab/data/navbar/history/back.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/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/data/navbar/update.cpp
|
||||||
src/app/browser/main/tab/label.cpp
|
src/app/browser/main/tab/label.cpp
|
||||||
src/lib/database.cpp
|
src/lib/database.cpp
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#include "navbar/base.hpp"
|
#include "navbar/base.hpp"
|
||||||
#include "navbar/bookmark.hpp"
|
#include "navbar/bookmark.hpp"
|
||||||
#include "navbar/history.hpp"
|
#include "navbar/history.hpp"
|
||||||
|
#include "navbar/request.hpp"
|
||||||
#include "navbar/update.hpp"
|
#include "navbar/update.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::data;
|
using namespace app::browser::main::tab::data;
|
||||||
@ -52,6 +53,12 @@ Navbar::Navbar()
|
|||||||
* update
|
* update
|
||||||
);
|
);
|
||||||
|
|
||||||
|
request = new navbar::Request();
|
||||||
|
|
||||||
|
append(
|
||||||
|
* request
|
||||||
|
);
|
||||||
|
|
||||||
bookmark = new navbar::Bookmark();
|
bookmark = new navbar::Bookmark();
|
||||||
|
|
||||||
append(
|
append(
|
||||||
|
@ -11,6 +11,7 @@ namespace app::browser::main::tab::data
|
|||||||
class Bookmark;
|
class Bookmark;
|
||||||
class History;
|
class History;
|
||||||
class Update;
|
class Update;
|
||||||
|
class Request;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Navbar : public Gtk::Box
|
class Navbar : public Gtk::Box
|
||||||
@ -25,6 +26,7 @@ namespace app::browser::main::tab::data
|
|||||||
navbar::Base * base;
|
navbar::Base * base;
|
||||||
navbar::Bookmark * bookmark;
|
navbar::Bookmark * bookmark;
|
||||||
navbar::History * history;
|
navbar::History * history;
|
||||||
|
navbar::Request * request;
|
||||||
navbar::Update * update;
|
navbar::Update * update;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
16
src/app/browser/main/tab/data/navbar/request.cpp
Normal file
16
src/app/browser/main/tab/data/navbar/request.cpp
Normal 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;
|
19
src/app/browser/main/tab/data/navbar/request.hpp
Normal file
19
src/app/browser/main/tab/data/navbar/request.hpp
Normal 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
|
Loading…
x
Reference in New Issue
Block a user